OSDN Git Service

add pleiades node JSON files.
[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     ## multi-cast
25     'udp_send_channels' => [
26       {
27         'mcast_join' => mcast_addr,
28         'host' => '',
29         'port' => port,
30         'ttl' => '1'
31       }
32     ],
33     'udp_recv_channels' => [
34       {
35         'mcast_join' => mcast_addr,
36         'port' => port,
37         'bind' => mcast_addr
38       }
39     ]
40 =begin
41     ## uni-cast
42     'udp_send_channels' => [
43       {
44         'mcast_join' => '',
45         'host' => "wf00.#{this.domain}",
46         'port' => port,
47         'ttl' => ''
48       },
49       {
50         'mcast_join' => '',
51         'host' => "wf01.#{this.domain}",
52         'port' => port,
53         'ttl' => ''
54       }
55     ],
56     'udp_recv_channels' => [
57       {
58         'mcast_join' => '',
59         'port' => port,
60         'bind' => ''
61       }
62     ]
63 =end
64   }
65 )