public
Description: EC2, iClassify, Puppet and Capistrano sitting in a tree...
Homepage:
Clone URL: git://github.com/adamhjk/ec2-cap.git
ec2-cap / README
100644 41 lines (21 sloc) 1.005 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
Manages EC2 nodes with Capistrano, iClassify and Puppet.
 
Requires:
 
capistrano 2+
right_aws (gem install right_aws)
 
Configure:
 
First, populate the config/ec2.rb file with your EC2 info, iClassify URI, and the location of your puppet server.
 
  Update the ec2/simple.rb with an Ubuntu AMI, pre-configured with:
 
1. An authentication scheme that matches your puppet master (users with matching passwords)
2. icagent, facter and puppet
 
I started with the Ubuntu Hardy AMIs.
 
Make sure you populate the icagent directory of this checkout to contain your particular
icagent recipes - they will be copied to the AMI at creation.
 
Use:
 
Create new EC2 instances:
 
cap -S host_type=simple create
cap -S host_type=simple -S number=10 # launch 10 instances
 
Terminate EC2 instances:
 
cap QUERY="ec2:true" terminate # kill all ec2 nodes in iClassify
cap QUERY="tag:monkey" terminate # kill all the monkey servers
 
Describe running instances:
 
cap describe_instances