I was just curious about this since I couldn't find anything on it in the following page:
https://docs.splunk.com/Documentation/Splunk/8.0.1/RESTREF/RESTcluster
Thanks in advance.
Hello all,
I originally wanted to test stuff with curl and ansible for putting the cluster master in maintenance-mode.
So I found a solution with Ansible from github so all credit goes to the link below:
- name: "Put Splunk cluster into maintenance mode"
command: /opt/splunk/bin/splunk enable maintenance-mode --answer-yes -auth "admin:vagrant"
become: true
become_user: splunk
become_method: sudo
changed_when: False
ignore_errors: True
no_log: True
register: splunk_command_output
- debug: msg="{{ splunk_command_output.stdout }}"
Hello all,
I originally wanted to test stuff with curl and ansible for putting the cluster master in maintenance-mode.
So I found a solution with Ansible from github so all credit goes to the link below:
- name: "Put Splunk cluster into maintenance mode"
command: /opt/splunk/bin/splunk enable maintenance-mode --answer-yes -auth "admin:vagrant"
become: true
become_user: splunk
become_method: sudo
changed_when: False
ignore_errors: True
no_log: True
register: splunk_command_output
- debug: msg="{{ splunk_command_output.stdout }}"