Puppet Class: tcpwrappers::allows

Defined in:
manifests/allows.pp

Summary

Class which when included uses either the rules parameter or merged data from lookup to create tcpwrappers concat fragments.

Overview

Class tcpwrappers::allows

Class which when included uses either the rules parameter or merged data from lookup to create tcpwrappers concat fragments.

Examples:

hiera file providing data for the merge lookup

tcpwrappers::allows::rules:
  sshd_all
    client_list: ALL
    daemon_list: sshd
    order: 22_sshd_all
    comment: 'Allow all clients access to sshd'
  vsftpd_all:
    client_list: ALL
    daemon_list: vsftpd
    order: 21_vsftpd_all
    comment: 'Allow all clients access to vsftpd'

Parameters:

  • rules (Hash) (defaults to: {})

    Hash of rules for which each will result in creation of a resource using the define type tcpwrappers::allow.



23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/allows.pp', line 23

class tcpwrappers::allows (
  Hash $rules = {},
) {
  include tcpwrappers

  $rules.each |String $key, Hash $attrs| {
    tcpwrappers::allow { $key:
      * =>  $attrs,
    }
  }
}