more puppet
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/1943983d Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/1943983d Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/1943983d Branch: refs/heads/master Commit: 1943983d7901ebce0ee194e504398bb24a94d4b6 Parents: 459e3c6 Author: Roman Shaposhnik <[email protected]> Authored: Tue Nov 27 15:31:54 2012 -0800 Committer: Roman Shaposhnik <[email protected]> Committed: Tue Nov 27 15:31:54 2012 -0800 ---------------------------------------------------------------------- .../puppet/modules/hadoop/manifests/init.pp | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/1943983d/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp ---------------------------------------------------------------------- diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp index f44b60e..c907851 100644 --- a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp @@ -550,11 +550,16 @@ class hadoop { $hadoop_jobtracker_host = $jobtracker_host $hadoop_jobtracker_port = $jobtracker_port $hadoop_security_authentication = $auth + $hadoop_client_packages = $operatingsystem ? { + /(OracleLinux|CentOS|RedHat|Fedora)/ => [ "hadoop-doc", "hadoop-hdfs-fuse", "hadoop-client", "hadoop-libhdfs", "hadoop-debuginfo" ], + /(SLES|OpenSuSE)/ => [ "hadoop-doc", "hadoop-hdfs-fuse", "hadoop-client", "hadoop-libhdfs" ], + /(Ubuntu|Debian)/ => [ "hadoop-doc", "hadoop-hdfs-fuse", "hadoop-client", "libhdfs0-dev" ], + default => [ "hadoop-doc", "hadoop-hdfs-fuse", "hadoop-client" ], + } include common-mapred-app - # FIXME: "hadoop-source", "hadoop-fuse", "hadoop-pipes", "hadoop-debuginfo" - package { ["hadoop-doc", "hadoop-libhdfs"]: + package { $hadoop_client_packages: ensure => latest, require => [Package["jdk"], Package["hadoop"], Package["hadoop-hdfs"], Package["hadoop-mapreduce"]], }
