Defined Type: tcpwrappers::allow

Defined in:
manifests/allow.pp

Overview

Parameters:

  • pattern (String)

    The allow pattern based on the content of the man page

  • order (Integer) (defaults to: 1000)

    The order in which you want this rule to appear

    • IF you don't specify an order, the rules will be listed in alphabetical order

  • svc (Optional[String]) (defaults to: undef)

    The name of the service

    • This is useful if you wish to use the same service name more than once



25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/allow.pp', line 25

define tcpwrappers::allow (
  String           $pattern,
  Integer          $order    = 1000,
  Optional[String] $svc      = undef
) {
  concat::fragment { "tcpwrappers_${name}":
    order   => $order,
    target  => '/etc/hosts.allow',
    content => template("${module_name}/tcpwrappers.allow.erb")
  }
}