Do not allow install puppet 2.7 on Trusty
This commit is contained in:
parent
6c838879c5
commit
eb5c5c4cff
|
@ -71,6 +71,11 @@ class puppet (
|
||||||
# Which Puppet do I take?
|
# Which Puppet do I take?
|
||||||
# Take $pin_puppet and pin to that version
|
# Take $pin_puppet and pin to that version
|
||||||
if ($::osfamily == 'Debian') {
|
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':
|
apt::source { 'puppetlabs':
|
||||||
location => 'http://apt.puppetlabs.com',
|
location => 'http://apt.puppetlabs.com',
|
||||||
repos => 'main',
|
repos => 'main',
|
||||||
|
|
Loading…
Reference in New Issue