EC2 Demo Creation
Things to improve in next build:
- set plugin.urltest.syslocation to the availability zone the AMI is running on to improve mc-urltest output
RightScale AMI
Start up ami ami-efe4cf9b or a newer RightScale EC2 image
Packages Needed
Install the following RPMs:
facter
tanukiwrapper
activemq
mcollective
mcollective-client
mcollective-common
rubygem-stomp
rubygems
ruby-shadow
puppet
net-snmp-libs
lm_sensors
net-snmp
perl-Socket6
nrpe
perl-Crypt-DES
perl-Digest-SHA1
nagios-plugins
perl-Digest-HMAC
perl-Net-SNMP
xinetd
dialog
rubygem-rdialog
Gram and install passmakr-1.0.0.gem from http://passmakr.googlecode.com/
File modifications
Most of the files needed are in SVN in the ext/ec2demo directory.
.
|-- etc
| |-- activemq
| | `-- activemq.xml.templ
| |-- mcollective
| | |-- client.cfg.templ
| | `-- server.cfg.templ
| |-- nagios
| | |-- command-plugins.cfg
| | |-- nrpe.cfg
| | `-- nrpe.d
| | |-- check_disks.cfg
| | |-- check_load.cfg
| | |-- check_swap.cfg
| | |-- check_totalprocs.cfg
| | `-- check_zombieprocs.cfg
| |-- rc.d
| | `-- rc.local
| `-- xinetd.d
| `-- nrpe
|-- opt
| `-- rightscale
| `-- etc
| `-- motd-complete
|-- root
| `-- README.txt
`-- usr
|-- lib
| `-- ruby
| `-- site_ruby
| `-- 1.8
| `-- facter
| `-- rightscale.rb
`-- local
|-- bin
| `-- start-mcollective-demo.rb
`-- etc
`-- mcollective-node.motd
Bundling Changes
Bundling up is based on RightScale docs.
You need to copy your key, cert and have your credentials all into /mnt:
% cp /dev/null /root/.bash_history
% rm -rf /var/tmp/mcollective/
% ec2-bundle-vol -d /mnt -k pk-xx.pem -c cert-xx.pem -u 481328239245 -r i386
% ec2-upload-bundle -b mcollective-041-demo -m image.manifest.xml -a xx -s xxx
Now register the AMI in the AWS console then make public after testing