aboutsummaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authorMathieu Bornoz <mathieu.bornoz@camptocamp.com>2012-08-02 09:30:21 +0200
committerMathieu Bornoz <mathieu.bornoz@camptocamp.com>2012-08-02 09:30:21 +0200
commit536a24852925104df8b9becfcac9d17ac999a5f4 (patch)
treedc559110c95876c9f48ba81c0bc89cd43cad8737 /manifests/host.pp
parent5f4a22d6775fc091124c95bbb0b891bf95e6043c (diff)
downloadpuppet-dhcp-536a24852925104df8b9becfcac9d17ac999a5f4.tar.gz
puppet-dhcp-536a24852925104df8b9becfcac9d17ac999a5f4.tar.bz2
switch from common::concatfilepart to concat[1]
[1] https://github.com/camptocamp/puppet-concat
Diffstat (limited to 'manifests/host.pp')
-rw-r--r--manifests/host.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index 160df63..d946ae9 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -11,10 +11,10 @@ Arguments:
*/
define dhcp::host($ensure=present,$mac,$subnet,$fixed_address=false, $options=false) {
include dhcp::params
- common::concatfilepart {"dhcp.host.$name":
- ensure => $ensure,
- notify => Service["dhcpd"],
- file => "${dhcp::params::config_dir}/hosts.d/${subnet}.conf",
+ concat::fragment {"dhcp.host.$name":
+ ensure => $ensure,
+ target => "${dhcp::params::config_dir}/hosts.d/${subnet}.conf",
content => template("dhcp/host.conf.erb"),
+ notify => Service["dhcpd"],
}
}