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:
parent
cd21635412
commit
9e26d4863e
@ -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
|
||||
|
7
modules/openstack_project/files/centos-puppetlabs.repo
Normal file
7
modules/openstack_project/files/centos-puppetlabs.repo
Normal 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*
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user