Puppet Class: rsyslog
- Defined in:
- manifests/init.pp
Summary
Set up Rsyslog 7/8Overview
The configuration is particularly slanted toward the issues present in the versions 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.
114 115 116 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 |
# File 'manifests/init.pp', line 114
class rsyslog (
String $service_name, # In module data
String $package_name, # In module data
Boolean $read_journald, # In module data
String $tls_package_name = "${package_name}-gnutls",
Simplib::Netlist $trusted_nets = simplib::lookup('simp_options::trusted_nets', {'default_value' => ['127.0.0.1/32'] }),
Boolean $enable_tls_logging = false,
Simplib::Netlist $log_servers = simplib::lookup('simp_options::syslog::log_servers', { 'default_value' => [] }),
Simplib::Netlist $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,
Simplib::Port $tcp_listen_port = 514,
Boolean $tls_tcp_server = false,
Simplib::Port $tls_tcp_listen_port = 6514,
Boolean $udp_server = false,
String $udp_listen_address = '127.0.0.1',
Simplib::Port $udp_listen_port = 514,
Boolean $logrotate = simplib::lookup('simp_options::logrotate', {'default_value' => false}),
Variant[Boolean,Enum['simp']] $pki = simplib::lookup('simp_options::pki', {'default_value' => false}),
String $app_pki_external_source = simplib::lookup('simp_options::pki::source', {'default_value' => '/etc/pki/simp/x509'}),
Stdlib::Absolutepath $app_pki_dir = '/etc/pki/simp_apps/rsyslog/x509'
) {
contain 'rsyslog::install'
contain 'rsyslog::config'
contain 'rsyslog::service'
# lint:ignore:arrow_on_right_operand_line
Class['rsyslog::install'] ->
Class['rsyslog::config'] ~>
Class['rsyslog::service']
# lint:endignore
if $logrotate {
contain 'rsyslog::config::logrotate'
Class['rsyslog::service'] -> Class['rsyslog::config::logrotate']
}
}
|