]> gitweb.fluxo.info Git - puppet-bind.git/commitdiff
Change variable name (don't use $fqdn)
authorRaphaël Pinson <raphael.pinson@camptocamp.com>
Mon, 26 Mar 2012 16:59:56 +0000 (18:59 +0200)
committerRaphaël Pinson <raphael.pinson@camptocamp.com>
Mon, 26 Mar 2012 16:59:56 +0000 (18:59 +0200)
manifests/a.pp

index f2e8bcab385cc35c390499d063dce077ea382d0a..903315b6fb233ceb07d772472669927f21ca1b03 100644 (file)
@@ -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,
     }
+  }
 }