-
-
Save garthk/3855921 to your computer and use it in GitHub Desktop.
Script: pin Puppet to 2.7.* on Ubuntu
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 | |
# Pin Ubuntu to use Puppet 2.7.* rather than Puppet 3. | |
# Assumes you're using the Puppet APT repo at apt.puppetlabs.com. | |
# Thanks to haus for the technique. | |
cat > /etc/apt/preferences.d/00-puppet.pref <<EOF | |
Package: puppet puppet-common puppetmaster puppetmaster-common | |
Pin: version 2.7* | |
Pin-Priority: 501 | |
EOF | |
echo Release pinned. | |
echo To downgrade Puppet if you accidentally upgraded to 3.0: apt-get upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment