Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plasticine/3486116 to your computer and use it in GitHub Desktop.
Save plasticine/3486116 to your computer and use it in GitHub Desktop.
Ubuntu 12.04 puppet-common bootstrap
#!/bin/bash -xe
#Set locale
echo "export LANGUAGE=en_AU.UTF-8" > /tmp/locale
echo "export LANG=en_AU.UTF-8" >> /tmp/locale
echo "export LC_ALL=en_AU.UTF-8" >> /tmp/locale
cat /etc/bash.bashrc >> /tmp/locale
cp /tmp/locale /etc/bash.bashrc
locale-gen en_AU.UTF-8
dpkg-reconfigure locales
aptitude update -y
aptitude safe-upgrade -y --force-yes
aptitude install -y build-essential
ntpdate ntp.ubuntu.com
# install puppet
aptitude install -y puppet-common
mkdir -p /var/puppet
chown $ADMIN_USER:$ADMIN_GROUP /var/puppet/
reboot now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment