xinetd
: Set up xinetd
xinetd::service
: Configure the xinetd service
xinetd::validate_log_type
: Perform validation on the log_type variable, as described in the man page of xinetd.conf(5)
Xinetd::AccessTimes
: Valid access_times from xinetd.conf(5)Xinetd::DenyTime
: Valid deny_time values from xinetd.conf(5)Xinetd::FailureLogOption
: Valid failure_log_option values from xinetd.conf(5)Xinetd::Flags
: Valid flags values from xinetd.conf(5)Xinetd::RpcVersion
: Valid rpc_version values from xinetd.conf(5)Xinetd::SocketType
: Valid socket_type values from xinetd.conf(5)Xinetd::SuccessLogOption
: Valid success_log_option values from xinetd.conf(5)Xinetd::Type
: Valid type values from xinetd.conf(5)Xinetd::UnlimitedInt
: Entries that may be either 'UNLIMITED' or an Integer TODO rlimit_as regex should accept K or M qualifiers
This is incomplete but should suffice for most purposes.
NOTE: Items prefixed with 'x_' were reserved words in ERB.
- xinetd/xinetd.conf.erb
Explanations of the options can be found in the xinetd.conf(5) man page.
The following parameters are available in the xinetd
class:
log_type
x_bind
per_source
x_umask
log_on_success
log_on_failure
trusted_nets
no_access
passenv
instances
disabled
disable
enabled
banner
banner_success
banner_fail
groups
cps
max_load
purge
package_ensure
Data type: String[1]
Default value: 'SYSLOG authpriv'
Data type: Optional[String[1]]
Default value: undef
Data type: Optional[Xinetd::UnlimitedInt]
Default value: undef
Data type: Optional[Simplib::Umask]
Default value: undef
Data type: Array[Xinetd::SuccessLogOption]
Default value: ['HOST','PID','DURATION']
Data type: Array[Xinetd::FailureLogOption]
Default value: ['HOST']
Data type: Simplib::Netlist
Default value: lookup('simp_options::trusted_nets', { 'default_value' => ['127.0.0.1', '::1'] })
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[String[1]]
Default value: undef
Data type: Xinetd::UnlimitedInt
Default value: '60'
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Optional[Enum['yes','no']]
Default value: undef
Data type: Optional[Array[String[1]]]
Default value: undef
Data type: Stdlib::Absolutepath
Default value: '/etc/issue.net'
Data type: Optional[Stdlib::Absolutepath]
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Default value: undef
Data type: Enum['yes','no']
Default value: 'no'
Data type: Tuple[Integer[1],Integer[1]]
Default value: [25,30]
Data type: Optional[Float[0]]
Default value: undef
Data type: Boolean
Purge all unmanaged services
Default value: false
Data type: String[1]
The package
resource ensure to apply to all included package resources
Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })
For the identification of what these options should be, consult the xinetd.conf(5) man page.
Items prefixed with 'x_' were reserved words in ERB.
- xinetd/xinetd.service.erb
The following parameters are available in the xinetd::service
defined type:
server
port
protocol
x_wait
socket_type
disable
libwrap_name
libwrap
user
x_umask
log_type
log_on_success
log_on_failure
x_id
x_type
flags
group
instances
nice
server_args
trusted_nets
access_times
rpc_version
rpc_number
env
passenv
redirect_ip
redirect_port
x_bind
banner
banner_success
banner_fail
per_source
cps
max_load
groups
mdns
enabled
include
includedir
rlimit_as
rlimit_cpu
rlimit_data
rlimit_rss
rlimit_stack
deny_time
firewall
tcpwrappers
Data type: String
Data type: Simplib::Port
Data type: String
Data type: Enum['yes','no']
Data type: Xinetd::SocketType
Data type: Enum['yes','no']
Default value: 'no'
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: String
Default value: 'root'
Data type: Simplib::Umask
Default value: '027'
Data type: String
Default value: 'SYSLOG authpriv'
Data type: Array[Xinetd::SuccessLogOption]
Default value: ['HOST','PID','DURATION']
Data type: Array[Xinetd::FailureLogOption]
Default value: ['HOST']
Data type: Optional[String]
Default value: undef
Data type: Optional[Xinetd::Type]
Default value: undef
Data type: Optional[Array[Xinetd::Flags]]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Xinetd::UnlimitedInt]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Simplib::Netlist
Default value: simplib::lookup('simp_options::trusted_nets', { 'default_value' => ['127.0.0.1', '::1'] })
Data type: Optional[Xinetd::AccessTimes]
Default value: undef
Data type: Optional[Xinetd::RpcVersion]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Simplib::IP]
Default value: undef
Data type: Optional[Simplib::Port]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Default value: undef
Data type: Optional[Xinetd::UnlimitedInt]
Default value: undef
Data type: Optional[Tuple[Integer,Integer]]
Default value: undef
Data type: Optional[Float]
Default value: undef
Data type: Optional[Enum['yes','no']]
Default value: undef
Data type: Optional[Enum['yes','no']]
Default value: undef
Data type: Optional[Array[String]]
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Default value: undef
Data type: Optional[Xinetd::UnlimitedInt]
Default value: undef
Data type: Optional[Xinetd::UnlimitedInt]
Default value: undef
Data type: Optional[Xinetd::UnlimitedInt]
Default value: undef
Data type: Optional[Xinetd::UnlimitedInt]
Default value: undef
Data type: Optional[Xinetd::UnlimitedInt]
Default value: undef
Data type: Optional[Xinetd::DenyTime]
Default value: undef
Data type: Boolean
Enable the SIMP firewall module functionality
Default value: simplib::lookup('simp_options::firewall', { 'default_value' => false })
Data type: Boolean
Enable the SIMP tcpwrappers module functionality
Default value: simplib::lookup('simp_options::tcpwrappers', { 'default_value' => false })
Type: Ruby 4.x API
Perform validation on the log_type variable, as described in the man page of xinetd.conf(5)
Perform validation on the log_type variable, as described in the man page of xinetd.conf(5)
Returns: Any
true upon validation success
Raises:
upon
validation failure
Data type: String
Log specification for xinetd.conf log_type variable
Valid access_times from xinetd.conf(5)
Alias of Pattern[/^([01]?[0-9]|2[0-3]):[0-5][0-9]-([01]?[0-9]|2[0-3]):[0-5][0-9]$/]
Valid deny_time values from xinetd.conf(5)
Alias of Pattern[/^((\d+)|(FOREVER|NEVER))$/]
Valid failure_log_option values from xinetd.conf(5)
Alias of Enum['HOST', 'USERID', 'ATTEMPT']
Valid flags values from xinetd.conf(5)
Alias of Enum['INTERCEPT', 'NORETRY', 'IDONLY', 'NAMEINARGS', 'NODELAY', 'KEEPALIVE', 'NOLIBWRAP', 'SENSOR', 'IPv4', 'IPv6', 'LABELED', 'REUSE']
Valid rpc_version values from xinetd.conf(5)
Alias of Pattern[/^\d+(-\d)*$/]
Valid socket_type values from xinetd.conf(5)
Alias of Enum['stream', 'dgram', 'raw', 'seqpacket']
Valid success_log_option values from xinetd.conf(5)
Alias of Enum['PID', 'HOST', 'USERID', 'EXIT', 'DURATION', 'TRAFFIC']
Valid type values from xinetd.conf(5)
Alias of Enum['RPC', 'INTERNAL', 'TCPMUX', 'TCPMUXPLUS', 'UNLISTED']
Entries that may be either 'UNLIMITED' or an Integer
TODO rlimit_as regex should accept K or M qualifiers
Alias of Variant[Integer, Pattern[/(^\d+$|UNLIMITED)/]]