node default {
# we really should rename this one
include site
+ include base
# this is magic: it will include whatever classes says we should
# include, based on the value of the "classes" array
-class base {
+class base(
+ Stdlib::IP::Address $public_address = filter_ipv4(getfromhash($site::nodeinfo, 'ldap', 'ipHostNumber'))[0],
+ Optional[Stdlib::IP::Address] $public_address6 = filter_ipv6(getfromhash($site::nodeinfo, 'ldap', 'ipHostNumber'))[0],
+) {
+ $public_addresses = [ $public_address, $public_address6 ]
+
include munin
include syslog_ng
include sudo