Skip to content

Instantly share code, notes, and snippets.

@kjoconnor
Created April 24, 2012 22:50
Show Gist options
  • Save kjoconnor/2484425 to your computer and use it in GitHub Desktop.
Save kjoconnor/2484425 to your computer and use it in GitHub Desktop.
Install puppet-server on Amazon Linux
1. Paste into /etc/yum.repos.d/puppetlabs.repo
[puppetlabs]
name=Puppet Labs - $basearch
baseurl=http://yum.puppetlabs.com/el/6Server/products/$basearch
failovermethod=priority
priority=0
enabled=0
2. rpm --import http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
3. rpm -Uhv http://pkgs.repoforge.org/ruby-shadow/ruby-shadow-1.4.1-2.el6.rf.x86_64.rpm
4. yum --enablerepo=puppetlabs install puppet-server
@pmoranga
Copy link

So, all steps together:

rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-10.noarch.rpm

yum-config-manager --enable epel
yum-config-manager --setopt="puppetlabs-products.priority=1" --save

yum -y install ruby18 rubygem18-json ruby-augeas
alternatives --set ruby /usr/bin/ruby1.8
yum -y install puppet

@pscadiz
Copy link

pscadiz commented Jul 26, 2017

Just to add, you can also install puppet-4.10 through the same method.
Only change the repo rpm to https://yum.puppetlabs.com/puppetlabs-release-pc1-el-6.noarch.rpm
and repo name would be puppetlabs-pc1 instead of puppetlabs-products

rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-6.noarch.rpm
[...]
yum-config-manager --setopt="puppetlabs-pc1.priority=1" --save
[...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment