From 1be6d18e237b3b8d7866c3f50e1b4fee4a88cdc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 5 May 2023 01:39:13 +0200 Subject: notify. --- manifests/init.pp | 5 +++++ types/ttl.pp | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index a799f8a..dcdc0c6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -62,6 +62,11 @@ class dns ( enable => true, } + notify { + 'zones': message => "${zones}" ; + 'keys': message => "${keys}" ; + } + create_resources(dns::key, $keys) create_resources(dns::zone, $zones) diff --git a/types/ttl.pp b/types/ttl.pp index 2674172..7ca0f8f 100644 --- a/types/ttl.pp +++ b/types/ttl.pp @@ -1,6 +1,9 @@ # https://www.zytrax.com/books/dns/apa/time.html # NOTE Ttl fields might be limited to 32 bits. Possibly ensure that # this number is lower than that. -type Dns::Ttl = Pattern[ - /(?i:([0-9]+[smhdw]?)+)/, +type Dns::Ttl = Variant[ + Integer[0,4294967295], + Pattern[ + /(?i:([0-9]+[smhdw]?)+)/, + ] ] -- cgit v1.2.3