Puppet Class: tcpwrappers
- Defined in:
- manifests/init.pp
Summary
Main class which will install tcpwrappers and begin management of hosts.allow and hosts.deny. The hosts.allow and hosts.deny files are set up by the class to emulate the files as they would be installed initially. Any tcpwrappers rules already existing in those files will be removed by the class when first applied to a system.Overview
Class: tcpwrappers
Main class which will install tcpwrappers and begin management of hosts.allow and hosts.deny. The hosts.allow and hosts.deny files are set up by the class to emulate the files as they would be installed initially. Any tcpwrappers rules already existing in those files will be removed by the class when first applied to a system.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'manifests/init.pp', line 24
class tcpwrappers (
Boolean $allow_header = true,
String $allow_header_source = "tcpwrappers/allow_header_${::operatingsystem}",
Boolean $allow_localhost_ipv4 = false,
Boolean $allow_localhost_ipv6 = false,
Boolean $allow_sshd_all = false,
String $config_dir = '/etc',
Boolean $default_deny = false,
Boolean $deny_header = true,
String $deny_header_source = "tcpwrappers/deny_header_${::operatingsystem}",
String $file_allow = 'hosts.allow',
String $file_deny = 'hosts.deny',
String $package_ensure = 'present',
String $package_name = 'tcp_wrappers',
) {
case $::operatingsystem {
'RedHat', 'CentOS': {
contain tcpwrappers::install
contain tcpwrappers::config
Class['tcpwrappers::install']
-> Class['tcpwrappers::config']
}
default: {
fail("${::operatingsystem} not supported")
}
}
}
|