blob: b3538145e02b344c6b89a85f65318aa07e5df840 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# manage a certain file
define shorewall::managed_file() {
concat{ "/etc/shorewall/puppet/${name}":
notify => Exec['shorewall_check'],
require => File['/etc/shorewall/puppet'],
owner => 'root',
group => 'root',
mode => '0600';
}
concat::fragment {
"${name}-header":
source => "puppet:///modules/shorewall/boilerplate/${name}.header",
target => "/etc/shorewall/puppet/${name}",
order => '000';
"${name}-footer":
source => "puppet:///modules/shorewall/boilerplate/${name}.footer",
target => "/etc/shorewall/puppet/${name}",
order => '999';
}
}
|