summaryrefslogtreecommitdiff
path: root/manifests/publish_dns.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-14 16:52:41 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-14 16:52:41 +0100
commit6bb92f17b6b7766598da2b3ccc984d05dd6db9f2 (patch)
treeee931861ee363ab547c33f808d4d59a6ec5b2541 /manifests/publish_dns.pp
parentRemove xmonad hook. (diff)
downloadprofiles-6bb92f17b6b7766598da2b3ccc984d05dd6db9f2.tar.gz
profiles-6bb92f17b6b7766598da2b3ccc984d05dd6db9f2.tar.xz
Use module dns_record.
Diffstat (limited to 'manifests/publish_dns.pp')
-rw-r--r--manifests/publish_dns.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/publish_dns.pp b/manifests/publish_dns.pp
new file mode 100644
index 0000000..bf5aa81
--- /dev/null
+++ b/manifests/publish_dns.pp
@@ -0,0 +1,11 @@
+class profiles::publish_dns (
+) {
+
+ @@dns_record { "AAAA automatic ${::fqdn}":
+ type => 'AAAA',
+ zone => $facts['domain'],
+ key => $facts['hostname'],
+ value => $facts['ipaddress6'],
+ }
+
+}