Revision 3a4a13cc
Added by Greg Sutcliffe about 11 years ago
manifests/init.pp | ||
---|---|---|
|
||
concat_build { 'dhcp.conf':
|
||
order => ['*.dhcp'],
|
||
target => "${dhcp_dir}/dhcpd.conf",
|
||
require => Package[$packagename],
|
||
notify => [Service[$servicename],File["${dhcp_dir}/dhcpd.conf"]],
|
||
}
|
||
... | ... | |
owner => 'root',
|
||
group => 'root',
|
||
mode => '0644',
|
||
require => Package[$packagename],
|
||
source => concat_output('dhcp.conf'),
|
||
require => [Package[$packagename],Concat_build['dhcp.conf']],
|
||
}
|
||
|
||
concat_fragment { 'dhcp.conf+01_main.dhcp':
|
||
... | ... | |
|
||
concat_build { 'dhcp.hosts':
|
||
order => ['*.hosts'],
|
||
target => "${dhcp_dir}/dhcpd.hosts",
|
||
require => Package[$packagename],
|
||
notify => [Service[$servicename],File["${dhcp_dir}/dhcpd.hosts"]],
|
||
}
|
||
... | ... | |
owner => 'root',
|
||
group => 'root',
|
||
mode => '0644',
|
||
require => Package[$packagename],
|
||
source => concat_output('dhcp.hosts'),
|
||
require => [Package[$packagename],Concat_build['dhcp.hosts']],
|
||
}
|
||
|
||
concat_fragment { 'dhcp.hosts+01_main.hosts':
|
Also available in: Unified diff
Use concat_output for file content source, so we get the old file Filebucketed on change