Skip to content

Commit

Permalink
Merge pull request jhoblitt#13 from xavpaice/master
Browse files Browse the repository at this point in the history
Add IPv6 support for Debian based gmond
  • Loading branch information
Joshua Hoblitt committed Apr 2, 2014
2 parents 37252ad + bd53972 commit 57fde5b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions manifests/gmond.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
# -mcast_join
# -port
# -bind
# -family
#
# defaults to:
# [ { mcast_join => '239.2.11.71', port => 8649, ttl => 1 } ]
Expand All @@ -47,6 +48,7 @@
# array of hashes. Valid keys are:
#
# -port
# -family
#
# defaults to:
# [ { port => 8659 } ]
Expand Down
8 changes: 7 additions & 1 deletion templates/gmond.conf.debian.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ globals {
host_dmax = 0 /*secs */
cleanup_threshold = 300 /*secs */
gexec = no
send_metadata_interval = 0
send_metadata_interval = 300 /*secs */
}

/* If a cluster attribute is specified, then all gmond hosts are wrapped inside
Expand Down Expand Up @@ -63,6 +63,9 @@ udp_recv_channel {
<%- if channel['bind'] then -%>
bind = <%= channel['bind'] %>
<%- end -%>
<%- if channel['family'] then -%>
family = <%= channel['family'] %>
<%- end -%>
}

<% end -%>
Expand All @@ -75,6 +78,9 @@ tcp_accept_channel {
<%- if channel['port'] then -%>
port = <%= channel['port'] %>
<%- end -%>
<%- if channel['family'] then -%>
family = <%= channel['family'] %>
<%- end -%>
}

<% end -%>
Expand Down
6 changes: 6 additions & 0 deletions templates/gmond.conf.el5.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ udp_recv_channel {
<%- if channel['bind'] then -%>
bind = <%= channel['bind'] %>
<%- end -%>
<%- if channel['family'] then -%>
family = <%= channel['family'] %>
<%- end -%>
}

<% end -%>
Expand All @@ -74,6 +77,9 @@ tcp_accept_channel {
<%- if channel['port'] then -%>
port = <%= channel['port'] %>
<%- end -%>
<%- if channel['family'] then -%>
family = <%= channel['family'] %>
<%- end -%>
}

<% end -%>
Expand Down
6 changes: 6 additions & 0 deletions templates/gmond.conf.el6.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ udp_recv_channel {
<%- if channel['bind'] then -%>
bind = <%= channel['bind'] %>
<%- end -%>
<%- if channel['family'] then -%>
family = <%= channel['family'] %>
<%- end -%>
}

<% end -%>
Expand All @@ -77,6 +80,9 @@ tcp_accept_channel {
<%- if channel['port'] then -%>
port = <%= channel['port'] %>
<%- end -%>
<%- if channel['family'] then -%>
family = <%= channel['family'] %>
<%- end -%>
}

<% end -%>
Expand Down

0 comments on commit 57fde5b

Please sign in to comment.