From: Frank Brehm Date: Thu, 29 Mar 2018 12:58:56 +0000 (+0200) Subject: Implementing config_rsyslog_to_remote() in bin/postinst X-Git-Tag: 0.1.1~66 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=3f6ce0591e1880c3bab81d26ec5a968f8b951e30;p=pixelpark%2Fcreate-vmware-tpl.git Implementing config_rsyslog_to_remote() in bin/postinst --- diff --git a/bin/postinst b/bin/postinst index 8e074db..04fd019 100644 --- a/bin/postinst +++ b/bin/postinst @@ -680,6 +680,21 @@ install_clamav() { } +#----------------------------------------------------------- +config_rsyslog_to_remote() { + + echo + log "Adding loghost to rsyslog configuration ..." + + mkdir -pv /etc/rsyslog.d + + cat <<-EOF > "/etc/rsyslog.d/loghost.conf" + \$ModLoad imklog + *.* @loghost.pixelpark.com:514 + EOF + +} + #----------------------------------------------------------- main() { @@ -707,6 +722,7 @@ main() { dist_upgrade install_clamav install_puppet + config_rsyslog_to_remote remove_ipv6_localhost tweak_grub