]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - templates/syslog-ng.conf.erb
lotti for president^Wloghost
[dsa-puppet.git] / templates / syslog-ng.conf.erb
index f60820d03758666d7e30540b1a8365a592e3eba3..f8b1b3cb400d08ca08c08cd8d67a2008c33f1829 100644 (file)
@@ -82,7 +82,7 @@ options {
        # is not a real hostname.
        bad_hostname("^gconfd$");
 
-<%- if hostname == "heininen" -%>
+<%- if (hostname == "heininen") || (hostname == "lotti") -%>
        # we trust our mutual authenticated syslog clients
        keep_hostname(yes);
 <%- end -%>
@@ -125,7 +125,7 @@ source s_local {
 <%- end -%>
 };
 
-<%-  if hostname == "heininen" -%>
+<%- if (hostname == "heininen") || (hostname == "lotti") -%>
 source s_network {
        tcp6(port(5140) max-connections(200)
                tls( key_file("/etc/exim4/ssl/thishost.key")
@@ -403,7 +403,7 @@ log {
 <%- end -%>
 
 
-<%- if hostname != "heininen" -%>
+<%- if (hostname != "heininen") || (hostname != "lotti") -%>
  <%- if has_variable?("syslogversion") and syslogversion.to_s == "3" -%>
 destination loghost-heininen {
        tcp("heininen.debian.org" port (5140)
@@ -413,18 +413,27 @@ destination loghost-heininen {
                )
        );
 };
+destination loghost-lotti {
+       tcp("lotti.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/")
+               )
+       );
+};
 
 
 log {
        source(s_local);
        destination(loghost-heininen);
+       destination(loghost-lotti);
 };
  <%- end -%>
 <%- end -%>
 
 
 
-<%- if hostname == "heininen" -%>
+<%- if (hostname == "heininen") || (hostname == "lotti") -%>
 ###############################################################################
 ########## ON LOG HOST ########################################################
 ###############################################################################