]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
variable fixup
authorStephen Gran <steve@lobefin.net>
Tue, 22 Sep 2009 22:13:43 +0000 (23:13 +0100)
committerStephen Gran <steve@lobefin.net>
Tue, 22 Sep 2009 22:13:43 +0000 (23:13 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
templates/syslog-ng.conf.erb

index 637250b7b822e6be475b01ac049cf999d067f86e..bb66d300b116a60488b85626785626dfd61d7836 100644 (file)
@@ -83,7 +83,7 @@ options {
 source s_all {
         # message generated by Syslog-NG
         internal();
-<% if $kernel == 'Linux' %>
+<% if kernel == 'Linux' %>
         # standard Linux log source (this is the default place for the syslog()
         # function to send logs to)
         unix-stream("/dev/log");
@@ -138,10 +138,12 @@ destination df_news_dot_crit { file("/var/log/news/news.crit" owner("news")); };
 destination df_debug { file("/var/log/debug"); };
 destination df_messages { file("/var/log/messages"); };
 
+<% if kernel == 'Linux' %>
 # pipes
 # a console to view log messages under X
 destination dp_xconsole { pipe("/dev/xconsole"); };
 
+<% end %>
 # consoles
 # this will send messages to everyone logged in
 destination du_all { usertty("*"); };