Ship sanitized rsyslog.conf
authorChristian Hofstaedtler <ch@grml.org>
Thu, 17 Nov 2011 09:47:36 +0000 (10:47 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Thu, 17 Nov 2011 09:47:36 +0000 (10:47 +0100)
etc/grml/fai/config/files/etc/rsyslog.conf/GRMLBASE [new file with mode: 0644]
etc/grml/fai/config/scripts/GRMLBASE/43-rsyslog [new file with mode: 0755]

diff --git a/etc/grml/fai/config/files/etc/rsyslog.conf/GRMLBASE b/etc/grml/fai/config/files/etc/rsyslog.conf/GRMLBASE
new file mode 100644 (file)
index 0000000..c4637a1
--- /dev/null
@@ -0,0 +1,57 @@
+#  /etc/rsyslog.conf   Configuration file for rsyslog.
+#
+#                      For more information see
+#                      /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
+
+
+#################
+#### MODULES ####
+#################
+
+$ModLoad imuxsock # provides support for local system logging
+$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
+#$ModLoad immark  # provides --MARK-- message capability
+
+# provides UDP syslog reception
+#$ModLoad imudp
+#$UDPServerRun 514
+
+# provides TCP syslog reception
+#$ModLoad imtcp
+#$InputTCPServerRun 514
+
+
+###########################
+#### GLOBAL DIRECTIVES ####
+###########################
+
+#
+# Set the default permissions for all log files.
+#
+$FileOwner root
+$FileGroup adm
+$FileCreateMode 0640
+$DirCreateMode 0755
+$Umask 0022
+
+#
+# Include all config files in /etc/rsyslog.d/
+#
+$IncludeConfig /etc/rsyslog.d/*.conf
+
+
+###############
+#### RULES ####
+###############
+
+#
+# First some standard log files.  Log by facility.
+#
+auth,authpriv.*                        /var/log/auth.log
+*.*;auth,authpriv.none         -/var/log/system.log
+
+#
+# Emergencies are sent to everybody logged in.
+#
+*.emerg                                :omusrmsg:*
+
diff --git a/etc/grml/fai/config/scripts/GRMLBASE/43-rsyslog b/etc/grml/fai/config/scripts/GRMLBASE/43-rsyslog
new file mode 100755 (executable)
index 0000000..9ee1043
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+# Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/43-rsyslog
+# Purpose:       install rsyslog.conf
+# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
+# Bug-Reports:   see http://grml.org/bugs/
+# License:       This file is licensed under the GPL v2 or any later version.
+################################################################################
+
+set -u
+set -e
+
+fcopy -v /etc/rsyslog.conf
+
+## END OF FILE #################################################################
+# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2