aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-12 10:56:56 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-12 10:56:56 +0200
commitf28c3616cefa8f2c53fd04cbc2b3a58b0cb4f0be (patch)
treee0af947a510a51a092af221c7b982f904a51a6a3 /manifests
parente1f00ed6c75724251c3e205a3a50c7a3a4bcb077 (diff)
downloadpuppet-dhcp-f28c3616cefa8f2c53fd04cbc2b3a58b0cb4f0be.tar.gz
puppet-dhcp-f28c3616cefa8f2c53fd04cbc2b3a58b0cb4f0be.tar.bz2
Pass $ensure to concat::fragment in dhcp::hosts
Diffstat (limited to 'manifests')
-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'],
}
}