You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by yw...@apache.org on 2016/03/18 07:26:24 UTC

bigtop git commit: BIGTOP-2316. Adding puppet recipes for apache apex.

Repository: bigtop
Updated Branches:
  refs/heads/master 374cf9b74 -> bc1312d64


BIGTOP-2316. Adding puppet recipes for apache apex.

Signed-off-by: Youngwoo Kim <yw...@apache.org>


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

Branch: refs/heads/master
Commit: bc1312d64e68988086ec08a59fe662a3b89a28ab
Parents: 374cf9b
Author: chinmaykolhatkar <ch...@datatorrent.com>
Authored: Mon Mar 14 11:30:05 2016 +0530
Committer: Youngwoo Kim <yw...@apache.org>
Committed: Fri Mar 18 14:23:07 2016 +0900

----------------------------------------------------------------------
 bigtop-deploy/puppet/hieradata/site.yaml        |  1 +
 bigtop-deploy/puppet/manifests/cluster.pp       |  4 +++
 .../puppet/modules/apex/manifests/init.pp       | 30 ++++++++++++++++++++
 bigtop-deploy/puppet/modules/apex/tests/init.pp | 17 +++++++++++
 4 files changed, 52 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/bc1312d6/bigtop-deploy/puppet/hieradata/site.yaml
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/hieradata/site.yaml b/bigtop-deploy/puppet/hieradata/site.yaml
index e44cb50..ca429e6 100644
--- a/bigtop-deploy/puppet/hieradata/site.yaml
+++ b/bigtop-deploy/puppet/hieradata/site.yaml
@@ -12,6 +12,7 @@ hadoop::hadoop_storage_dirs:
   - /data/4
 
 #hadoop_cluster_node::cluster_components:
+#  - apex
 #  - crunch
 #  - flume
 #  - giraph

http://git-wip-us.apache.org/repos/asf/bigtop/blob/bc1312d6/bigtop-deploy/puppet/manifests/cluster.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/manifests/cluster.pp b/bigtop-deploy/puppet/manifests/cluster.pp
index a0be567..00042a9 100644
--- a/bigtop-deploy/puppet/manifests/cluster.pp
+++ b/bigtop-deploy/puppet/manifests/cluster.pp
@@ -14,6 +14,9 @@
 # limitations under the License.
 
 $roles_map = {
+  apex => {
+    client => ["apex-client"],
+  },
   hdfs-non-ha => {
     master => ["namenode"],
     worker => ["datanode"],
@@ -150,6 +153,7 @@ class node_with_roles ($roles = hiera("bigtop::roles")) inherits hadoop_cluster_
   }
 
   $modules = [
+    "apex",
     "crunch",
     "giraph",
     "hadoop",

http://git-wip-us.apache.org/repos/asf/bigtop/blob/bc1312d6/bigtop-deploy/puppet/modules/apex/manifests/init.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/modules/apex/manifests/init.pp b/bigtop-deploy/puppet/modules/apex/manifests/init.pp
new file mode 100644
index 0000000..c4b91c9
--- /dev/null
+++ b/bigtop-deploy/puppet/modules/apex/manifests/init.pp
@@ -0,0 +1,30 @@
+# 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 apex {
+
+  class deploy ($roles) {
+    if ("apex-client" in $roles) {
+      include apex::client
+    }
+  }
+
+  class client {
+    package { "apex":
+      ensure => latest,
+      require => Package["hadoop"],
+    }
+  }
+}

http://git-wip-us.apache.org/repos/asf/bigtop/blob/bc1312d6/bigtop-deploy/puppet/modules/apex/tests/init.pp
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/modules/apex/tests/init.pp b/bigtop-deploy/puppet/modules/apex/tests/init.pp
new file mode 100644
index 0000000..0885cbf
--- /dev/null
+++ b/bigtop-deploy/puppet/modules/apex/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 apex
+apex::client { "test-apex": }