A simple ansible role to setup system to send syslog to remote system For more advanced usage like TLS, you are encouraged to look other roles like Debops Rsyslog
It was tested on the following versions:
- 1.9
- 2.0
- 2.2
- 2.4
- 2.5
Tested Ubuntu 14.04, 16.04, 18.04 and centos7
Just include this role in your list. For example
- host: all
roles:
- juju4.syslogclient
syslogclient_server: 10.1.1.1
This role has a travis basic test (for github), more advanced with kitchen and also a Vagrantfile (test/vagrant).
Once you ensured all necessary roles are present, You can test with:
$ cd /path/to/roles/juju4.syslogclient
$ kitchen verify
$ kitchen login
or
$ cd /path/to/roles/juju4.syslogclient/test/vagrant
$ vagrant up
$ vagrant ssh
- RedHat/RockyLinux 9:
rsyslog internal message (3,-2455): could not transfer the specified internal posix capabilities settings to the kernel, capng_apply=-5
BSD 2-clause