Skip to content

Commit f74f864

Browse files
author
Manuel J. Bernal
authored
Merge pull request #251 from alanwevans/master
Fixes #250, adds $ossec_remote_local_ip parameter
2 parents 727cafa + e97a94e commit f74f864

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

manifests/manager.pp

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
$ossec_remote_connection = $wazuh::params_manager::ossec_remote_connection,
2727
$ossec_remote_port = $wazuh::params_manager::ossec_remote_port,
2828
$ossec_remote_protocol = $wazuh::params_manager::ossec_remote_protocol,
29+
$ossec_remote_local_ip = $wazuh::params_manager::ossec_remote_local_ip,
2930
$ossec_remote_queue_size = $wazuh::params_manager::ossec_remote_queue_size,
3031

3132
# ossec.conf generation parameters

manifests/params_manager.pp

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
$ossec_remote_connection = 'secure'
2727
$ossec_remote_port = 1514
2828
$ossec_remote_protocol = 'udp'
29+
$ossec_remote_local_ip = undef
2930
$ossec_remote_queue_size = 131072
3031

3132
# ossec.conf generation parameters

templates/wazuh_manager.conf.erb

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
<connection><%= @ossec_remote_connection %></connection>
3434
<port><%= @ossec_remote_port %></port>
3535
<protocol><%= @ossec_remote_protocol %></protocol>
36+
<%- if @ossec_remote_local_ip -%>
37+
<local_ip><%= @ossec_remote_local_ip %></local_ip>
38+
<%- end -%>
3639
<queue_size><%= @ossec_remote_queue_size %></queue_size>
3740
</remote>
3841

0 commit comments

Comments
 (0)