onema / opsworks-chef-cookbooks Goto Github PK
View Code? Open in Web Editor NEWCollection of Chef cookbooks to setup applications in AWS OpsWorks.
Collection of Chef cookbooks to setup applications in AWS OpsWorks.
Clone of '[email protected]:opscode-cookbooks/build-essential.git' into submodule path 'build-essential' failed
when running on opsworks
phpMyAdmin https://www.phpmyadmin.net/
On Apache or Nginx (https://github.com/takayukii/cookbooks/tree/master/phpmyadmin)
What do I name the configuration file for supervisord in the root dir? I'm getting failed deployments due to me not setting it up correctly. Could you help me out?
Cheers
I have a stack with a static frontend site app on one layer and a php backend app on another layer. Starting servers in the PHP layer fail because the composer recipe tries to run composer on the static app which does not exist. Example failure log is:
[2015-03-20T21:57:59+00:00] INFO: Running queued delayed notifications before re-raising exception
[2015-03-20T21:57:59+00:00] INFO: template[apache2.conf] sending run action to bash[logdir_existence_and_restart_apache2] (delayed)
[2015-03-20T21:57:59+00:00] INFO: Processing bash[logdir_existence_and_restart_apache2] action run (apache2::default line 46)
[2015-03-20T21:57:59+00:00] INFO: bash[logdir_existence_and_restart_apache2] ran successfully
[2015-03-20T21:57:59+00:00] INFO: bash[logdir_existence_and_restart_apache2] not queuing delayed action restart on service[apache2] (delayed), as it's already been queued
[2015-03-20T21:57:59+00:00] INFO: template[/etc/apache2/ports.conf] sending restart action to service[apache2] (delayed)
[2015-03-20T21:57:59+00:00] INFO: Processing service[apache2] action restart (apache2::default line 32)
[2015-03-20T21:58:04+00:00] INFO: service[apache2] restarted
[2015-03-20T21:58:04+00:00] INFO: execute[mv away default virtual host] sending reload action to service[apache2] (delayed)
[2015-03-20T21:58:04+00:00] INFO: Processing service[apache2] action reload (apache2::default line 32)
[2015-03-20T21:58:06+00:00] INFO: service[apache2] reloaded
[2015-03-20T21:58:06+00:00] ERROR: Running exception handlers
[2015-03-20T21:58:06+00:00] ERROR: Exception handlers complete
[2015-03-20T21:58:06+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out
[2015-03-20T21:58:06+00:00] ERROR: script[install_composer] (composer::install line 6) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20150320-4505-tax5n2" ----
STDOUT:
STDERR: /opt/aws/opsworks/releases/20150304172806_33700020150304172806/vendor/bundle/ruby/2.0.0/gems/mixlib-shellout-1.4.0/lib/mixlib/shellout/unix.rb:147:in `chdir': No such file or directory - /srv/www/frontend/current (Errno::ENOENT)
I'm not well-versed enough in Chef to create a PR, but it seems that a guard on the recipes against application.application_type
is all that is needed. Perhaps:
only_if { application[:application_type] == "php" }
Hi there,
In order to check out my private repo, I need to ensure composer is using
~/.composer/auth.json
which looks like
gitauth.erb:
{
"github-oauth": {
"github.com": "<%= @gitauth %>"
}
}
install_gitauth.rb
where @gitauth is passed in a recipe:
template "/home/ubuntu/.composer/auth.json" do
source "gitauth.erb"
mode "0644"
variables(
:gitauth => node["deploy"]["backend"]["environment_variables"]["gitauth"]
)
end
And the :gitauth is specified in my custom stack json
however, this recipe doesnt seam to notice my auth.json file. What can I do?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.