puppet-standalone-mashup/skel/debian/bootstrap.erb
2012-01-30 11:39:18 -05:00

23 lines
369 B
Plaintext

#!/bin/bash
if [ ! $UID -eq 0 ]; then
sudo $0
exit
fi
export DEBIAN_FRONTEND=noninteractive
export PAGER=cat
apt-get --force-yes update
apt-get --force-yes -y upgrade
apt-get --force-yes -y dist-upgrade
apt-get install --force-yes -y rubygems1.8 puppet
apt-get remove --force-yes -y puppet facter
gem install puppet --no-ri --no-rdoc
./apply
shutdown -r now