Skip to content

v1.1.0: Merge pull request #21 from splunk/updates_02182021

Choose a tag to compare

@mason-splunk mason-splunk released this 22 Feb 22:51
· 187 commits to master since this release
7b1be38

Enhancements

  • Added logic to check if the host's splunk boot-start configuration matches what Ansible is expected from the value of splunk_use_initd and fail the play if it does not in main.yml
  • Added support in configure_splunk_boot.yml to 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.yml as 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.yml will 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 of splunk_use_initd
  • Updated upgrade process to fail the play if Ansible is unable to stop splunk
  • Updated configure_apps.yml to 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_service variable 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-license when init.d is used so that splunk can start correctly after an upgrade
  • Added new configure_systemd.yml task 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.yml and performed extensive testing to ensure that the desired outcome is successful in all scenarios
  • Updated handler for reload systemctl daemon to use the native Ansible module and moved it up in handlers/main.yml so that it executes in the correct order during new splunk installations

Miscellaneous

  • Added in-line documentation for splunk_use_initd variable 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