diff options
Diffstat (limited to 'bigtop_toolchain')
-rw-r--r-- | bigtop_toolchain/manifests/puppet-modules.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bigtop_toolchain/manifests/puppet-modules.pp b/bigtop_toolchain/manifests/puppet-modules.pp index 3fab254f..38ecca26 100644 --- a/bigtop_toolchain/manifests/puppet-modules.pp +++ b/bigtop_toolchain/manifests/puppet-modules.pp @@ -23,9 +23,14 @@ class bigtop_toolchain::puppet-modules { case $operatingsystem{ /Ubuntu|Debian/: { + if versioncmp($::puppetversion, '4') < 0 { + $version = '--version 2.4.0' + } else { + $version = '' + } exec { 'install-puppet-apt': path => '/usr/bin:/bin', - command => 'puppet module install puppetlabs-apt', + command => "puppet module install puppetlabs-apt ${version}", creates => '/etc/puppet/modules/apt', } } |