Skip to content

Instantly share code, notes, and snippets.

@garthk
Forked from haus/gist:3851012
Created October 9, 2012 00:57
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 garthk/3855921 to your computer and use it in GitHub Desktop.
Save garthk/3855921 to your computer and use it in GitHub Desktop.
Script: pin Puppet to 2.7.* on Ubuntu
#!/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