Merge pull request #1197 from wazuh/1196-adapt-vd-to-wazuh-keystore-for-indexer-configuration

VD keystore changes
This commit is contained in:
David Correa Rodríguez 2024-02-02 10:44:02 +01:00 committed by GitHub
commit e72837de1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 12 deletions

View File

@ -37,6 +37,22 @@
- include_tasks: "Debian.yml" - include_tasks: "Debian.yml"
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- name: Generate the wazuh-keystore (username)
shell: >
/var/ossec/bin/wazuh-keystore -f indexer -k username -v {{ indexer_security_user }}
notify: restart wazuh-manager
tags:
- init
- config
- name: Generate the wazuh-keystore (password)
shell: >
/var/ossec/bin/wazuh-keystore -f indexer -k password -v {{ indexer_security_password }}
notify: restart wazuh-manager
tags:
- init
- config
- name: Install expect - name: Install expect
package: package:
name: expect name: expect

View File

@ -272,8 +272,6 @@
{% endfor %} {% endfor %}
</hosts> </hosts>
<username>{{ indexer_security_user }}</username>
<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>