aboutsummaryrefslogtreecommitdiff
path: root/bigtop-deploy/puppet
diff options
context:
space:
mode:
authorRoman Shaposhnik <rvs@cloudera.com>2012-11-28 21:35:16 -0800
committerRoman Shaposhnik <rvs@cloudera.com>2012-12-04 13:59:45 -0800
commit57fbb284954ee81f9d6a381c159cf415867dffab (patch)
treeceac91fa841ef6d7c760f582b4184ddcf34dacb2 /bigtop-deploy/puppet
parentaa354502af1c930d60f15abc986bf0ed4336be5e (diff)
BIGTOP-612. Add Crunch to Bigtop
Diffstat (limited to 'bigtop-deploy/puppet')
-rw-r--r--bigtop-deploy/puppet/manifests/cluster.pp2
-rw-r--r--bigtop-deploy/puppet/modules/crunch/manifests/init.pp22
-rw-r--r--bigtop-deploy/puppet/modules/crunch/tests/init.pp17
3 files changed, 41 insertions, 0 deletions
diff --git a/bigtop-deploy/puppet/manifests/cluster.pp b/bigtop-deploy/puppet/manifests/cluster.pp
index 57d73b32..99d5af38 100644
--- a/bigtop-deploy/puppet/manifests/cluster.pp
+++ b/bigtop-deploy/puppet/manifests/cluster.pp
@@ -286,6 +286,8 @@ class hadoop_gateway_node inherits hadoop_cluster_node {
giraph::client { "giraph client":
zookeeper_quorum => $giraph_zookeeper_quorum,
}
+ crunch::client { "crunch client":
+ }
hadoop-pig::client { "pig client":
}
hadoop-hive::client { "hive client":
diff --git a/bigtop-deploy/puppet/modules/crunch/manifests/init.pp b/bigtop-deploy/puppet/modules/crunch/manifests/init.pp
new file mode 100644
index 00000000..d4466670
--- /dev/null
+++ b/bigtop-deploy/puppet/modules/crunch/manifests/init.pp
@@ -0,0 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+class crunch {
+ define client {
+ package { ["crunch", "crunch-doc"]:
+ ensure => latest,
+ }
+ }
+}
diff --git a/bigtop-deploy/puppet/modules/crunch/tests/init.pp b/bigtop-deploy/puppet/modules/crunch/tests/init.pp
new file mode 100644
index 00000000..abef3713
--- /dev/null
+++ b/bigtop-deploy/puppet/modules/crunch/tests/init.pp
@@ -0,0 +1,17 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+include crunch
+crunch::client { "test-crunch": }