summaryrefslogtreecommitdiff
path: root/puppet/modules/shorewall/manifests/managed_file.pp
blob: d564daa7ef27baa56cf732820d433d9c6d935734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
define shorewall::managed_file () {
  concat{ "/etc/shorewall/puppet/${name}":
    notify => Service['shorewall'],
    require => File['/etc/shorewall/puppet'],
    owner => root, group => 0, 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';
  }
}