do not deploy rsyslog-audit.conf in cloud environment

addressing: https://pagure.io/fedora-infrastructure/issue/7438
This commit is contained in:
Miroslav Suchý 2018-12-13 11:21:02 +01:00
parent 7e923d48e8
commit 03aa9734f5
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1 @@
# we do not offer log servers in the cloud

View file

@ -276,6 +276,19 @@
- config
- base
- name: rsyslog-audit.conf
copy: src={{ item }} dest=/etc/rsyslog.d/rsyslog-audit.conf owner=root group=root mode=0644
with_first_found:
- rsyslog/rsyslog-audit.conf.{{ datacenter }}
- rsyslog/rsyslog-audit.conf.default
notify:
- restart rsyslog
tags:
- rsyslogd
- config
- base
- name: remove
- name: log everything to log01 except on mirrorlist, do not log local4 there.
copy: src=rsyslog/rsyslog-log01 dest=/etc/rsyslog.d/rsyslog-log01.conf mode=0644
when: not inventory_hostname.startswith(('mirrorlist','copr'))