Defined Type: firewall::client

Defined in:
modules/firewall/manifests/client.pp

Summary

a shim define to support a common interface between ferm::client and nft::client

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • proto (Any)

    the protocol to use

  • port (Any)

    the port to configure

  • ensure (Any) (defaults to: present)

    the ensurable parameter

  • desc (Any) (defaults to: '')

    a description to add as a comment

  • prio (Any) (defaults to: '10')

    the priority

  • drange (Any) (defaults to: undef)

    the destination range to configure

  • notrack (Any) (defaults to: false)

    set the rule with no state tracking



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/firewall/manifests/client.pp', line 10

define firewall::client(
    $proto,
    $port,
    $ensure  = present,
    $desc    = '',
    $prio    = '10',
    $drange  = undef,
    $notrack = false,
) {
    include firewall
    case $firewall::provider {
        'none': {}
        'ferm': {
            ferm::client { $title:
                * => wmflib::resource::dump_params(),
            }
        }
        default: { fail('invalid provider') }
    }
}