# include ferm
#
class ferm {
- include stdlib
-
# realize (i.e. enable) all @ferm::rule virtual resources
Ferm::Rule <| |>
Ferm::Conf <| |>
status => '/bin/true',
}
- $munin_ips = unique(getfromhash($site::nodeinfo, 'misc', 'v4addrs'))
+ $munin_ips = getfromhash($site::nodeinfo, 'misc', 'v4addrs')
.map |$addr| { "ip_${addr}" }
munin::check { $munin_ips: script => 'ip_', }
if fqdn and fqdn == host
v4ips = lookupvar('::v4ips')
if v4ips and v4ips.to_s != "" and v4ips.to_s != 'undefined'
- nodeinfo['misc']['v4addrs'] = v4ips.split(',')
+ nodeinfo['misc']['v4addrs'] = v4ips.split(',').uniq()
# find out if we are behind nat
intersection = nodeinfo['misc']['v4addrs'] & nodeinfo['ldap']['ipHostNumber']
v6ips = lookupvar('::v6ips')
if v6ips and v6ips.to_s != "" and v6ips.to_s != 'undefined'
- nodeinfo['misc']['v6addrs'] = v6ips.split(',')
+ nodeinfo['misc']['v6addrs'] = v6ips.split(',').uniq()
else
nodeinfo['misc']['v6addrs'] = []
end