From: Raphaƫl Pinson Date: Fri, 12 Apr 2013 08:56:56 +0000 (+0200) Subject: Pass $ensure to concat::fragment in dhcp::hosts X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f28c3616cefa8f2c53fd04cbc2b3a58b0cb4f0be;p=puppet-dhcp.git Pass $ensure to concat::fragment in dhcp::hosts --- diff --git a/manifests/hosts.pp b/manifests/hosts.pp index 676d507..9e2b284 100644 --- a/manifests/hosts.pp +++ b/manifests/hosts.pp @@ -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'], } }