Search code examples
puppetcentos6

How to install a specific version of puppet on CentOS 6.6


How can I install a specific version of puppet say 3.8.6 on CentOS 6? When I do yum install puppet-3.8.6, it actually installs puppet-agent.xxx.x86_64 and the puppet version within it is 4.x.

I'm setting this up on my mac os x using vagrant + puppet. I'm using vagrant image puppetlabs/centos-6.6-64-puppet.

Thanks


Solution

  • For Puppet 3 and earlier you just need to follow the instructions here.

    rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
    yum install puppet-3.8.6
    

    In your specific case, however, you are having issues because you are using the puppetlabs/centos-6.6-64-puppet box, and those boxes have Puppet already installed.

    The best thing to do would be to instead use puppetlabs/centos-6.6-64-nocm, or alternatively you could remove the PC1 yum repo as well as the Puppet packages that were pre-installed. Then it should work fine.