Add a logging device for haproxy
[mirror/dsa-puppet.git] / modules / syslog_ng / templates / syslog-ng.conf.erb
index 89c77ed..031e606 100644 (file)
@@ -119,6 +119,9 @@ source s_local {
 <%- else -%>
        system();
 <%- end -%>
+<%- if has_variable?("haproxy") && @haproxy -%>
+       unix-stream("/var/lib/haproxy/dev/log");
+<%- end -%>
 };
 
 <%- if (@hostname == "lotti") || (@hostname == "lully") || (@hostname == "loghost-grnet-01") -%>
@@ -569,7 +572,7 @@ log { source(s_local);
 <%- end -%>
 
 <%- if (@hostname == "lully") -%>
-destination fastly { file("/var/log/fastly.log" };
+destination fastly { file("/var/log/fastly.log"); };
 
 log { source(s_network_fastly);
       destination(fastly); };