]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Implementing config_rsyslog_to_remote() in bin/postinst
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 29 Mar 2018 12:58:56 +0000 (14:58 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 29 Mar 2018 12:58:56 +0000 (14:58 +0200)
bin/postinst

index 8e074dbf6b0c699a7eca561db5b0380ac5da0e6c..04fd0191f9d4b398cc9552a6833667c141835efc 100644 (file)
@@ -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