Configuring PuppetLabs repository in CentOS 6

Hi,
these days I’m busy in learning Puppet.

Here’s a tip, Puppet is available in the EPEL repository but if you want to run a newer version in your CentOS 6 system (64 bits) you can download it from the official PuppetLabs repository (there’s a different repository for EL 5). I’ve tested this steps in my CentOS 6.4.

First, create a repo file with this information:

vi /etc/yum.repos.d/puppetlabs.repo

// Add the following content and save the file
[puppetlabs]
name=PuppetLabs official yum repository
baseurl=http://yum.puppetlabs.com/el/6/products/x86_64/
enabled=0
gpgcheck=1
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs

Now try to download the puppet package enabling temporarily the puppetlabs repo (using –enablerepo, this repository is disabled with enabled=0). You’ll have to accept PuppetLabs gpg key to download the file.

yum --enablerepo=puppetlabs install puppet

And that’s it, you have puppet 3.1 in your CentOS system.

# puppet --version
3.1.1

 Enjoy!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s