mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
Updated rsyslog server variable
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
999d7b5b1e
commit
499b67ceb2
3 changed files with 13 additions and 3 deletions
|
|
@ -530,12 +530,14 @@ rhel9cis_syslog: rsyslog
|
|||
rhel9cis_rsyslog_ansiblemanaged: true
|
||||
|
||||
#### 4.2.1.6 remote and destation log server name
|
||||
rhel9cis_remote_log_server: logagg.example.com
|
||||
rhel9cis_remote_log_server: false
|
||||
rhel9cis_remote_log_host: logagg.example.com
|
||||
rhel9cis_remote_log_port: 514
|
||||
rhel9cis_remote_log_protocol: tcp
|
||||
rhel9cis_remote_log_retrycount: 100
|
||||
rhel9cis_remote_log_queuesize: 1000
|
||||
|
||||
|
||||
#### 4.2.1.7
|
||||
rhel9cis_system_is_log_server: false
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@
|
|||
state: present
|
||||
block: |
|
||||
# target can be IP or FQDN
|
||||
*.* action(type="omfwd" target="{{ rhel9cis_remote_log_server }}" port="{{ rhel9cis_remote_log_port }}" protocol="{{ rhel9cis_remote_log_protocol }}" action.resumeRetryCount="{{ rhel9cis_remote_log_retrycount }}" queue.type="LinkedList" queue.size="{{ rhel9cis_remote_log_queuesize }}")
|
||||
*.* action(type="omfwd" target="{{ rhel9cis_remote_log_host }}" port="{{ rhel9cis_remote_log_port }}" protocol="{{ rhel9cis_remote_log_protocol }}" action.resumeRetryCount="{{ rhel9cis_remote_log_retrycount }}" queue.type="LinkedList" queue.size="{{ rhel9cis_remote_log_queuesize }}")
|
||||
insertafter: EOF
|
||||
register: result
|
||||
failed_when:
|
||||
|
|
|
|||
|
|
@ -448,8 +448,16 @@ rhel9cis_nft_tables_autochaincreate: {{ rhel9cis_nft_tables_autochaincreate }}
|
|||
|
||||
# Section 4
|
||||
|
||||
## Set if server is logserver
|
||||
## Set if host is a logserver
|
||||
rhel9cis_remote_log_server: {{ rhel9cis_remote_log_server }}
|
||||
|
||||
# Remote logserver settings
|
||||
rhel9cis_remote_log_host: {{ rhel9cis_remote_log_host }}
|
||||
rhel9cis_remote_log_port: {{ rhel9cis_remote_log_port }}
|
||||
rhel9cis_remote_log_protocol: {{ rhel9cis_remote_log_protocol }}
|
||||
rhel9cis_remote_log_retrycount: {{ rhel9cis_remote_log_retrycount }}
|
||||
rhel9cis_remote_log_queuesize: {{ rhel9cis_remote_log_queuesize }}
|
||||
|
||||
## syslog
|
||||
rhel9cis_syslog: {{ rhel9cis_syslog }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue