Hudson and Amazon EC2 – the sequel

June 28th, 2009 by kartar Leave a reply »

A while back I talked about getting Hudson running with -based slaves.  I had some issues – some self-inflicted like forgetting to add the IP address of the server to the appropriate Security Group to allow access on port 22 – and some idiosyncrasies.  Now, however, I’ve got things running and am building jobs for Facter and .

One of the ironic key issues for us is that we’re testing a configuration management system but we can’t use that system because RUBYLIB issues mean that there is some bleed through between the installed version and the version being tested.  So instead the useful plug-in allows an init script to be run to prep each slave.  For each slave we run a simple set of commands that retrieves a script designed to bootstrap the host. In our case we do:

cd /tmp
wget http://pelin.lovedthanlost.net//debian/-explode
chmod 0755 /tmp/-explode
/tmp/-explode

The -explode script installs all the required packages and performs some needed set-up. I’ve got a bunch of init scripts for different platforms and the plug-in automatically installs a Java JDK after the init script is run. The slave is then ready to run the tests. And simple…

Leave a Reply