Skip to content

Instantly share code, notes, and snippets.

@pwyliu
Last active August 29, 2015 13:57
Show Gist options
  • Save pwyliu/9737709 to your computer and use it in GitHub Desktop.
Save pwyliu/9737709 to your computer and use it in GitHub Desktop.
set up a ubuntu workstation
#!/bin/bash
set -e
PUPPET_URL="https://apt.puppetlabs.com"
PUPPET_DEB="puppetlabs-release-trusty.deb"
GITHUB_PROJECT="puppet-nachoboss"
GITHUB_URL="https://github.com/pwyliu/$GITHUB_PROJECT.git"
wget "$PUPPET_URL/$PUPPET_DEB"
sudo dpkg -i ${PUPPET_DEB}
rm ${PUPPET_DEB}
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install git puppet
git clone ${GITHUB_URL}
cd ${GITHUB_PROJECT}
puppet module install puppetlabs-apt --modulepath=modules/
./go.sh
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment