summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-24 15:01:45 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-24 15:01:45 -0300
commit8a4a4c7b308bd748d4de158e7217e6617560bfc3 (patch)
treee76a3076460cc816712b9561557e1a4b8eb33c98
parente13a421b1f75e396ca90590919facbd2baddac3b (diff)
downloadpuppet-syslog-ng-8a4a4c7b308bd748d4de158e7217e6617560bfc3.tar.gz
puppet-syslog-ng-8a4a4c7b308bd748d4de158e7217e6617560bfc3.tar.bz2
Put back log_kernel_msgs variable and update version to 3.5 for wheezy
-rw-r--r--templates/syslog-ng.conf_jessie.erb2
-rw-r--r--templates/syslog-ng.conf_wheezy.erb4
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/syslog-ng.conf_jessie.erb b/templates/syslog-ng.conf_jessie.erb
index 953295d..aea3e1c 100644
--- a/templates/syslog-ng.conf_jessie.erb
+++ b/templates/syslog-ng.conf_jessie.erb
@@ -25,7 +25,9 @@ options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
# Logs may come from unix stream, but not from another machine.
#
source s_src {
+<% if (@log_kernel_msgs == true) -%>
system();
+<% end -%>
internal();
};
diff --git a/templates/syslog-ng.conf_wheezy.erb b/templates/syslog-ng.conf_wheezy.erb
index 9ab9101..1f73cbf 100644
--- a/templates/syslog-ng.conf_wheezy.erb
+++ b/templates/syslog-ng.conf_wheezy.erb
@@ -1,4 +1,4 @@
-@version: 3.3
+@version: 3.5
@include "scl.conf"
@include "`scl-root`/system/tty10.conf"
@@ -25,7 +25,9 @@ options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
# Logs may come from unix stream, but not from another machine.
#
source s_src {
+<% if (@log_kernel_msgs == true) -%>
system();
+<% end -%>
internal();
};