Puppet Class: profile::base::firewall::extra

Defined in:
modules/profile/manifests/base/firewall/extra.pp

Summary

a profile to allow one to create firewall rules via hiera. usefull for cloud hosts

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • rules

    a hash of rules passed to ferm::rule

  • services (Hash) (defaults to: lookup('profile::base::firewall::extra::services'))


4
5
6
7
8
9
10
11
12
# File 'modules/profile/manifests/base/firewall/extra.pp', line 4

class profile::base::firewall::extra (
  Hash $services = lookup('profile::base::firewall::extra::services')
) {
  $services.each |$service, $config| {
    ferm::service {$service:
      * => $config
    }
  }
}