Work around local4 syslog issue with mirrorlists for now.
This commit is contained in:
parent
7d904a3693
commit
cfdba2b43b
3 changed files with 18 additions and 0 deletions
4
roles/base/files/rsyslog/rsyslog-log02-nolocal4
Normal file
4
roles/base/files/rsyslog/rsyslog-log02-nolocal4
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# Send everything on to central log02 logger machines
|
||||||
|
#
|
||||||
|
cron.*;kern.*;authpriv.*;local7.*;*.info;local6.none @@log02:514
|
|
@ -125,6 +125,20 @@
|
||||||
- rsyslogd
|
- rsyslogd
|
||||||
- config
|
- 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
|
- name: /etc/postfix/main.cf
|
||||||
copy: src={{ item }} dest=/etc/postfix/main.cf
|
copy: src={{ item }} dest=/etc/postfix/main.cf
|
||||||
first_available_file:
|
first_available_file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue