OSDN Git Service

refactor node_commons role.
[metasearch/grid-chef-repo.git] / roles / pleiades-wf.rb
1 name 'pleiades-wf'
2 description 'Pleiades workflow node'
3
4 run_list(
5   'role[node_commons]',
6   'role[grid-realm]',
7   'role[ganglia-gmond]'
8 )
9
10 mcast_addr = '239.2.11.6'
11 port = '8649'
12
13 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
14
15 default_attributes(
16 )
17
18 override_attributes(
19   'ganglia' => {
20     # gmond
21     'cluster' => {
22       'name' => 'Workflow',
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' => "wf00.#{this.domain}",
48           'port' => port,
49           'ttl' => ''
50         },
51         {
52           'mcast_join' => '',
53           'host' => "wf01.#{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 )