From 56d627aacfba6b8230b3d3d489d02bc3feae90ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Correa=20Rodr=C3=ADguez?= Date: Mon, 18 Dec 2023 11:28:00 +0100 Subject: [PATCH] Indexer and VD must coincide in config --- .../templates/var-ossec-etc-ossec-server.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 b/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 index d951c80f..42283cf1 100644 --- a/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 +++ b/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 @@ -259,13 +259,13 @@ - {{ wazuh_manager_config.vulnerability_detection.enabled }} + {% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.wazuh_manager_indexer.enabled == 'yes' %}yes{% else %}no{% endif %} {{ wazuh_manager_config.vulnerability_detection.indexer_status }} {{ wazuh_manager_config.vulnerability_detection.feed_update_interval }} - {{ wazuh_manager_config.wazuh_manager_indexer.enabled }} + {% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.wazuh_manager_indexer.enabled == 'yes' %}yes{% else %}no{% endif %} {% for item in wazuh_manager_indexer.hosts %} https://{{ item }}:{{filebeat_output_indexer_port}}