enable remote syslog

This commit is contained in:
Ryan Cavicchioni 2019-12-18 22:08:03 -06:00
parent 0ff318ae00
commit 0eb5699a8d
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 28 additions and 0 deletions

View File

@ -17,6 +17,8 @@ rsyslog_load_modules:
- name: imklog - name: imklog
params: params:
permitnonkernelfacility: "on" permitnonkernelfacility: "on"
- name: imtcp
- name: imudp
rsyslog_work_directory: /var/spool/rsyslog rsyslog_work_directory: /var/spool/rsyslog
rsyslog_include_config: /etc/rsyslog.d/*.conf rsyslog_include_config: /etc/rsyslog.d/*.conf

View File

@ -13,6 +13,32 @@ module(
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for input in rsyslog_inputs | default([]) %}
{% if input.enabled | default(true) %}
input(
type="{{ input.name }}"
{% if input.params is defined and input.params is mapping %}
{% for k, v in input.params.items() | default({}) %}
{{ k }}="{{ v }}"
{% endfor %}
{% endif %}
)
{% endif %}
{% endfor %}
{% for output in rsyslog_outputs | default([]) %}
{% if output.enabled | default(true) %}
action(
type="{{ output.name }}"
{% if output.params is defined and output.params is mapping %}
{% for k, v in output.params.items() | default({}) %}
{{ k }}="{{ v }}"
{% endfor %}
{% endif %}
)
{% endif %}
{% endfor %}
{% if rsyslog_action_file_default_template is defined %} {% if rsyslog_action_file_default_template is defined %}
$ActionFileDefaultTemplate {{ rsyslog_action_file_default_template }} $ActionFileDefaultTemplate {{ rsyslog_action_file_default_template }}
{% endif %} {% endif %}