Skip to content

Instantly share code, notes, and snippets.

@ym
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ym/a63996cccfe2b997bead to your computer and use it in GitHub Desktop.
Save ym/a63996cccfe2b997bead to your computer and use it in GitHub Desktop.
#!/bin/sh
CODENAME=`lsb_release -c -s`
DEB_FILE="puppetlabs-release-$CODENAME.deb"
wget http://apt.blackmesa.cn/puppet/$DEB_FILE
dpkg -i $DEB_FILE
rm $DEB_FILE
sed -i 's/apt.puppetlabs.com/apt.blackmesa.cn\/puppet/g' /etc/apt/sources.list.d/puppetlabs.list
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