From d21f12ea0c89a7c8924d791ef625afdb2def49d5 Mon Sep 17 00:00:00 2001 From: Xav Paice Date: Mon, 10 Mar 2014 13:51:45 +1300 Subject: [PATCH] Add IPv6 support for gmond listener This commit adds the 'family' parameter for udp and tcp listeners for the gmond config, for Debian based systems. --- manifests/gmond.pp | 2 ++ templates/gmond.conf.debian.erb | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/manifests/gmond.pp b/manifests/gmond.pp index bd3a532..a6c5f84 100644 --- a/manifests/gmond.pp +++ b/manifests/gmond.pp @@ -39,6 +39,7 @@ # -mcast_join # -port # -bind +# -family # # defaults to: # [ { mcast_join => '239.2.11.71', port => 8649, ttl => 1 } ] @@ -47,6 +48,7 @@ # array of hashes. Valid keys are: # # -port +# -family # # defaults to: # [ { port => 8659 } ] diff --git a/templates/gmond.conf.debian.erb b/templates/gmond.conf.debian.erb index c86e1b3..d5fcb60 100644 --- a/templates/gmond.conf.debian.erb +++ b/templates/gmond.conf.debian.erb @@ -63,6 +63,9 @@ udp_recv_channel { <%- if channel['bind'] then -%> bind = <%= channel['bind'] %> <%- end -%> + <%- if channel['family'] then -%> + family = <%= channel['family'] %> + <%- end -%> } <% end -%> @@ -75,6 +78,9 @@ tcp_accept_channel { <%- if channel['port'] then -%> port = <%= channel['port'] %> <%- end -%> + <%- if channel['family'] then -%> + family = <%= channel['family'] %> + <%- end -%> } <% end -%>