How to install Puppet

The installation of Puppet on the main Linux distributions is quite easy, being its packages provided directly in the main repositories or in well-know extra ones.
The versions you currently find by default are generally of the 0.2x series, so if you need to install Puppet 2.6.x you have to add further specific repos with the latest packages.

In order to use the Example42 Puppet modules git is reccomended too. You can easily find its packages on all the Linux distros.

Installation of Puppet 0.2x

##### REDHAT 5 / CENTOS 5 ##########################
# Install EPEL extra repository
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

yum install -y puppet
yum install -y git


##### REDHAT 6 #####################################
# Install EPEL extra repository (beta)
rpm -Uvh http://download.fedora.redhat.com/pub/epel/beta/6/i386/epel-release-6-5.noarch.rpm

yum install -y puppet
yum install -y git


##### UBUNTU 8.04 LTS ##############################
# Add the custom Puppet backport repo by Stephane Graber:
echo "deb http://ppa.launchpad.net/stgraber/puppet/ubuntu hardy main" >> /etc/apt/sources.list.d/puppet.list 
# and then import its signing key:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E7716B13

apt-get update
apt-get install -y puppet
apt-get install -y git-core


##### UBUNTU 10.04 LTS #############################
# On Ubuntu 10.04 (lucid) there's already Puppet 0.25.X
apt-get update
apt-get install -y puppet
apt-get install -y git-core


##### DEBIAN 5 #####################################
# On Debian 5 (lenny) you need to use the backports repo
# Add backports to your apt sources:
echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" >> /etc/apt/sources.list.d/backports.list

apt-get update
apt-get install -y debian-backports-keyring
apt-get update
# Install Puppet from the backports repo
apt-get -t lenny-backports install -y puppet
# Then install git
apt-get install -y git-core


##### DEBIAN 4 #####################################
# On Debian 4 (etch) you MAY TRY to the lenny-backports repo
# Quick tests seemed to provide a working Puppet 0.25 installation, but ... well take it definitvely AS IS
# Add lenny-backports to your apt sources:
echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" >> /etc/apt/sources.list.d/backports.list

apt-get update
apt-get install -y debian-backports-keyring
apt-get update
# Install Puppet from the backports repo
apt-get -t lenny-backports install -y puppet
# Then install git
apt-get install -y git-core


##### SLES 11 ######################################
# On Suse Enterprise Linux 11 Puppety 0.34 is provided by default
# For 0.25 you need to add an alternative repo, add it to yourzypper repos:
wget http://download.opensuse.org/repositories/system:/management/SLE_11/system:management.repo -O "/etc/zypp/repos.d/system:management.repo"
# Then you can install Puppet (note that the ruby packages is searched in the installation medium)
zypper install -y puppet
Picture: 

Post new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
Be human
Copyright © 2011 Lab42. Drupal theme by Kiwi Themes.