OSDN Git Service

adds `Docker in LXD` support.
[metasearch/grid-chef-repo.git] / roles / pleiades-node.rb
index e2c5862..13c0640 100644 (file)
@@ -1,5 +1,21 @@
-$LOAD_PATH.push("#{File.dirname(__FILE__)}/../_lib")
-#${chef-repo}/_lib/grid.rb
+#
+# Copyright 2013-2014, whitestar
+#
+# Licensed 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.
+#
+
+$LOAD_PATH.push("#{File.dirname(__FILE__)}/_lib")
+#${chef-repo}/roles/_lib/grid.rb
 require 'grid'
 
 name 'pleiades-node'
@@ -14,10 +30,13 @@ run_list(
 
 cluster = Grid::CLUSTERS[:pleiades]
 
-default_attributes(
+#default_attributes
+
+override_attributes(
   'hadoop' => {
     'version' => '1.0.4',
     'metrics2' => {
+      # multi-cast
       'namenode.sink.ganglia.servers'    => "#{cluster[:namenodes][:mcast_addr]}:8649",
       'datanode.sink.ganglia.servers'    => "#{cluster[:datanodes][:mcast_addr]}:8649",
       'jobtracker.sink.ganglia.servers'  => "#{cluster[:jobtrackers][:mcast_addr]}:8649",
@@ -31,4 +50,3 @@ default_attributes(
   }
 )
 
-#override_attributes "apache2" => { "max_children" => "50" }