aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bigtop_toolchain/manifests/puppet-modules.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/bigtop_toolchain/manifests/puppet-modules.pp b/bigtop_toolchain/manifests/puppet-modules.pp
index 4828c4a9..20b39f84 100644
--- a/bigtop_toolchain/manifests/puppet-modules.pp
+++ b/bigtop_toolchain/manifests/puppet-modules.pp
@@ -21,4 +21,15 @@ class bigtop_toolchain::puppet-modules {
onlyif => "test `facter puppetversion |cut -d'.' -f 1` -ge 3",
creates => '/etc/puppet/modules/stdlib',
}
+
+ case $operatingsystem{
+ /Ubuntu|Debian/: {
+ exec { 'install-puppet-apt':
+ path => '/usr/bin:/bin',
+ command => 'puppet module install puppetlabs-apt',
+ onlyif => "test `facter puppetversion |cut -d'.' -f 1` -ge 3",
+ creates => '/etc/puppet/modules/apt',
+ }
+ }
+ }
}