aboutsummaryrefslogtreecommitdiff
path: root/bigtop_toolchain
diff options
context:
space:
mode:
authorEvans Ye <evansye@apache.org>2015-04-10 18:11:33 +0000
committerEvans Ye <evansye@apache.org>2015-04-10 18:40:52 +0000
commitcde7665b17e452663355c8e6cfac1e317e4fc8ab (patch)
tree4dc5ecf29ae697d78d46b119d68b77205bfe965d /bigtop_toolchain
parent0deb12aefa6f9ed5815b5169e571bfd7cdb7c624 (diff)
downloadbigtop-odpi-cde7665b17e452663355c8e6cfac1e317e4fc8ab.tar.gz
BIGTOP-1822. Puppet apt module should be automatically installed by toolchain
Diffstat (limited to 'bigtop_toolchain')
-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',
+ }
+ }
+ }
}