class profiles::publish_dns ( ) { if fact('ipaddress6') { @@dns::record { "AAAA automatic ${::fqdn}": type => 'AAAA', zone => "${$facts['domain']}.", key => $facts['hostname'], value => $facts['ipaddress6'], } [$record, $zone] = dns::rev_record( $facts['networking']['ip6'], $facts['networking']['netmask6']) @@dns::record { "PTR automatic ${::fqdn}": type => 'PTR', zone => "${zone}.", key => $record, value => "${::fqdn}.", } } }