name 'ganglia-gmond-ucast-localhost'
description 'Ganglia gmond uni-cast to localhost'

run_list(
  'role[ganglia-gmond]'
)

#env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []

default_attributes(
)

override_attributes(
  'ganglia' => {
    'gmond_conf_type' => 'static',
    'cluster' => {
      'name' => 'local',
      'owner' => 'grid.example.com'
    },
    'static' => {
      'udp_send_channels' => [
        {
          'mcast_join' => '',
          #'host' => 'localhost',
          'host' => '127.0.0.1',
          #'host' => '::1',
          'port' => '8649',
          'ttl' => ''
        }
      ],
      'udp_recv_channels' => [
        {
          'mcast_join' => '',
          'port' => '8649',
          #'family' => 'inet4',
          'bind' => ''
        }
=begin
        {
          'mcast_join' => '',
          'port' => '8649',
          'family' => 'inet6',
          'bind' => ''
        }
=end
      ]
    }
  }
)
