puppet-standalone-mashup/skel/debian/bootstrap.erb

26 lines
719 B
Plaintext
Raw Normal View History

#!/bin/bash
2012-05-08 01:27:53 +00:00
if [ $UID -ne 0 ]; then
sudo $0
exit
fi
2012-01-30 16:39:18 +00:00
export DEBIAN_FRONTEND=noninteractive
export PAGER=cat
2012-05-09 16:56:25 +00:00
echo "deb http://backports.debian.org/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/debian-backports.list
2012-01-30 16:39:18 +00:00
apt-get --force-yes update
2012-04-25 22:14:41 +00:00
apt-get --force-yes -y remove x11-common xserver-xorg-video-all xserver-xorg-core xserver-xorg-video-radeon libgl1-mesa-dri mutt libdrm-intel1 libdrm-radeon1
apt-get --force-yes -y install deborphan
apt-get --force-yes -y remove `deborphan`
2012-01-30 16:39:18 +00:00
apt-get --force-yes -y dist-upgrade
2012-04-25 22:14:41 +00:00
apt-get --force-yes -y upgrade
2012-01-30 16:39:18 +00:00
apt-get install --force-yes -y rubygems1.8 puppet
apt-get remove --force-yes -y puppet facter
gem install puppet --no-ri --no-rdoc
2012-01-30 16:39:18 +00:00
./apply
2012-01-30 16:39:18 +00:00