summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/a.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/a.pp b/manifests/a.pp
index f2e8bca..903315b 100644
--- a/manifests/a.pp
+++ b/manifests/a.pp
@@ -28,15 +28,15 @@ define bind::a($ensure=present,
}
if $ptr {
- $subnet = inline_template(<%= host.split('.')[0,3].join('.') %>)
- $number = inline_template(<%= host.split('.')[3] %>)
- $fqdn = $owner
+ $subnet = inline_template("<%= host.split('.')[0,3].join('.') %>")
+ $number = inline_template("<%= host.split('.')[3] %>")
- bind::ptr {
+ bind::ptr {$host:
ensure => $ensure,
zone => $subnet,
owner => $number,
- host => $fqdn,
+ host => $owner,
ttl => $ttl,
}
+ }
}