munin: Use hostnames in node definitions
This commit is contained in:
parent
fae8257a89
commit
aa2b4b38ce
3 changed files with 5 additions and 5 deletions
|
@ -67,10 +67,7 @@ class munin::node {
|
||||||
|
|
||||||
@@file { "/etc/munin/conf.d/${homename}.conf":
|
@@file { "/etc/munin/conf.d/${homename}.conf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => $::ec2_public_ipv4 ? {
|
content => "[${homename}]\n address ${homename}\n use_node_name yes\n",
|
||||||
"" => "[${homename}]\n address ${ipaddress}\n use_node_name yes\n",
|
|
||||||
default => "[${homename}]\n address ${ec2_public_ipv4}\n use_node_name yes\n",
|
|
||||||
},
|
|
||||||
tag => "munin",
|
tag => "munin",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ allow <%= "^%s$" % allow.gsub('.', '\.') %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
# Which address to bind to;
|
# Which address to bind to;
|
||||||
host <%= @ipaddress %>
|
host *
|
||||||
|
|
||||||
# And which port
|
# And which port
|
||||||
port 4949
|
port 4949
|
||||||
|
|
|
@ -16,6 +16,9 @@ graph_strategy cgi
|
||||||
cgiurl_graph /munin/cgi/munin-cgi-graph
|
cgiurl_graph /munin/cgi/munin-cgi-graph
|
||||||
<% if @munin_tls == "true" -%>
|
<% if @munin_tls == "true" -%>
|
||||||
|
|
||||||
|
# Force munin-update to use IPv4 to workaround broken IPv6 support
|
||||||
|
local_address <%= @ipaddress %>
|
||||||
|
|
||||||
# Require TLS
|
# Require TLS
|
||||||
tls paranoid
|
tls paranoid
|
||||||
tls_verify_certificate yes
|
tls_verify_certificate yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue