Work around local4 syslog issue with mirrorlists for now.

This commit is contained in:
Kevin Fenzi 2014-02-28 23:21:00 +00:00
parent 7d904a3693
commit cfdba2b43b
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#
# Send everything on to central log02 logger machines
#
cron.*;kern.*;authpriv.*;local7.*;*.info;local6.none @@log02:514

View file

@ -125,6 +125,20 @@
- rsyslogd
- config
- name: log everything to log02 except on mirrorlist, do not log local4 there.
copy: src=rsyslog/rsyslog-log02 dest=/etc/rsyslog.d/rsyslog-log02.conf mode=644
when: not inventory_hostname.startswith('mirrorlist')
tags:
- rsyslogd
- config
- name: log everything to log02 except on mirrorlist, do not log local4 there.
copy: src=rsyslog/rsyslog-log02-nolocal4 dest=/etc/rsyslog.d/rsyslog-log02.conf mode=644
when: inventory_hostname.startswith('mirrorlist')
tags:
- rsyslogd
- config
- name: /etc/postfix/main.cf
copy: src={{ item }} dest=/etc/postfix/main.cf
first_available_file: