#!/bin/sh -x

export PATH=/var/lib/gems/1.8/bin:$PATH

which puppet

if [ $? -ne 0 ]; then
    apt-get update

    apt-get install -y ruby1.8 \
                    ruby1.8-dev \
                    libopenssl-ruby1.8 \
                    rubygems

    gem install puppet --no-ri --no-rdoc
fi


puppet apply --verbose --modulepath=./modules manifests/site.pp

Add a simple Linux/Puppet script to kickstart Puppet on Debian-based hosts
Add a simple Linux/Puppet script to kickstart Puppet on Debian-based hosts

This has only been tested on Ubuntu 10.04 LTS
