Puppet Class: rsyslog
- Inherits:
- ::rsyslog::params
- Defined in:
- manifests/init.pp
Overview
Set up rsyslog 7
The configuration is particularly slanted toward the issues present in the version of rsyslog included with Enterprise Linux systems. It should still work on other systems but they may have different/other bugs that have not been addressed.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'manifests/init.pp', line 117
class rsyslog (
String $service_name = $::rsyslog::params::service_name,
String $package_name = $::rsyslog::params::package_name,
String $tls_package_name = $::rsyslog::params::tls_package_name,
Array[String] $trusted_nets = simplib::lookup('simp_options::trusted_nets', {'default_value' => ['127.0.0.1/32'] }),
Boolean $enable_tls_logging = false,
Array[String] $log_servers = simplib::lookup('simp_options::syslog::log_servers', { 'default_value' => [] }),
Array[String] $failover_log_servers = simplib::lookup('simp_options::syslog::failover_log_servers', { 'default_value' => [] }),
Stdlib::Absolutepath $queue_spool_directory = '/var/spool/rsyslog',
Stdlib::Absolutepath $rule_dir = '/etc/rsyslog.simp.d',
Boolean $tcp_server = false,
Stdlib::Compat::Integer $tcp_listen_port = '514',
Boolean $tls_tcp_server = false,
Stdlib::Compat::Integer $tls_tcp_listen_port = '6514',
Boolean $udp_server = false,
String $udp_listen_address = '127.0.0.1',
Stdlib::Compat::Integer $udp_listen_port = '514',
Boolean $read_journald = $::rsyslog::params::read_journald,
Boolean $enable_logrotate = true,
Variant[Boolean,Enum['simp']] $pki = simplib::lookup('simp_options::pki', {'default_value' => false}),
Stdlib::Absolutepath $pki_base_dir = '/etc/rsyslog.d'
) inherits ::rsyslog::params {
contain '::rsyslog::install'
contain '::rsyslog::config'
contain '::rsyslog::service'
Class['rsyslog::install'] ->
Class['rsyslog::config'] ~>
Class['rsyslog::service']
if $enable_logrotate {
contain '::rsyslog::config::logrotate'
Class['rsyslog::service'] -> Class['rsyslog::config::logrotate']
}
if $pki {
contain '::rsyslog::config::pki'
Class['rsyslog::config::pki'] -> Class['rsyslog::config']
Class['rsyslog::config::pki'] ~> Class['rsyslog::service']
}
}
|