From 815541c8e4ba51de5d6ea12eef65773f4c8ca520 Mon Sep 17 00:00:00 2001 From: Jesus Garcia Date: Mon, 2 Feb 2026 17:38:31 -0500 Subject: [PATCH] Fix indexer_cluster_nodes parameter misconfiguration and update changelog --- CHANGELOG.md | 1 + playbooks/wazuh-production-ready.yml | 12 ++++++------ roles/wazuh/wazuh-indexer/defaults/main.yml | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c7547af..b79af861 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. ### Changed +- 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