Modify indexer variables

This commit is contained in:
David Correa Rodríguez 2023-12-18 12:47:20 +01:00
parent 56d627aacf
commit 29b78076e5
No known key found for this signature in database
GPG Key ID: 8787C7C9FF271262

View File

@ -259,21 +259,21 @@
</sca> </sca>
<vulnerability-detection> <vulnerability-detection>
<enabled>{% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.wazuh_manager_indexer.enabled == 'yes' %}yes{% else %}no{% endif %}</enabled> <enabled>{% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.indexer.enabled == 'yes' %}yes{% else %}no{% endif %}</enabled>
<indexer-status>{{ wazuh_manager_config.vulnerability_detection.indexer_status }}</indexer-status> <indexer-status>{{ wazuh_manager_config.vulnerability_detection.indexer_status }}</indexer-status>
<feed-update-interval>{{ wazuh_manager_config.vulnerability_detection.feed_update_interval }}</feed-update-interval> <feed-update-interval>{{ wazuh_manager_config.vulnerability_detection.feed_update_interval }}</feed-update-interval>
</vulnerability-detection> </vulnerability-detection>
<indexer> <indexer>
<enabled>{% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.wazuh_manager_indexer.enabled == 'yes' %}yes{% else %}no{% endif %}</enabled> <enabled>{% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.indexer.enabled == 'yes' %}yes{% else %}no{% endif %}</enabled>
<hosts> <hosts>
{% for item in wazuh_manager_indexer.hosts %} {% for item in wazuh_manager_config.indexer.hosts %}
<host>https://{{ item }}:{{filebeat_output_indexer_port}}</host> <host>https://{{ item }}:{{filebeat_output_indexer_port}}</host>
{% endfor %} {% endfor %}
</hosts> </hosts>
<username>{{ indexer_security_user }}</username> <username>{{ indexer_security_user }}</username>
<password>"{{ indexer_security_password }}"</password> <password>{{ indexer_security_password }}</password>
<ssl> <ssl>
<certificate_authorities> <certificate_authorities>
<ca>{{ filebeat_ssl_dir }}/root-ca.pem</ca> <ca>{{ filebeat_ssl_dir }}/root-ca.pem</ca>