From f28c3616cefa8f2c53fd04cbc2b3a58b0cb4f0be Mon Sep 17 00:00:00 2001 From: Raphaƫl Pinson Date: Fri, 12 Apr 2013 10:56:56 +0200 Subject: Pass $ensure to concat::fragment in dhcp::hosts --- manifests/hosts.pp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'manifests') 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'], } } -- cgit v1.2.3