OSDN Git Service

add ganglia recipe's uni-cast setting support.
[metasearch/grid-chef-repo.git] / roles / pleiades-wf.rb
1 name 'pleiades-wf'
2 description 'Pleiades workflow node'
3
4 run_list(
5   'role[grid-realm]',
6   'role[ganglia-gmond]'
7 )
8
9 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
10
11 default_attributes(
12 )
13
14 mcast_addr = '239.2.11.6'
15 port = '8649'
16
17 override_attributes(
18   'ganglia' => {
19     # gmond
20     'cluster' => {
21       'name' => 'Workflow',
22       'owner' => 'grid.example.com'
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 =begin
40     ## unicast
41     'udp_send_channels' => [
42       {
43         'mcast_join' => '',
44         'host' => "wf00.#{this.domain}",
45         'port' => port,
46         'ttl' => ''
47       },
48       {
49         'mcast_join' => '',
50         'host' => "wf01.#{this.domain}",
51         'port' => port,
52         'ttl' => ''
53       }
54     ],
55     'udp_recv_channels' => [
56       {
57         'mcast_join' => '',
58         'port' => port,
59         'bind' => ''
60       }
61     ]
62 =end
63   }
64 )