Defined Type: ferm::rule

Defined in:
modules/ferm/manifests/rule.pp

Overview

defines a custom ferm rule

Parameters:

  • rule (Any)
  • ensure (Any) (defaults to: present)
  • domain (Any) (defaults to: '(ip ip6)')
  • table (Any) (defaults to: 'filter')
  • chain (Any) (defaults to: 'INPUT')
  • desc (Any) (defaults to: '')
  • prio (Any) (defaults to: '10')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/ferm/manifests/rule.pp', line 2

define ferm::rule(
    $rule,
    $ensure = present,
    $domain = '(ip ip6)',
    $table  = 'filter',
    $chain  = 'INPUT',
    $desc   = '',
    $prio   = '10',
) {
    @file { "/etc/ferm/conf.d/${prio}_${name}":
        ensure  => $ensure,
        owner   => 'root',
        group   => 'root',
        mode    => '0400',
        content => template('ferm/rule.erb'),
        require => File['/etc/ferm/conf.d'],
        notify  => Service['ferm'],
        tag     => 'ferm',
    }
}