diff --git a/CHANGELOG.md b/CHANGELOG.md index b80b10bf..412a513b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. ### Changed - Fix mismatched tags in .j2 template files ([#1930](https://github.com/wazuh/wazuh-ansible/pull/1930)) +- Address Misconfiguration of indexer_cluster_nodes Parameter ([#1929](https://github.com/wazuh/wazuh-ansible/pull/1929)) - Remove meta yamls that prevent indexer and agent role installation from PR #1806 ([#1921](https://github.com/wazuh/wazuh-ansible/pull/1921)) - Ensure boolean condition evaluations - from community PR #1897 ([#1916](https://github.com/wazuh/wazuh-ansible/pull/1916)) diff --git a/playbooks/wazuh-production-ready.yml b/playbooks/wazuh-production-ready.yml index f1cbf3bc..da866cfa 100644 --- a/playbooks/wazuh-production-ready.yml +++ b/playbooks/wazuh-production-ready.yml @@ -5,9 +5,9 @@ - role: ../roles/wazuh/wazuh-indexer indexer_network_host: "{{ private_ip }}" indexer_cluster_nodes: - - "{{ hostvars.wi1.private_ip }}" - - "{{ hostvars.wi2.private_ip }}" - - "{{ hostvars.wi3.private_ip }}" + - "{{ hostvars.wi1.indexer_node_name }}" + - "{{ hostvars.wi2.indexer_node_name }}" + - "{{ hostvars.wi3.indexer_node_name }}" indexer_discovery_nodes: - "{{ hostvars.wi1.private_ip }}" - "{{ hostvars.wi2.private_ip }}" @@ -56,9 +56,9 @@ become_user: root vars: indexer_cluster_nodes: - - "{{ hostvars.wi1.private_ip }}" - - "{{ hostvars.wi2.private_ip }}" - - "{{ hostvars.wi3.private_ip }}" + - "{{ hostvars.wi1.indexer_node_name }}" + - "{{ hostvars.wi2.indexer_node_name }}" + - "{{ hostvars.wi3.indexer_node_name }}" indexer_discovery_nodes: - "{{ hostvars.wi1.private_ip }}" - "{{ hostvars.wi2.private_ip }}" diff --git a/roles/wazuh/wazuh-indexer/defaults/main.yml b/roles/wazuh/wazuh-indexer/defaults/main.yml index 3752d8c4..93749ffc 100644 --- a/roles/wazuh/wazuh-indexer/defaults/main.yml +++ b/roles/wazuh/wazuh-indexer/defaults/main.yml @@ -13,7 +13,7 @@ indexer_node_ingest: true indexer_start_timeout: 90 indexer_cluster_nodes: - - 127.0.0.1 + - "{{ indexer_node_name }}" indexer_discovery_nodes: - 127.0.0.1