From 7c1fa05b79e1b47be36456220dd5d16a0d44e785 Mon Sep 17 00:00:00 2001 From: bendermar <71325605+bendermar@users.noreply.github.com> Date: Wed, 17 May 2023 19:27:15 +0200 Subject: [PATCH 1/3] Update wait_for_splunk_process.yml We need an increase of this timeout because with large searchhead cluster with lot of users and apps this results into a loop during upgrade or scaling --- roles/splunk_common/tasks/wait_for_splunk_process.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/splunk_common/tasks/wait_for_splunk_process.yml b/roles/splunk_common/tasks/wait_for_splunk_process.yml index 264ac950..d328635c 100644 --- a/roles/splunk_common/tasks/wait_for_splunk_process.yml +++ b/roles/splunk_common/tasks/wait_for_splunk_process.yml @@ -9,4 +9,4 @@ wait_for: host: 127.0.0.1 port: "{{ splunk.svc_port }}" - timeout: 180 + timeout: 900 From bdc4c1919d5db0d3c5016364cede8d8de2bacb83 Mon Sep 17 00:00:00 2001 From: hendolim Date: Fri, 19 May 2023 10:43:03 -0700 Subject: [PATCH 2/3] Fix fresh install splunk vs upgrade (#726) Upgrade qualifies only fro a first run. And clean up home dir for fresh install --- roles/splunk_common/tasks/get_facts.yml | 2 +- roles/splunk_common/tasks/install_splunk.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/roles/splunk_common/tasks/get_facts.yml b/roles/splunk_common/tasks/get_facts.yml index 58b3aec9..bb9b2f84 100644 --- a/roles/splunk_common/tasks/get_facts.yml +++ b/roles/splunk_common/tasks/get_facts.yml @@ -79,7 +79,7 @@ # and allowing upgrades between new and old hashes of the same version. - name: "Setting upgrade fact" set_fact: - splunk_upgrade: "{{ 'build_location' in splunk and splunk.build_location and not splunk_install and splunk_target_version and ((splunk_target_version != splunk_current_version) or (splunk_current_build_hash != splunk_target_build_hash))| default(False) }}" + splunk_upgrade: "{{ not first_run and 'build_location' in splunk and splunk.build_location and not splunk_install and splunk_target_version and ((splunk_target_version != splunk_current_version) or (splunk_current_build_hash != splunk_target_build_hash))| default(False) }}" # determine if we need to set up indexer clusters - name: "Setting indexer cluster fact from config" diff --git a/roles/splunk_common/tasks/install_splunk.yml b/roles/splunk_common/tasks/install_splunk.yml index 50dbf858..d4969ee6 100644 --- a/roles/splunk_common/tasks/install_splunk.yml +++ b/roles/splunk_common/tasks/install_splunk.yml @@ -24,6 +24,26 @@ - "{{ splunk.home }}/Python-2.7" when: splunk_upgrade | bool +- name: Find all files to clean up in Splunk home for fresh install + find: + path: "{{ splunk.home }}" + file_type: file + ignore_errors: yes + become: yes + become_user: "{{ privileged_user }}" + register: cleanup_files + when: not splunk_upgrade + +- name: Clean up Splunk home for fresh install + file: + path: "{{ item.path }}" + state: "absent" + ignore_errors: yes + become: yes + become_user: "{{ privileged_user }}" + with_items: "{{ cleanup_files.files }}" + when: not splunk_upgrade + - name: Install Splunk include_tasks: install_splunk_{{ splunk_build_type }}.yml From faa797859c822f0bae24cff6fc4808e3263b815e Mon Sep 17 00:00:00 2001 From: Aditya Pingle Date: Thu, 1 Jun 2023 13:32:10 -0700 Subject: [PATCH 3/3] updated changelog for 9.0.5 release; --- docs/CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 7d43d923..180bd5dc 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,7 @@ ## Navigation +* [9.0.5](#905) * [9.0.4.1](#9041) * [9.0.4](#904) * [9.0.0](#900) @@ -70,6 +71,14 @@ --- +## 9.0.5 + +#### Changes +* Support for latest major Splunk release +* Documentation updates + bugfixes + +--- + ## 9.0.4.1 #### Changes