From b18019c9297c2ab4493dbc4b5c0cc2bff8b2299d Mon Sep 17 00:00:00 2001 From: Bob Vincent Date: Tue, 24 Jul 2018 09:43:33 -0400 Subject: [PATCH] Support all remote connection options. #41 --- .../var-ossec-etc-ossec-server.conf.j2 | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 index bd1010f7..4c79498f 100644 --- a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 +++ b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 @@ -118,8 +118,21 @@ {% for connection in wazuh_manager_config.connection %} {{ connection.type }} - {{ connection.port }} - {{ connection.protocol }} + {% if connection.port is defined %}{{ connection.port }}{% endif %} + {% if connection.protocol is defined %}{{ connection.protocol }}{% endif %} + {% if connection.allowed_ips is defined %} + {% for allowed_ip in connection.allowed_ips %} + {{ allowed_ip }} + {% endfor %} + {% endif %} + {% if connection.denied_ips is defined %} + {% for denied_ip in connection.denied_ips %} + {{ denied_ip }} + {% endfor %} + {% endif %} + {% if connection.local_ip is defined %}{{ connection.local_ip }}{% endif %} + {% if connection.ipv6 is defined %}{{ connection.ipv6 }}{% endif %} + {% if connection.queue_size is defined %}{{ connection.queue_size }}{% endif %} {% endfor %}