Added TCP/TLS support for rsyslog client
This commit is contained in:
parent
ac6c7387d4
commit
da6f4df080
4 changed files with 34 additions and 6 deletions
|
@ -10,11 +10,19 @@
|
|||
# $syslog_server:
|
||||
# Address of remote syslog server where to send logs.
|
||||
#
|
||||
# $syslog_tlsserver:
|
||||
# Address of remote syslog server where to send logs over TCP/TLS.
|
||||
#
|
||||
class syslog::client {
|
||||
|
||||
if !$syslog_type {
|
||||
case $operatingsystem {
|
||||
"centos": { $syslog_type = "syslogd" }
|
||||
"centos": {
|
||||
$syslog_type = $operatingsystemrelease ? {
|
||||
/^6/ => "rsyslog",
|
||||
default => "syslogd",
|
||||
}
|
||||
}
|
||||
"fedora": { $syslog_type = "rsyslog" }
|
||||
"openbsd": { $syslog_type = "syslogd" }
|
||||
"ubuntu": { $syslog_type = "rsyslog" }
|
||||
|
@ -83,6 +91,12 @@ class syslog::client::rsyslog {
|
|||
ensure => installed,
|
||||
}
|
||||
|
||||
if $operatingsystem != "OpenBSD" {
|
||||
package { "rsyslog-gnutls":
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
|
||||
file { "/etc/rsyslog.conf":
|
||||
ensure => present,
|
||||
content => template("syslog/rsyslog.conf.erb",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue