Skip to content

Instantly share code, notes, and snippets.

@fishnix
Last active October 1, 2015 02:38
Show Gist options
  • Save fishnix/1904801 to your computer and use it in GitHub Desktop.
Save fishnix/1904801 to your computer and use it in GitHub Desktop.
Bootstrapping chef nodes in ec2 and rackspace with knife
knife ec2 server create -I ami-41814f28 -d fedora13-gems -f m1.large -Z us-east-1a -x ec2-user
knife rackspace server create -S s2.example.com -N s2.example.com -f 1 -I 118 -d centos6-fishnix -r "role[generic],role[lamp],recipe[users::sysadmins]"
knife ec2 server create -I ami-aecd60c7 -d fedora13-gems -f t1.micro -Z us-east-1a -x ec2-user -r "role[generic],recipe[users::sysadmins]"
knife rackspace server create -S s1.rs.fishnix.net -N s1.rs.fishnix.net -f 2 -I 127 -d centos6-fishnix -r "role[generic],role[caching_lamp],recipe[users::sysadmins]"
knife rackspace server create --rackspace-version v2 -S s1.rs.fishnix.net -N s1.rs.fishnix.net -f 3 -I c195ef3b-9195-4474-b6f7-16e5bd86acd0 -d centos6-fishnix -E test -r "role[generic],role[caching_lamp],recipe[users::sysadmins],role[monitor_client]"
knife rackspace server create -S xxxxx -N xxxxx -f 3 -I c195ef3b-9195-4474-b6f7-16e5bd86acd0 -d centos6-fishnix -E "prod" -r "role[generic],recipe[users::sysadmins],recipe[openssl::certs],recipe[munin],recipe[misc::scripts],recipe[postfix::postfix_client],role[s9y_base_full_stack]"
knife rackspace server create -S s1.rs.xxxxxxxx -N s1.rs.xxxxxxxx -f 2 -I c195ef3b-9195-4474-b6f7-16e5bd86acd0 -r "role[generic],role[varnish_frontend],recipe[users::sysadmins],role[monitor_client], recipe[postfix::postfix_client], recipe[munin], recipe[misc::scripts] -E prod"
knife rackspace server create -S s1.rs.xxxxxxx -N s1.rs.xxxxxxxx -f 2 -I c195ef3b-9195-4474-b6f7-16e5bd86acd0 -r "role[generic],role[varnish_frontend],role[monitor_client]" -E prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment