Puppet Class: nftables::rules::out::pxp_agent

Defined in:
manifests/rules/out/pxp_agent.pp

Summary

manage outgoing pxp-agent

Overview

Parameters:

  • broker (Variant[Stdlib::IP::Address,Array[Stdlib::IP::Address,1]])

    PXP broker IP(s)

  • broker_port (Stdlib::Port) (defaults to: 8142)

    PXP broker port

See Also:

  • take a look at nftables::rules::out::puppet, because the PXP agent also connects to a Puppetserver


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/rules/out/pxp_agent.pp', line 8

class nftables::rules::out::pxp_agent (
  Variant[Stdlib::IP::Address,Array[Stdlib::IP::Address,1]] $broker,
  Stdlib::Port $broker_port = 8142,
) {
  Array($broker, true).each |$index,$ps| {
    nftables::rule {
      "default_out-pxpagent-${index}":
    }
    if $ps =~ Stdlib::IP::Address::V6 {
      Nftables::Rule["default_out-pxpagent-${index}"] {
        content => "ip6 daddr ${ps} tcp dport ${broker_port} accept",
      }
    } else {
      Nftables::Rule["default_out-pxpagent-${index}"] {
        content => "ip daddr ${ps} tcp dport ${broker_port} accept",
      }
    }
  }
}