aboutsummaryrefslogtreecommitdiff
path: root/manifests/managed_file.pp
blob: 7061721a747065d27ed0662447b352d30f70de7c (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 => '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';
  }
}