X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=templates%2Fsyslog-ng.conf.erb;h=c903ced4feaf3e922415d00c4f541fb38e409598;hb=f79882c1f21927fcbbf8dea49db6a7ffaa8e53e8;hp=3d64384dc937102ad90d156e604884bd142527ef;hpb=60232010ad086ed9f337337c697de0c701003e43;p=mirror%2Fdsa-puppet.git diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb index 3d64384dc..c903ced4f 100644 --- a/templates/syslog-ng.conf.erb +++ b/templates/syslog-ng.conf.erb @@ -1,3 +1,8 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + # # Configuration file for syslog-ng under Debian # @@ -98,7 +103,9 @@ source s_all { <%end%> # use the following line if you want to receive remote UDP logging messages # (this is equivalent to the "-r" syslogd flag) - # udp(); +<% if hostname == "paganini" -%> + udp(); +<%end%> }; @@ -361,3 +368,14 @@ log { destination(dp_xconsole); }; <%end%> + +<% if hostname == "corelli" -%> +destination loghost-paganini { + udp("192.168.2.10",port(514)); +}; + +log { + source(s_all); + destination(loghost-paganini); +}; +<%end%>