Pin facter on centos boxes

We need to pin facter on centos machines as well as debian based
machines.

Change-Id: Ieb2077a3d73c8966629974ce8ac37be6f762046d
This commit is contained in:
Clark Boylan 2014-04-07 16:12:56 -07:00
parent cd21635412
commit 9e26d4863e
3 changed files with 19 additions and 1 deletions

View File

@ -55,7 +55,7 @@ baseurl=http://yum.puppetlabs.com/el/6/products/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1
exclude=puppet-2.8* puppet-2.9* puppet-3*
exclude=puppet-2.8* puppet-2.9* puppet-3* facter-2*
EOF
yum update -y

View File

@ -0,0 +1,7 @@
[puppetlabs-products]
name=Puppet Labs Products El 6 - $basearch
baseurl=http://yum.puppetlabs.com/el/6/products/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1
exclude=puppet-2.8* puppet-2.9* puppet-3* facter-2*

View File

@ -83,6 +83,17 @@ class openstack_project::base(
}
if ($::operatingsystem == 'CentOS') {
file { '/etc/yum.repos.d/puppetlabs.repo':
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/openstack_project/centos-puppetlabs.repo',
replace => true,
}
}
file { '/etc/puppet/puppet.conf':
ensure => present,
owner => 'root',