summaryrefslogtreecommitdiff
path: root/puppet/modules/shorewall/manifests/entry.pp
blob: c8fffc7210e05e1b062828f3af802a8888eef2b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
define shorewall::entry(
    $ensure = present,
    $line
){
  $parts = split($name,'-')
  concat::fragment{$name:
    ensure => $ensure,
    content => "${line}\n",
    order => $parts[1],
    target => "/etc/shorewall/puppet/${parts[0]}",
  }
}