]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Old syslog-ng is old, take 2. Squeeze-syslog-ng lacks the system plugin
authorTollef Fog Heen <tfheen@err.no>
Thu, 27 Nov 2014 16:40:44 +0000 (17:40 +0100)
committerTollef Fog Heen <tfheen@err.no>
Thu, 27 Nov 2014 16:40:44 +0000 (17:40 +0100)
modules/syslog-ng/templates/syslog-ng.conf.erb

index 4353332cc52369f65ac11894c59a1c1f94c59ee4..98c2fb2fe2c8163027254e1a16244733c865ed72 100644 (file)
@@ -107,7 +107,15 @@ options {
 source s_local {
         # message generated by Syslog-NG
         internal();
+<%- if has_variable?("syslogversion") and syslogversion.to_s == "3.1" -%>
+        # standard Linux log source (this is the default place for the syslog()
+        # function to send logs to)
+        unix-stream("/dev/log");
+        # messages from the kernel
+        file("/proc/kmsg" program_override("kernel: "));
+<%- else -%>
        system();
+<%- end -%>
 };
 
 <%- if (hostname == "lotti") || (hostname == "lully") || (hostname == "loghost-grnet-01") -%>