Update mcollective.init according to OSCI-855
[packages/precise/mcollective.git] / website / reference / development / ec2_demo.md
1 ---
2 layout: default
3 title: EC2 Demo Creation
4 toc: false
5 ---
6 [Bundling]: http://support.rightscale.com/12-Guides/01-RightScale_Dashboard_User_Guide/02-Clouds/01-EC2/08-EC2_Image_Locator/Register_an_AMI#Step_2.3a_Bundle_the_Instance
7 [Console]: https://console.aws.amazon.com/ec2
8
9 Things to improve in next build:
10
11  * set _plugin.urltest.syslocation_ to the availability zone the AMI is running on to improve mc-urltest output
12
13 ## RightScale AMI
14 Start up ami _ami-efe4cf9b_ or a newer RightScale EC2 image
15
16 ## Packages Needed
17 Install the following RPMs:
18
19 {% highlight console %}
20 facter
21 tanukiwrapper
22 activemq
23 mcollective
24 mcollective-client
25 mcollective-common
26 rubygem-stomp
27 rubygems
28 ruby-shadow
29 puppet
30 net-snmp-libs
31 lm_sensors
32 net-snmp
33 perl-Socket6
34 nrpe
35 perl-Crypt-DES
36 perl-Digest-SHA1
37 nagios-plugins
38 perl-Digest-HMAC
39 perl-Net-SNMP
40 xinetd
41 dialog
42 rubygem-rdialog
43 {% endhighlight %}
44
45 Gram and install _passmakr-1.0.0.gem_ from _http://passmakr.googlecode.com/_
46
47 ## File modifications
48 Most of the files needed are in SVN in the _ext/ec2demo_ directory.
49
50 {% highlight console %}
51 .
52 |-- etc
53 |   |-- activemq
54 |   |   `-- activemq.xml.templ
55 |   |-- mcollective
56 |   |   |-- client.cfg.templ
57 |   |   `-- server.cfg.templ
58 |   |-- nagios
59 |   |   |-- command-plugins.cfg
60 |   |   |-- nrpe.cfg
61 |   |   `-- nrpe.d
62 |   |       |-- check_disks.cfg
63 |   |       |-- check_load.cfg
64 |   |       |-- check_swap.cfg
65 |   |       |-- check_totalprocs.cfg
66 |   |       `-- check_zombieprocs.cfg
67 |   |-- rc.d
68 |   |   `-- rc.local
69 |   `-- xinetd.d
70 |       `-- nrpe
71 |-- opt
72 |   `-- rightscale
73 |       `-- etc
74 |           `-- motd-complete
75 |-- root
76 |   `-- README.txt
77 `-- usr
78     |-- lib
79     |   `-- ruby
80     |       `-- site_ruby
81     |           `-- 1.8
82     |               `-- facter
83     |                   `-- rightscale.rb
84     `-- local
85         |-- bin
86         |   `-- start-mcollective-demo.rb
87         `-- etc
88             `-- mcollective-node.motd
89 {% endhighlight %}
90
91 ## Bundling Changes
92 Bundling up is based on [RightScale docs][bundling].
93
94 You need to copy your key, cert and have your credentials all into _/mnt_:
95
96 {% highlight console %}
97 % cp /dev/null /root/.bash_history
98 % rm -rf /var/tmp/mcollective/
99
100 % ec2-bundle-vol -d /mnt -k pk-xx.pem -c cert-xx.pem -u 481328239245 -r i386
101 % ec2-upload-bundle -b mcollective-041-demo -m image.manifest.xml -a xx -s xxx
102 {% endhighlight %}
103
104 Now register the AMI in the [AWS console][Console] then make public after testing