OSDN Git Service

refactor roles.
[metasearch/grid-chef-repo.git] / roles / pleiades-hm.rb
1 name 'pleiades-hm'
2 description 'Pleiades HBase Master node'
3
4 run_list(
5   'role[grid-realm]',
6   'role[ganglia-gmond]',
7   'role[pleiades-node]'
8 )
9
10 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
11
12 default_attributes(
13 )
14
15 mcast_addr = '239.2.11.10'
16 port = '8649'
17
18 override_attributes(
19   'ganglia' => {
20     # gmond
21     'cluster' => {
22       'name' => 'HBaseMaster',
23       'owner' => 'grid.example.com'
24     },
25     'static' => {
26       ## static multi-cast
27       'udp_send_channels' => [
28         {
29           'mcast_join' => mcast_addr,
30           'host' => '',
31           'port' => port,
32           'ttl' => '1'
33         }
34       ],
35       'udp_recv_channels' => [
36         {
37           'mcast_join' => mcast_addr,
38           'port' => port,
39           'bind' => mcast_addr
40         }
41       ]
42 =begin
43       ## static uni-cast
44       'udp_send_channels' => [
45         {
46           'mcast_join' => '',
47           'host' => "hm00.#{this.domain}",
48           'port' => port,
49           'ttl' => ''
50         },
51         {
52           'mcast_join' => '',
53           'host' => "hm01.#{this.domain}",
54           'port' => port,
55           'ttl' => ''
56         }
57       ],
58       'udp_recv_channels' => [
59         {
60           'mcast_join' => '',
61           'port' => port,
62           'bind' => ''
63         }
64       ]
65 =end
66     }
67   }
68 )