summaryrefslogtreecommitdiff
path: root/manifests/rule_section.pp
blob: 0a8b4bbc981eef54bea3500e773440c534a7b9da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# a rule section marker
define shorewall::rule_section(
  $order,
){
  if versioncmp($shorewall_major_version,'4') > 0 {
    $rule_section_prefix = '?'
  } else {
    $rule_section_prefix = ''
  }

  shorewall::entry{"rules-${order}-${name}":
    line => "${rule_section_prefix}SECTION ${name}",
  }
}