Do not allow install puppet 2.7 on Trusty

This commit is contained in:
Yolanda Robla 2015-03-18 15:32:33 +01:00
parent 6c838879c5
commit eb5c5c4cff
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,11 @@ class puppet (
# Which Puppet do I take?
# Take $pin_puppet and pin to that version
if ($::osfamily == 'Debian') {
# check version - trusty only has puppet 3
if ($::lsbdistcodename == 'trusty') and ($pin_puppet == '2.7.') {
fail("Puppet 2.7 version not supported")
}
apt::source { 'puppetlabs':
location => 'http://apt.puppetlabs.com',
repos => 'main',