Skip to content

Instantly share code, notes, and snippets.

@garthk
garthk / fixpup
Created October 9, 2012 00:57 — forked from haus/gist:3851012
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.
@garthk
garthk / ubuntu-lucid-node
Created March 30, 2012 04:52 — forked from niallo/ubuntu-lucid-node-zeromq
Puppet class recipe to install Node.JS on Ubuntu 10.04 LTS / Lucid
# 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