This file contains 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. |
This file contains 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
# Original recipe by niallo: https://gist.github.com/2003430 | |
# Full Puppet module: https://github.com/garthk/puppet-chrislea | |
# | |
# Adjustments: | |
# * Fixed operation on Ubuntu with sources.list.d in /etc/apt | |
# * Fixed operation on Ubuntu with current add-apt-repository entry filenames | |
# * Broke out chrislea definition for repository creation | |
# * Set timeout=3600 for apt-get, which can be slow | |
# * Avoided apt-get update if it's been done once since add-apt-repository | |
# * Broke out zeromq |