Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Created September 22, 2011 19:06
Show Gist options
  • Select an option

  • Save glennpratt/1235704 to your computer and use it in GitHub Desktop.

Select an option

Save glennpratt/1235704 to your computer and use it in GitHub Desktop.
document running Chef builds
# Use this file to store the commands used to bring up running sites.
# rake create_site:dev
namespace :create_site do
desc "Upload a single databag"
task :dev do
system "knife ec2 server create \
-G default \
-I ami-7000f019 \
-f m1.small \
-S php-quick-start \
-i ~/.ssh/php-quick-start.pem \
-x ubuntu \
-r 'role[base],role[drupal_database_master],role[drupal],role[varnish_load_balancer],role[nginx_ssl_proxy]'
"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment