-
-
Save plasticine/3486116 to your computer and use it in GitHub Desktop.
Ubuntu 12.04 puppet-common bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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