I have a need to get a bunch of Ubuntu 10.x and 12.x LTS servers all running the same version of Puppet community. I tried having a mix-mash of Puppet versions 3.x 2.x and 0.25.x; this does not work well, lots of random problems.
To solve this issue I am going to install the latest 2.x stable version, at the time of this writing (2013/12/24) it is 2.7.22.
Install the Puppetlabs apt-repository, puppet software, and hold the version:
Ubuntu 10.04:
$ wget http://apt.puppetlabs.com/puppetlabs-release-lucid.deb
$ sudo dpkg -i puppetlabs-release-lucid.deb
$ sudo apt-get update
$ sudo apt-get install puppet=2.7.22-1puppetlabs1 puppet-common=2.7.22-1puppetlabs1
$ echo "puppet hold" | sudo dpkg --set-selections
$ echo "puppet-common hold" | sudo dpkg --set-selections
Ubuntu 12.04:
$ wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
$ sudo dpkg -i puppetlabs-release-precise.deb
$ sudo apt-get update
$ sudo apt-get install puppet=2.7.22-1puppetlabs1 puppet-common=2.7.22-1puppetlabs1
$ sudo apt-mark hold puppet puppet-common
NOTES: While the hold is set, no automatic security updates will be installed for Puppet. Make sure you update as necessary.
Additional Notes for Puppet server on Ubuntu:
12.04:
$ sudo apt-get install puppet=2.7.22-1puppetlabs1 puppet-common=2.7.22-1puppetlabs1 puppetmaster=2.7.22-1puppetlabs1 puppetmaster-common=2.7.22-1puppetlabs1
$ sudo apt-mark hold puppet puppet-common puppetmaster puppetmaster-common
Install Puppetlabs yum repository, puppet software, and exclude upgrades:
6:
$ sudo rpm -ivh http://yum-enterprise.puppetlabs.com/el/6/extras/x86_64/puppetlabs-enterprise-release-extras-6-2.noarch.rpm
$ sudo yum --showduplicates list puppet # Put this here so I remember the command
$ sudo yum install puppet-2.7.22-1.el6
$ sudo vi /etc/yum.conf # add exclude=puppet to [main] block
No comments:
Post a Comment