v1.1.0: Merge pull request #21 from splunk/updates_02182021
Enhancements
- Added logic to check if the host's splunk boot-start configuration matches what Ansible is expected from the value of
splunk_use_initdand fail the play if it does not inmain.yml - Added support in
configure_splunk_boot.ymlto be able to change existing Splunk installations from init.d to systemd, or vice-versa - Added automatic enablement of splunk boot-start to
configure_splunk_boot.ymlas this role now relies entirely on service module for handlers - When using systemd (
splunk_use_initd: false), splunk will automatically be restarted if it is killed or crashes - Updated WGET URLs to the latest Splunk and UF versions
- Updates to
configure_splunk_boot.ymlwill now automatically configure the desired boot-start method for Splunk if it is either unconfigured or not using the method that Ansible expects from the value ofsplunk_use_initd - Updated upgrade process to fail the play if Ansible is unable to stop splunk
- Updated
configure_apps.ymlto fail the play if Ansible is unable to clone one of the configured git repositories that need to be deployed - All splunk stop/start/restart tasks and handlers now rely on the service module and the
splunk_servicevariable that gets set in main.yml
Bugfixes
- Resolved #20
- All known compatibility issues related to init.d and systemd have been resolved
- Added a new handler to append the init.d file for the splunk start command with
--accept-licensewhen init.d is used so that splunk can start correctly after an upgrade - Added new
configure_systemd.ymltask to vastly improve the default systemd file for Splunk and ensure that Splunk starts successfully after an upgrade when systemd is used - Performed a total re-write of
configure_splunk_boot.ymland performed extensive testing to ensure that the desired outcome is successful in all scenarios - Updated handler for
reload systemctl daemonto use the native Ansible module and moved it up inhandlers/main.ymlso that it executes in the correct order during new splunk installations
Miscellaneous
- Added in-line documentation for
splunk_use_initdvariable in role default vars - Updated documentation and example inventories
- Removed an unused/redundant handler:
restart splunk service - Cleaned up a line in role default vars