summaryrefslogtreecommitdiff
path: root/manifests/cname.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/cname.pp')
-rw-r--r--manifests/cname.pp45
1 files changed, 23 insertions, 22 deletions
diff --git a/manifests/cname.pp b/manifests/cname.pp
index c8baeec..f8eca40 100644
--- a/manifests/cname.pp
+++ b/manifests/cname.pp
@@ -1,27 +1,28 @@
-/*
-
-= Definition: bind::cname
-Creates a CNAME 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::cname($ensure=present,
- $zone,
- $owner=false,
- $host,
- $ttl=false) {
+# = Definition: bind::cname
+#
+# Creates a CNAME 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::cname (
+ $zone,
+ $host,
+ $ensure = present,
+ $owner = false,
+ $ttl = false
+) {
bind::record {$name:
- ensure => $ensure,
- zone => $zone,
- owner => $owner,
- host => $host,
- ttl => $ttl,
+ ensure => $ensure,
+ zone => $zone,
+ owner => $owner,
+ host => $host,
+ ttl => $ttl,
record_type => 'CNAME',
}
+
}