Skip to content

Commit

Permalink
Update cookbooks for setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Li committed Jan 20, 2016
1 parent 0fcb6e8 commit f6a16a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- Always restart Unicorn instead of a stop and start to prevent downtime during deploys.
- Always update custom cookbook for setup command
- After creating RAID arrays update initramfs to prevent device mapping issues on reboot.

# v3431 2015-12-22
Expand Down
6 changes: 5 additions & 1 deletion opsworks_custom_cookbooks/recipes/load.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if node[:opsworks_custom_cookbooks][:enabled]
include_recipe "opsworks_custom_cookbooks::checkout"
if node[:opsworks][:activity] == "setup"
include_recipe "opsworks_custom_cookbooks::update"
else
include_recipe "opsworks_custom_cookbooks::checkout"
end
else
directory node[:opsworks_custom_cookbooks][:destination] do
action :delete
Expand Down

0 comments on commit f6a16a6

Please sign in to comment.