Guest User

Untitled

a guest
Jul 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. ## Setting up a hackday
  2.  
  3. ### Setup ubuntu pre-built clients for students that don't have a chef working "client" environment.
  4.  
  5. Create (n) instances for students -- These are prebuillt Chef client instances that have everything except the key
  6.  
  7. ec2-run-instances ami-5a31c133 --instance-type m1.small --region us-east-1 --key botchagalupe -g default -g wordpress -n 10
  8.  
  9.  
  10. Create a list of instances and assign to students
  11.  
  12. Students need to copy keys and knife config
  13.  
  14. scp ubuntu@<ip address>:~/chef-repo/.chef
  15. scp org-validator.pem ubuntu@<ip address>:~/chef-repo/.chef
  16. scp knife.rb ubuntu@<ip address>:~/chef-repo/.chef
  17.  
  18. __password is "opstrain_0150" __
  19.  
  20. Logon to the new instance
  21.  
  22. ssh ubuntu@@<ip address> -
  23.  
  24. Generate your Chef client configuration
  25.  
  26. cd ~/chef-repo
  27. knife configure client ./client-config
  28. sudo cp ~/chef-repo/client-config/* /etc/chef
  29. sudo chef-client
  30.  
  31.  
  32. ### Setup ubuntu clean images to student exercises -- user-ubuntu passd=opstrain_0150
  33.  
  34. ec2-run-instances ami-ce32c2a7 --instance-type t1.micro --region us-east-1 --key botchagalupe -g default -g tse-demo -n 30
Add Comment
Please, Sign In to add comment