OSDN Git Service

refactor node_commons role.
[metasearch/grid-chef-repo.git] / roles / pleiades-gw.rb
1 name 'pleiades-gw'
2 description 'Pleiades gateway node'
3
4 run_list(
5   'role[node_commons]',
6   'role[grid-realm]',
7   'role[ganglia-gmond]',
8   'role[pleiades-node]',
9   'role[pig]'
10 )
11
12 mcast_addr = '239.2.11.5'
13 port = '8649'
14
15 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
16
17 default_attributes(
18 )
19
20 override_attributes(
21   'ganglia' => {
22     # gmond
23     'cluster' => {
24       'name' => 'Gateway',
25       'owner' => 'grid.example.com'
26     },
27     ## static multi-cast
28     'static' => {
29       'udp_send_channels' => [
30         {
31           'mcast_join' => mcast_addr,
32           'host' => '',
33           'port' => port,
34           'ttl' => '1'
35         }
36       ],
37       'udp_recv_channels' => [
38         {
39           'mcast_join' => mcast_addr,
40           'port' => port,
41           'bind' => mcast_addr
42         }
43       ]
44 =begin
45       ## static uni-cast
46       'udp_send_channels' => [
47         {
48           'mcast_join' => '',
49           'host' => "gw00.#{this.domain}",
50           'port' => port,
51           'ttl' => ''
52         },
53         {
54           'mcast_join' => '',
55           'host' => "gw01.#{this.domain}",
56           'port' => port,
57           'ttl' => ''
58         }
59       ],
60       'udp_recv_channels' => [
61         {
62           'mcast_join' => '',
63           'port' => port,
64           'bind' => ''
65         }
66       ]
67 =end
68     }
69   },
70   'pig' => {
71     'version' => '0.11.1'
72   }
73 )