Fix a typo. The relp module lives in a separate package.
This commit is contained in:
parent
2c19eff17f
commit
76f81d59fc
|
@ -12,9 +12,15 @@ rsyslog_tls_status: 'disabled'
|
|||
rsyslog_tls_deb_pkgs:
|
||||
- 'rsyslog-gnutls'
|
||||
|
||||
rsyslog_relp_deb_pkgs:
|
||||
- 'rsyslog-relp'
|
||||
|
||||
rsyslog_tls_rh_pkgs:
|
||||
- 'rsyslog-gnutls'
|
||||
|
||||
rsyslog_relp_rh_pkgs:
|
||||
- 'rsyslog-relp'
|
||||
|
||||
rsyslog_relp_port: '20514'
|
||||
rsyslog_tls_certs_dir: /etc/pki/rsyslog
|
||||
rsyslog_ca_is_remote: False
|
||||
|
|
|
@ -42,6 +42,28 @@
|
|||
- ansible_distribution_file_variety == "RedHat"
|
||||
tags: [ 'syslog', 'rsyslog', 'remote_syslog' ]
|
||||
|
||||
- name: Install the rsyslog RELP package on deb/ubuntu
|
||||
block:
|
||||
- name: Install the rsyslog RELP support
|
||||
apt: pkg={{ rsyslog_relp_deb_pkgs }} state=present cache_valid_time=1800
|
||||
notify: Restart rsyslog
|
||||
|
||||
when:
|
||||
- rsyslog_enable_remote_socket or rsyslog_enable_send_to_remote
|
||||
- ansible_distribution_file_variety == "Debian"
|
||||
tags: [ 'syslog', 'rsyslog', 'remote_syslog' ]
|
||||
|
||||
- name: Install the rsyslog RELP package on RHEL/CentOS
|
||||
block:
|
||||
- name: Install the rsyslog RELP support
|
||||
yum: pkg={{ rsyslog_relp_rh_pkgs }} state=present
|
||||
notify: Restart rsyslog
|
||||
|
||||
when:
|
||||
- rsyslog_enable_remote_socket or rsyslog_enable_send_to_remote
|
||||
- ansible_distribution_file_variety == "RedHat"
|
||||
tags: [ 'syslog', 'rsyslog', 'remote_syslog' ]
|
||||
|
||||
- name: Initialize the TLS configuration
|
||||
block:
|
||||
- name: Create the PKI directory
|
||||
|
|
|
@ -11,7 +11,8 @@ tls.caCert="{{ rsyslog_tls_ca }}"
|
|||
tls.myCert="{{ rsyslog_tls_cert }}"
|
||||
tls.myPrivKey="{{ rsyslog_tls_key }}"
|
||||
#tls.authMode="name"
|
||||
#tls.permittedpeer=["client1","client2","client3"] )
|
||||
#tls.permittedpeer=["client1","client2","client3"] )
|
||||
)
|
||||
template (name="remote" type="string" string="{{ rsyslog_remote_path }}/%HOSTNAME%/%HOSTNAME%-syslog.log")
|
||||
ruleset (name="relp") { action(type="omfile" Template="remote") }
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue