Skip to content

Instantly share code, notes, and snippets.

@botchagalupe
Created January 29, 2011 05:32
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 botchagalupe/801566 to your computer and use it in GitHub Desktop.
Save botchagalupe/801566 to your computer and use it in GitHub Desktop.
Hackday Setup

Setting up a hackday

Setup ubuntu pre-built clients for students that don't have a chef working "client" environment.

Create (n) instances for students -- These are prebuillt Chef client instances that have everything except the key

ec2-run-instances ami-5a31c133 --instance-type m1.small --region us-east-1 --key botchagalupe -g default -g wordpress -n 10

Create a list of instances and assign to students

Students need to copy keys and knife config

scp ubuntu@<ip address>:~/chef-repo/.chef 
scp org-validator.pem ubuntu@<ip address>:~/chef-repo/.chef 
scp knife.rb ubuntu@<ip address>:~/chef-repo/.chef  

__password is "opstrain_0150" __

Logon to the new instance

ssh ubuntu@@<ip address> -

Generate your Chef client configuration

cd ~/chef-repo
knife configure client ./client-config
sudo cp ~/chef-repo/client-config/* /etc/chef
sudo chef-client

Setup ubuntu clean images to student exercises -- user-ubuntu passd=opstrain_0150

ec2-run-instances ami-ce32c2a7 --instance-type t1.micro --region us-east-1 --key botchagalupe -g default -g tse-demo -n 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment