OSDN Git Service

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