You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by ev...@apache.org on 2015/04/10 20:42:37 UTC

bigtop git commit: BIGTOP-1822. Puppet apt module should be automatically installed by toolchain

Repository: bigtop
Updated Branches:
  refs/heads/master 0deb12aef -> cde7665b1


BIGTOP-1822. Puppet apt module should be automatically installed by toolchain


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/cde7665b
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/cde7665b
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/cde7665b

Branch: refs/heads/master
Commit: cde7665b17e452663355c8e6cfac1e317e4fc8ab
Parents: 0deb12a
Author: Evans Ye <ev...@apache.org>
Authored: Fri Apr 10 18:11:33 2015 +0000
Committer: Evans Ye <ev...@apache.org>
Committed: Fri Apr 10 18:40:52 2015 +0000

----------------------------------------------------------------------
 bigtop_toolchain/manifests/puppet-modules.pp | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/cde7665b/bigtop_toolchain/manifests/puppet-modules.pp
----------------------------------------------------------------------
diff --git a/bigtop_toolchain/manifests/puppet-modules.pp b/bigtop_toolchain/manifests/puppet-modules.pp
index 4828c4a..20b39f8 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',
+      }
+    }
+  }
 }