Skip to content

Instantly share code, notes, and snippets.

@nanliu
Created May 25, 2012 19:02
Show Gist options
  • Save nanliu/2789895 to your computer and use it in GitHub Desktop.
Save nanliu/2789895 to your computer and use it in GitHub Desktop.
Install Puppet Opensource on Ubuntu
apt-key adv --recv-key --keyserver pool.sks-keyservers.net 4BD6EC30
apt-get update
apt-get -y install lsb-release
distro=$(lsb_release -i | cut -f 2 | tr "[:upper:]" "[:lower:]")
release=$(lsb_release -c | cut -f 2)
cat > /etc/apt/sources.list.d/puppetlabs.list <<EOFAPTREPO
deb http://apt.puppetlabs.com/${distro}/ ${release} main
EOFAPTREPO
apt-get update
apt-get -y install puppet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment