aboutsummaryrefslogtreecommitdiff
path: root/manifests/managed_file.pp
blob: 6ade6c9114ffb4fa1b8a305b21e8f5e7a6d9e02f (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://$server/shorewall/boilerplate/${name}.header",
            mode => 0600, owner => root, group => 0,
            notify => Exec["concat_${dir}"];
        "${dir}/999-footer":
            source => "puppet://$server/shorewall/boilerplate/${name}.footer",
            mode => 0600, owner => root, group => 0,
            notify => Exec["concat_${dir}"];
    }       
}