New senfter volume
[mirror/dsa-puppet.git] / modules / syslog-ng / templates / syslog-ng.conf.erb
index c2278e3..7f78680 100644 (file)
@@ -1,5 +1,7 @@
 <%- if has_variable?("syslogversion") and syslogversion.to_s == "3.1" -%>
 @version: 3.0
+<%- elsif has_variable?("syslogversion") and syslogversion.to_s == "3.5" -%>
+@version: 3.5
 <%- else -%>
 @version: 3.3
 <%- end -%>
@@ -117,7 +119,7 @@ source s_local {
 <%- end -%>
 };
 
-<%- if (hostname == "lotti") || (hostname == "lully") -%>
+<%- if (hostname == "lotti") || (hostname == "lully") || (hostname == "loghost-grnet-01") -%>
 source s_network {
        tcp6(port(5140) max-connections(200)
                tls( key_file("/etc/exim4/ssl/thishost.key")
@@ -413,6 +415,16 @@ destination loghost-lully {
                     ca_dir("/etc/ssl/debian/certs/")
                )
        );
+};
+ <%- end -%>
+  <%- if hostname != "loghost-grnet-01" -%>
+destination loghost-loghost-grnet-01 {
+       tcp("loghost-grnet-01.debian.org" port (5140)
+               tls( key_file("/etc/ssl/debian/keys/thishost.key")
+                    cert_file("/etc/ssl/debian/certs/thishost.crt")
+                    ca_dir("/etc/ssl/debian/certs/")
+               )
+       );
 };
  <%- end -%>
 
@@ -424,11 +436,14 @@ log {
  <%- if hostname != "lully" -%>
        destination(loghost-lully);
  <%- end -%>
+ <%- if hostname != "loghost-grnet-01" -%>
+       destination(loghost-loghost-grnet-01);
+ <%- end -%>
 };
 
 
 
-<%- if (hostname == "lotti") || (hostname == "lully") -%>
+<%- if (hostname == "lotti") || (hostname == "lully") || (hostname == "loghost-grnet-01") -%>
 ###############################################################################
 ########## ON LOG HOST ########################################################
 ###############################################################################