OSDN Git Service

add grid-gpm role.
[metasearch/grid-chef-repo.git] / roles / grid-gpm.rb
1 name 'grid-gpm'
2 description 'Grid provisioning master node'
3
4 run_list(
5   'role[ganglia-gmond]',
6 )
7
8 this_domain = 'grid.example.com'
9 mcast_addr = '239.2.10.5'
10 port = '8649'
11
12 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
13
14 default_attributes(
15 )
16
17 override_attributes(
18   'ganglia' => {
19     # gmond
20     'cluster' => {
21       'name' => 'ProvisioningMaster',
22       'owner' => this_domain
23     },
24     'udp_send_channels' => [
25       {
26         'mcast_join' => mcast_addr,
27         'host' => '',
28         'port' => port,
29         'ttl' => '1'
30       }
31     ],
32     'udp_recv_channels' => [
33       {
34         'mcast_join' => mcast_addr,
35         'port' => port,
36         'bind' => mcast_addr
37       }
38     ]
39   }
40 )