diff options
author | Mathieu Bornoz <mathieu.bornoz@camptocamp.com> | 2012-08-02 09:30:21 +0200 |
---|---|---|
committer | Mathieu Bornoz <mathieu.bornoz@camptocamp.com> | 2012-08-02 09:30:21 +0200 |
commit | 536a24852925104df8b9becfcac9d17ac999a5f4 (patch) | |
tree | dc559110c95876c9f48ba81c0bc89cd43cad8737 /manifests/host.pp | |
parent | 5f4a22d6775fc091124c95bbb0b891bf95e6043c (diff) | |
download | puppet-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.pp | 8 |
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"], } } |