Puppet Class: profile::zookeeper::firewall

Defined in:
modules/profile/manifests/zookeeper/firewall.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class profile::zookeeper::firewall::generic

Firewall rules for a zookeeper cluster

$firewall_access: An array of source sets which are allowed access to Zookeeper

Takes precedence over $srange)

Parameters:

  • firewall_access (Array[String]) (defaults to: lookup('profile::zookeeper::firewall::access'))


8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/zookeeper/firewall.pp', line 8

class profile::zookeeper::firewall (
    Array[String] $firewall_access = lookup('profile::zookeeper::firewall::access'),

){
    firewall::service { 'zookeeper':
        proto    => 'tcp',
        port     => [2181, 2182, 2183],
        src_sets => $firewall_access,
    }
}