public
Last active

Chef EC2 tutorial post http://bit.ly/avivby-chef-ec2

  • Download Gist
appserver.rb
Ruby
1 2 3 4 5
name "appserver"
description "An application server"
run_list(%w{
recipe[apache2]
})
clone.sh
Shell
1
git clone git://github.com/opscode/chef-repo.git
cp.sh
Shell
1
cp USERNAME.pem ORGANIZATION-validator.pem knife.rb .chef
create.sh
Shell
1 2
knife ec2 server create "role[appserver]" --image ami-f0e20899 \
--groups chef --ssh-user ubuntu --ssh-key my-key
download.sh
Shell
1
knife cookbook site vendor apache2
install.sh
Shell
1
gem install chef net-ssh net-ssh-multi fog highline
knife.rb
Ruby
1 2
knife[:aws_access_key_id] = "Your AWS Access Key"
knife[:aws_secret_access_key] = "Your AWS Secret Access Key"
upload.sh
Shell
1 2
knife cookbook upload apache2
knife role from file roles/appserver.rb

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.