OSDN Git Service

add .envrc
[metasearch/grid-chef-repo.git] / roles / ganglia-gmond-ucast-localhost.rb
1 name 'ganglia-gmond-ucast-localhost'
2 description 'Ganglia gmond uni-cast to localhost'
3
4 run_list(
5   'role[ganglia-gmond]'
6 )
7
8 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
9
10 default_attributes(
11 )
12
13 override_attributes(
14   'ganglia' => {
15     'gmond_conf_type' => 'static',
16     'cluster' => {
17       'name' => 'local',
18       'owner' => 'grid.example.com'
19     },
20     'static' => {
21       'udp_send_channels' => [
22         {
23           'mcast_join' => '',
24           #'host' => 'localhost',
25           'host' => '127.0.0.1',
26           #'host' => '::1',
27           'port' => '8649',
28           'ttl' => ''
29         }
30       ],
31       'udp_recv_channels' => [
32         {
33           'mcast_join' => '',
34           'port' => '8649',
35           #'family' => 'inet4',
36           'bind' => ''
37         }
38 =begin
39         {
40           'mcast_join' => '',
41           'port' => '8649',
42           'family' => 'inet6',
43           'bind' => ''
44         }
45 =end
46       ]
47     }
48   }
49 )