splunk / splunk-ansible

Ansible playbooks for configuring and managing Splunk Enterprise and Universal Forwarder deployments
357 stars 186 forks source link

Prevent duplicate MC search peers #867

Open jmeixensperger opened 2 days ago

jmeixensperger commented 2 days ago

Similar issue described in: https://github.com/splunk/splunk-ansible/pull/864

The monitoring console role performs 2 peering steps:

  1. When indexer clustering is enabled, peer the cluster master. This automatically registers indexers as search peers
  2. Manually add every instance as a search peer

This caused duplicate search peers for the indexers, where 1 set of search peers always has the status Down / Sick. This ultimately causes checks in adding_peers.yml to fail.

This PR makes the following changes: