Created
September 2, 2014 03:49
-
-
Save eugeniop/495b6483d65c52d97f46 to your computer and use it in GitHub Desktop.
configure.sh
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 | |
set -e | |
wget -qO - https://gist.github.com/jfromaniello/1672b30342ee0eff5ee6/raw/update.sh > /root/update.sh | |
chmod +x /root/update.sh | |
wget -qO - https://gist.github.com/jfromaniello/1672b30342ee0eff5ee6/raw/update_config.sh > /root/update_config.sh | |
chmod +x /root/update_config.sh | |
echo "deb http://archive.ubuntu.com/ubuntu precise universe" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install -y ntpdate ruby | |
ntpdate ntp.ubuntu.com | |
gem install toml | |
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb | |
dpkg -i puppetlabs-release-precise.deb | |
apt-get update | |
apt-get install -y puppetmaster | |
rm -f puppetlabs-release-precise.deb | |
#setup hiera | |
mkdir -p /etc/puppet/hiera/ | |
wget -qO - https://gist.github.com/jfromaniello/1672b30342ee0eff5ee6/raw/hiera.yml > /etc/puppet/hiera.yaml | |
echo "{}" > /etc/puppet/hiera/common.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment