aboutsummaryrefslogtreecommitdiff
path: root/manifests/entry.pp
blob: 4e639bcfa434f79e6972c4a985beb8e35748ca90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define shorewall::entry(
    $ensure = present,
    $line
){
   $target = "/var/lib/puppet/modules/shorewall/${name}"
   $dir = dirname($target)
   file { $target:
        ensure => $ensure,
        content => "${line}\n",
        mode => 0600, owner => root, group => 0,
        notify => Exec["concat_${dir}"],
    }
}