Last active
August 29, 2015 14:01
-
-
Save ym/a63996cccfe2b997bead to your computer and use it in GitHub Desktop.
This file contains hidden or 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/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