From eb5c5c4cff140270a72aab949e65e9c6e9f4972b Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Wed, 18 Mar 2015 15:32:33 +0100 Subject: [PATCH] Do not allow install puppet 2.7 on Trusty --- manifests/init.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index dbe1744..15a4488 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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',