Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure_idxc_sh and configure_idxc_member are hard coded for master_uri #198

Open
BSonPosh opened this issue Jul 12, 2023 · 2 comments
Open

Comments

@BSonPosh
Copy link

This causes deprecated errors.

- name: Configure search head to join indexer cluster
  command: "{{ splunk_home }}/bin/splunk edit cluster-config -mode searchhead -master_uri {{ splunk_uri_cm }} -secret {{ splunk_idxc_key }} -auth {{ splunk_auth }}"
  become: true
  become_user: "{{ splunk_nix_user }}"
  register: idxc_sh_join_result
  changed_when: idxc_sh_join_result.rc == 0
  failed_when: idxc_sh_join_result.rc != 0
  notify: restart splunk
  no_log: true
  until: idxc_sh_join_result.rc == 0
  retries: 6
  delay: 5

@arcsector
Copy link
Contributor

Can you open a PR following the logic in configure_idxc_manager.yml to contextually switch from the master_uri arg to the manager_uri var? Should look something like this:

- name: Run splunk version command to check currently installed version
  include_tasks: check_splunk_version.yml

# Splunk version < 8.1 supports mode=master
# https://docs.splunk.com/Documentation/Splunk/8.0.9/Indexer/Configuremasterwithserverconf
# Splunk version >= 8.1 supports mode=manager
# https://docs.splunk.com/Documentation/Splunk/latest/Indexer/Configuremanagerwithserverconf
- name: Setting clustering mode based on Splunk version number
  set_fact:
    mode_value: "{% if splunk_version_release | float < 8.1 %}master{% else %}manager{% endif %}"

@BSonPosh
Copy link
Author

Sure... I am teaching class this week but I will make a point to create the PR next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants