Fixed munin::node for EC2 instances
This commit is contained in:
parent
c370df8db2
commit
4e4a45ca6b
1 changed files with 4 additions and 1 deletions
|
@ -61,7 +61,10 @@ class munin::node {
|
||||||
|
|
||||||
@@file { "/etc/munin/conf.d/${homename}.conf":
|
@@file { "/etc/munin/conf.d/${homename}.conf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => "[${homename}]\n address ${ipaddress}\n use_node_name yes\n",
|
content => $::ec2_public_ipv4 ? {
|
||||||
|
"" => "[${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",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue