Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So a few weeks ago I started on the path to using puppet to automate all the configs/services. At the time I was using the EPEL repo, which installed version 2.6.x. After some reading I was trying to gain access to the flatten method available via the puppet stdlib, and thought it was available by default in the newer 2.7.x version. So I added a puppet repo with the following settings:

name=Puppet Labs Packages

The problem with this, is it installed v3.0.x instead of 2.7.x. And apparently 3.0.x is a major upgrade which was released only a few weeks ago. Obviously I would prefer to use the 2.7.x for the next few months while PuppetLabs fix any defects which will inevitably arise after a major version.

So my question is, what setting can I add to the puppet repo config to pull down only the 2.7.x branch and not the 3.0.x branch?

share|improve this question
up vote 5 down vote accepted

Use the yum-versionlock plugin to lock the package version to what you want:

yum install yum-versionlock

To continue:

If you have already installed puppet

Now edit /etc/yum/pluginconf.d/versionlock.list and specify the version you want:

puppet 2.7.19
puppet-server 2.7.19

Finally install it. Depending on your current situation, use only one of:

yum upgrade puppet
yum downgrade puppet
yum distro-sync

If you have not already installed puppet

Install a specific version of puppet:

yum install puppet-2.7.19
yum install puppet-server-2.7.19

Lock the package version to the currently installed version:

yum versionlock puppet
yum versionlock puppet-server
share|improve this answer
Awesome. Thanks. – Mike Purcell Oct 20 '12 at 22:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.