-<%- if has_variable?("syslogversion") and syslogversion.to_s == "3" -%>
+<%- if has_variable?("syslogversion") and syslogversion.to_s == "3.1" -%>
@version: 3.0
<%- end -%>
+<%- if has_variable?("syslogversion") and syslogversion.to_s == "3.3" -%>
+@version: 3.3
+<%- end -%>
##
## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
#sync(0);
# the number of lines fitting in the output queue
+<%- if has_variable?("syslogversion") and syslogversion.to_s == "3.1" -%>
log_fifo_size(2048);
+<%- end -%>
+<%- if has_variable?("syslogversion") and syslogversion.to_s == "3.3" -%>
+ log_fifo_size(10000);
+<%- end -%>
# enable or disable directory creation for destination files
create_dirs(yes);
# is not a real hostname.
bad_hostname("^gconfd$");
-<%- if (hostname == "heininen") || (hostname == "lotti") -%>
- # we trust our mutual authenticated syslog clients
- keep_hostname(yes);
-<%- end -%>
-
+ keep_hostname(no);
};
# function to send logs to)
unix-stream("/dev/log");
# messages from the kernel
-<%- if has_variable?("syslogversion") and syslogversion.to_s == "2" -%>
- file("/proc/kmsg" log_prefix("kernel: "));
-<%- else -%>
file("/proc/kmsg" program_override("kernel: "));
-<%- end -%>
<%- else -%>
# standard Linux log source (this is the default place for the syslog()
# function to send logs to)
unix-dgram("/var/run/log");
# messages from the kernel
-<%- if has_variable?("syslogversion") and syslogversion.to_s == "2" -%>
- file("/dev/klog" log_prefix("kernel: "));
-<%- else -%>
file("/dev/klog" program_override("kernel: "));
<%- end -%>
-<%- end -%>
<%- if hostname == "paganini" -%>
# use the following line if you want to receive remote UDP logging messages
# (this is equivalent to the "-r" syslogd flag)
destination df_kern { file("/var/log/kern.log"); };
destination df_lpr { file("/var/log/lpr.log"); };
destination df_mail { file("/var/log/mail.log" group(maillog)); };
-destination df_mail_info { file("/var/log/mail.info" group(maillog)); };
+# destination df_mail_info { file("/var/log/mail.info" group(maillog)); };
destination df_mail_warn { file("/var/log/mail.warn" group(maillog)); };
destination df_mail_err { file("/var/log/mail.err" group(maillog)); };
destination df_user { file("/var/log/user.log" perm(0644)); };
};
# mail.info -/var/log/mail.info
-log {
- source(s_local);
- filter(f_mail);
- filter(f_at_least_info);
- destination(df_mail_info);
-};
+#log {
+# source(s_local);
+# filter(f_mail);
+# filter(f_at_least_info);
+# destination(df_mail_info);
+#};
# mail.warn -/var/log/mail.warn
log {
<%- end -%>
-<%- if has_variable?("syslogversion") and syslogversion.to_s == "3" -%>
<%- if hostname != "heininen" -%>
destination loghost-heininen {
tcp("heininen.debian.org" port (5140)
destination(loghost-lotti);
<%- end -%>
};
-<%- end -%>