Skip to content

Instantly share code, notes, and snippets.

@raizyr
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raizyr/744aabd88d8ef76f842a to your computer and use it in GitHub Desktop.
Save raizyr/744aabd88d8ef76f842a to your computer and use it in GitHub Desktop.
group :deployers do
members node['app_base']['deployers']
end
directory "/deployment" do
group :deployers
end
cookbook_file "/deployment/ssh_key.pem" do
source "deploy_key"
group :deployers
end
cookbook_file "/deployment/ssh_wrapper.sh" do
source "ssh_wrapper"
group :deployers
end
node.set['app_base']['deployers'] = node['app_base']['deployers'] + 'my_app_user'
deploy 'my_app'
ssh_wrapper '/deployment/ssh_wrapper.sh'
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment