aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/hosts.pp11
1 files changed, 5 insertions, 6 deletions
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'],
}
}