blob: 548d6f6d895569f8e95c3d095108c9bb104aa808 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
define shorewall::managed_file () {
$dir = "/var/lib/puppet/modules/shorewall/${name}.d"
concatenated_file { "/var/lib/puppet/modules/shorewall/$name":
dir => $dir,
mode => 0600,
}
file {
"${dir}/000-header":
source => "puppet:///modules/shorewall/boilerplate/${name}.header",
mode => 0600, owner => root, group => 0,
notify => Exec["concat_${dir}"];
"${dir}/999-footer":
source => "puppet:///modules/shorewall/boilerplate/${name}.footer",
mode => 0600, owner => root, group => 0,
notify => Exec["concat_${dir}"];
}
}
|