Ansible roles to manipulate Splunk clusters, particularly to automate reboots after OS patches
-
Check all servers in inventory with ping to see who's alive
-
Work on the Cluster Manager:
a. Enable maintenance mode
b. Reboot the server
c. Wait for it to ping again
d. Verify that Splunkd starts up
-
Work on the Indexers, serially, one at a time:
a. Reboot the server
b. Wait for it to ping again
c. Verify that Splunkd starts up
-
Work on the Deployer and Search Heads:
a. Reboot the server
b. Wait for it to ping again
c. Verify that Splunkd starts up
-
Work on the Cluster Manager again:
a. Disable maintenance mode
Executes splunk offline
on a Splunk clustered indexer
It...reboots
Not used; leftover from the fork and preserved for possible future use
Executes splunk <enable\disable> maintenance-mode
on a Splunk cluster manager
Not used; leftover from the fork and preserved for possible future use
Checks for connectivity on port 8089 and verifies the Splunkd systemd service is running
A simple ping test to check who's alive and who isn't