Jeltz
ba8b4e8c29
Some checks failed
continuous-integration/drone/push Build is failing
A call to sendLogsToRemote for logs received through RELP/UDP has been added (to send them to Logstash/Redis/…), so common.conf's prefix must be lower than collector.conf's. Note: future "third-party" config files will also call sendLogsToRemote and thus will also have to use a prefix higher than 10.
24 lines
542 B
YAML
24 lines
542 B
YAML
---
|
|
- name: Install rsyslog-relp if needed
|
|
become: true
|
|
apt:
|
|
name: rsyslog-relp
|
|
state: latest
|
|
when: "rsyslog_inputs | selectattr('proto', 'eq', 'relp') | list"
|
|
|
|
- name: Ensure log storage directory exists
|
|
become: true
|
|
file:
|
|
path: "{{ rsyslog_collector_base_dir }}"
|
|
state: directory
|
|
|
|
- name: Deploy rsyslog input configuration file
|
|
become: true
|
|
template:
|
|
src: 20-collector.conf.j2
|
|
dest: /etc/rsyslog.d/20-collector.conf
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=r
|
|
notify: Restart rsyslog
|
|
...
|