]> gitweb.fluxo.info Git - puppet-dhcp.git/commitdiff
Pass $ensure to concat::fragment in dhcp::hosts
authorRaphaël Pinson <raphael.pinson@camptocamp.com>
Fri, 12 Apr 2013 08:56:56 +0000 (10:56 +0200)
committerRaphaël Pinson <raphael.pinson@camptocamp.com>
Fri, 12 Apr 2013 08:56:56 +0000 (10:56 +0200)
manifests/hosts.pp

index 676d507910c9e596a9f7dc8efecaad4f9d2b08a8..9e2b28404471d9d2da68c0a5d18493ec167db600 100644 (file)
@@ -52,11 +52,10 @@ define dhcp::hosts (
   validate_array($global_options)
   validate_string($template)
 
-  if ($ensure == 'present') {
-    concat::fragment {"dhcp.host.${name}":
-      target  => "${dhcp::params::config_dir}/hosts.d/${subnet}.conf",
-      content => template($template),
-      notify  => Service['dhcpd'],
-    }
+  concat::fragment {"dhcp.host.${name}":
+    ensure  => $ensure,
+    target  => "${dhcp::params::config_dir}/hosts.d/${subnet}.conf",
+    content => template($template),
+    notify  => Service['dhcpd'],
   }
 }