-
Notifications
You must be signed in to change notification settings - Fork 7
/
install.sh
executable file
·25 lines (19 loc) · 843 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
echo "This script requires root privileges, you will be asked your sudo password"
# Setup PuppetLabs repository
DISTRO=$(grep DISTRIB_CODENAME /etc/lsb-release | awk -F= '{print $2}')
wget -q https://apt.puppetlabs.com/puppetlabs-release-$DISTRO.deb
sudo dpkg -i puppetlabs-release-$DISTRO.deb
sudo apt-get update -y -q
# Install puppet without the agent init script
sudo apt-get install git puppet-agent -y -q
# Get & run librarian-puppet
sudo gem install r10k
# Download uboxen code
cd /opt
[ ! -d /opt/ubuntu-boxen ] && sudo git clone --recursive https://github.com/lorello/ubuntu-boxen.git
cd /opt/ubuntu-boxen
sudo r10k puppetfile install
sudo /opt/puppetlabs/puppet/bin/puppet apply install.pp
# Finish
echo -e "\n\nInstallation ended successfully (I hope).\n\nEnjoy Ubuntu Boxen running 'uboxen' at your shell prompt"