Better support for RHEL, Centos

This commit is contained in:
Yolanda Robla 2015-03-18 15:05:05 +01:00
parent 1e171ddeec
commit 2fb321257b
1 changed files with 6 additions and 1 deletions

View File

@ -115,7 +115,12 @@ class puppet (
}
if ($::operatingsystem == 'CentOS') {
if ($::osfamily == 'RedHat') {
# check version - 7 only has puppet 3
if ($::operatingsystemmajrelease == 7) and ($pin_puppet == '2.7.') {
fail("Puppet 2.7 version not supported")
}
file { '/etc/yum.repos.d/puppetlabs.repo':
ensure => present,
owner => 'root',