diff options
Diffstat (limited to 'manifests/ns.pp')
-rw-r--r-- | manifests/ns.pp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/manifests/ns.pp b/manifests/ns.pp new file mode 100644 index 0000000..e0fbeef --- /dev/null +++ b/manifests/ns.pp @@ -0,0 +1,28 @@ +# = Definition: bind::ns +# +# Creates an NS record. +# +# Arguments: +# *$zone*: Bind::Zone name +# *$owner*: owner of the Resource Record +# *$host*: target of the Resource Record +# *$ttl*: Time to Live for the Resource Record. Optional. +# +define bind::ns ( + $zone, + $host, + $ensure = present, + $owner = false, + $ttl = false +) { + + bind::record {$name: + ensure => $ensure, + zone => $zone, + owner => $owner, + host => $host, + ttl => $ttl, + record_type => 'NS', + } + +} |