Skip to content

Commit

Permalink
Merge pull request #730 from splunk/develop
Browse files Browse the repository at this point in the history
Release 9.0.5
  • Loading branch information
adityapinglesf authored Jun 2, 2023
2 parents 3071806 + c43164e commit b0766ce
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Navigation

* [9.0.5](#905)
* [9.0.4.1](#9041)
* [9.0.4](#904)
* [9.0.0](#900)
Expand Down Expand Up @@ -70,6 +71,14 @@

---

## 9.0.5

#### Changes
* Support for latest major Splunk release
* Documentation updates + bugfixes

---

## 9.0.4.1

#### Changes
Expand Down
2 changes: 1 addition & 1 deletion roles/splunk_common/tasks/get_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
20 changes: 20 additions & 0 deletions roles/splunk_common/tasks/install_splunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion roles/splunk_common/tasks/wait_for_splunk_process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
wait_for:
host: 127.0.0.1
port: "{{ splunk.svc_port }}"
timeout: 180
timeout: 900

0 comments on commit b0766ce

Please sign in to comment.