robertdebock / ansible-role-rsyslog

Install and configure rsyslog on your system.
https://robertdebock.nl/
Apache License 2.0
36 stars 40 forks source link

Add multiple configuration capability #23

Closed smutel closed 3 years ago

smutel commented 3 years ago

name: Pull request about: Capability to add syslog.d files in this role


Describe the change Able to add additional config files with example config below:

rsyslog_rsyslog_d_files:                                                                            
  app01:                                                                                  
    content: |                                                                                      
      input(type="imfile" file="/var/log/app01.log" tag="app01" severity="info" facility="local6" ruleset="sendToOther")
      ruleset(name="sendToOther") {                                                                
        action(type="omfwd" target="other" port="514" protocol="tcp")
      }

Testing Deployed

robertdebock commented 3 years ago

Can I ask you to write a commented example in defaults/main.yml? That example should guide people how to use the rsyslog_rsyslog_d_files variable.

smutel commented 3 years ago

Can I ask you to write a commented example in defaults/main.yml? That example should guide people how to use the rsyslog_rsyslog_d_files variable.

https://github.com/robertdebock/ansible-role-rsyslog/pull/24