Puppet Class: nftables::rules::activemq

Defined in:
manifests/rules/activemq.pp

Summary

Provides input rules for Apache ActiveMQ

Overview

Parameters:

  • tcp (Boolean) (defaults to: true)

    Create the rule for TCP traffic.

  • udp (Boolean) (defaults to: true)

    Create the rule for UDP traffic.

  • port (Stdlib::Port) (defaults to: 61616)

    The port number for the ActiveMQ daemon.



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

class nftables::rules::activemq (
  Boolean $tcp = true,
  Boolean $udp = true,
  Stdlib::Port $port = 61616,
) {
  if $tcp {
    nftables::rule {
      'default_in-activemq_tcp':
        content => "tcp dport ${port} accept",
    }
  }

  if $udp {
    nftables::rule {
      'default_in-activemq_udp':
        content => "udp dport ${port} accept",
    }
  }
}