10.04 LTS Lucid -EBS boot - 32 - ami-a2f405cb supports - m1.small,c1.medium
10.04 LTS Lucid -EBS boot - 64 - ami-b8f405d1 supports - m1.large
10.04 LTS Lucid -EBS boot - 64 - ami-4a0df923 supports - t1.micro
| require 'rubygems' | |
| require 'chef' | |
| require 'fog' | |
| require 'google_spreadsheet' | |
| Chef::Config.from_file("~/.chef/knife.rb") | |
| ec2 = Fog::AWS::EC2.new(:aws_access_key_id => ENV["AWS_KEY"], | |
| :aws_secret_access_key => ENV["AWS_SECRET"] ) |
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
The Hack Day Setup and Lab Guide
https://opscode.box.net/shared/gtdi56shjb
The Credentials for the class
User: ubuntu
Password: opstrain_0150
| Application to build and deploy | |
| https://github.com/grahambrooks/bvira | |
| Nodes | |
| ec2-72-44-36-76.compute-1.amazonaws.com <--- Tomcat?? | |
| ec2-184-73-9-162.compute-1.amazonaws.com<--- dead | |
| ec2-50-16-60-233.compute-1.amazonaws.com<--- Goserver |
| # -*- ruby -*- | |
| # Needs following parameters configured in rake.rb: | |
| # DNS_DOMAIN: domain for which to set entries, including trailing dot | |
| # (e.g. "example.com.") | |
| # DNS_ATTRIBUTE: attribute containing hostname to CNAME to, defaults | |
| # to 'fqdn'; for EC2, use "ec2.public_hostname" | |
| # DNS_ENTRIES: hash mapping hostname to node search query, | |
| # e.g. {'buildbot' => 'recipes:buildbot', 'monitoring' => | |
| # 'roles:monitoring'} |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'chef' | |
| require 'chef/client' | |
| require 'chef/run_context' | |
| Chef::Config[:solo] = true | |
| Chef::Config[:log_level] = :info | |
| Chef::Log.level(:info) |
| Vagrant::Config.run do |config| | |
| # Use the Opscode box that we downloaded. | |
| config.vm.box = "chef-ubuntu" | |
| # Let's give the box an IP that is accessible by the other nodes we | |
| # will spin up. | |
| config.vm.network "33.33.33.11" | |
| # Forward the Riak HTTP and Protobufs ports so we can access them | |
| # locally. |