diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-14 19:34:47 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-14 19:45:16 +0100 |
commit | 5233b23c97da750f632ae62162e434b58ee80da9 (patch) | |
tree | b08aa87756c585f8e8429574c94e9b4782ce7f9f /manifests/publish_dns.pp | |
parent | Use module dns_record. (diff) | |
download | profiles-5233b23c97da750f632ae62162e434b58ee80da9.tar.gz profiles-5233b23c97da750f632ae62162e434b58ee80da9.tar.xz |
Add automatic reverse zone.
Diffstat (limited to 'manifests/publish_dns.pp')
-rw-r--r-- | manifests/publish_dns.pp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/publish_dns.pp b/manifests/publish_dns.pp index bf5aa81..40860fa 100644 --- a/manifests/publish_dns.pp +++ b/manifests/publish_dns.pp @@ -8,4 +8,16 @@ class profiles::publish_dns ( value => $facts['ipaddress6'], } + + [$record, $zone] = dns_record::rev_record( + $facts['networking']['ip6'], + $facts['networking']['netmask6']) + + @@dns_record { "PTR automatic ${::fqdn}": + type => 'PTR', + zone => $zone, + key => $record, + value => $::fqdn, + } + } |