-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #649 from splunk/develop
Release/8.2.2
- Loading branch information
Showing
32 changed files
with
291 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
- name: Install Splunkbase app | ||
uri: | ||
url: "{{ cert_prefix }}://127.0.0.1:{{ splunk.svc_port }}/services/apps/local" | ||
method: POST | ||
user: "{{ splunk.admin_user }}" | ||
password: "{{ splunk.password }}" | ||
force_basic_auth: yes | ||
validate_certs: false | ||
body: | ||
name: "{{ app_filepath }}" | ||
update: "true" | ||
filename: "true" | ||
auth: "{{ splunkbase_token }}" | ||
body_format: "form-urlencoded" | ||
status_code: [ 200, 201 ] | ||
timeout: 300 | ||
use_proxy: no | ||
when: | ||
- app_filepath is defined | ||
- "'splunkbase.splunk.com' in app_filepath" | ||
- splunkbase_token is defined | ||
- splunkbase_token != None | ||
no_log: "{{ hide_password }}" | ||
|
||
- name: Install via app_paths | ||
when: "'splunkbase.splunk.com' not in app_filepath" | ||
block: | ||
- name: Check local app | ||
stat: | ||
path: "{{ app_filepath }}" | ||
register: app_local | ||
- name: Download remote app | ||
get_url: | ||
url: "{{ app_filepath }}" | ||
dest: /tmp/ | ||
mode: 0777 | ||
timeout: 120 | ||
validate_certs: no | ||
force: yes | ||
register: app_remote | ||
when: | ||
- app_filepath is match("^(https?|file)://.*") | ||
|
||
- name: Infer app filepath | ||
set_fact: | ||
app_install_filepath: "{% if app_filepath | regex_search('^(https?|file)://.*') %}{{ app_remote.dest }}{% else %}{{ app_local.stat.path }}{% endif %}" | ||
|
||
- name: Extract app to location | ||
unarchive: | ||
src: "{{ app_install_filepath }}" | ||
dest: "{{ extract_path }}" | ||
remote_src: true | ||
become: yes | ||
become_user: "{{ splunk.user }}" | ||
no_log: "{{ hide_password }}" | ||
when: | ||
- app_install_filepath is defined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
roles/splunk_deployer/tasks/bundle_push_to_search_heads.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: Apply shcluster bundle | ||
command: "{{ splunk.exec }} apply shcluster-bundle -target {{ cert_prefix }}://{{ splunk.search_head_captain_url }}:{{ splunk.svc_port }} -auth {{ splunk.admin_user }}:{{ splunk.password }} --answer-yes -push-default-apps true" | ||
become: yes | ||
become_user: "{{ splunk.user }}" | ||
no_log: "{{ hide_password }}" | ||
register: shcluster_bundle | ||
until: shcluster_bundle.rc == 0 or "Found zero deployable apps" in shcluster_bundle.stderr | ||
changed_when: shcluster_bundle.rc == 0 | ||
failed_when: shcluster_bundle.rc != 0 and "Found zero deployable apps" not in shcluster_bundle.stderr | ||
retries: "{{ retry_num }}" | ||
delay: "{{ retry_delay }}" | ||
ignore_errors: true | ||
|
||
- debug: | ||
msg: "WARNING: Applying shcluster bundle failed - proceeding anyways..." | ||
when: shcluster_bundle.rc != 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.