This role manages configuration of rsyslog client and makes sure that it's installed.
It was tested on the following versions:
- 1.9
Currently the module was only tested on Debian.
rsyslog_conf_file: string, the path torsyslog.confrsyslog_d_dir: string, where are the config files`rsyslog_user: the owner group ofrsyslog.confrsyslog_group: the owner user ofrsyslog.confrsyslog_remote_loggers: dict of remote centralized logging servers
Optional:
ca_certificate: string, the root ca certificate to verify server log certificate.
Almost all of them has default values in defaults/main.yml.
Rsyslog support traffic encryption with TLS (SSL). More info
To enable it, ca_certificate must be defined, and ssl must be set to true for hosts to which you want to encrypt traffic.
Example:
vars:
ca_certificate: "root-ca.pem"
rsyslog_remote_loggers:
syslog-ng1:
remote_host: "securelogserver.example.com"
remote_port: "10514"
ssl: true
filters:
- "auth.*"
- "local6.*"
syslog-ng2:
remote_host: "logserver.example.com"
remote_port: "514"
ssl: false
filters:
- "auth.*"If you find a bug, please open an issue on GitHub.
If you want to hack some features into this role, please open an issue and we will talk about that.
ansible-rsyslog role was written by: