Skip to content

Commit

Permalink
Add allowed module omrelp
Browse files Browse the repository at this point in the history
  • Loading branch information
bbe-dw committed Oct 5, 2022
1 parent f7a4366 commit 29d229e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
that:
- item is defined
- item is string
- item in [ "imuxsock", "imjournal", "imklog", "immark", "imfile" ]
- item in [ "imuxsock", "imjournal", "imklog", "immark", "imfile", "omrelp" ]
quiet: yes
loop: "{{ rsyslog_mods }}"

Expand Down
3 changes: 3 additions & 0 deletions templates/advanced_rsyslog.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
{{ '' if rsyslog_receiver else '#' }}module(load="imtcp") # needs to be done just once
{{ '' if rsyslog_receiver else '#' }}input(type="imtcp" port="514")

# supports sending syslog messages over the reliable RELP protocol
{{ '' if 'omrelp' in rsyslog_mods else '#' }}module(load="omrelp")

###########################
#### GLOBAL DIRECTIVES ####
###########################
Expand Down
1 change: 1 addition & 0 deletions templates/legacy_rsyslog.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
{{ '#' if not 'imklog' in rsyslog_mods else '' }}$ModLoad imklog # provides kernel logging support
{{ '#' if not 'immark' in rsyslog_mods else '' }}$ModLoad immark # provides --MARK-- message capability
{{ '#' if not 'imfile' in rsyslog_mods else '' }}$ModLoad imfile # provides access to specific log file
{{ '#' if not 'omrelp' in rsyslog_mods else '' }}$ModLoad omrelp # supports sending syslog messages over the reliable RELP protocol

# provides UDP syslog reception
{{ '' if rsyslog_receiver else '#' }}$ModLoad imudp
Expand Down

0 comments on commit 29d229e

Please sign in to comment.