Skip to content
Snippets Groups Projects
Commit c30b3c16 authored by Benjamin Graillot's avatar Benjamin Graillot
Browse files

[rsylog-client] Added role to send logs to thot using rsyslog

parent eb3cf338
No related branches found
No related tags found
Loading
......@@ -83,6 +83,14 @@
roles:
- nullmailer
# Send logs to thot
- hosts: server
vars:
rsyslog:
server: thot.adm.crans.org
roles:
- rsyslog-client
- hosts: otis.adm.crans.org
roles:
- ansible
......
---
- name: Deploy quagga debian configuration
template:
src: rsyslog.d/50-send_relp.conf.j2
dest: /etc/rsyslog.d/50-send_relp.conf
mode: 0640
owner: quagga
group: quagga
- name: Create spool directory
file:
path: /var/log/spool
state: directory
mode: '0750'
owner: root
group: root
# {{ ansible_managed }}
$ModLoad omrelp
$WorkDirectory /var/log/spool # default location for work (spool) files
$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName syslogfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
*.* :omrelp:{{ rsyslog.server }}:20514;RSYSLOG_ForwardFormat
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment