-
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.
* Notifying of restart only when necessary (#406) * Register jre path to Splunk launch (#404) * OpenJDK11 for Centos 7 (#414) * Fixing default service names (#411) * Cleaning up how apps are copied and disabled (#416) * Multiple SPLUNK_STANDALONE_URL hosts provided (#427) * Refreshing installed apps array during CM setup (#428) * Added bearer token authentication for splunk download (#425)
- Loading branch information
1 parent
fbe7007
commit d9c8af3
Showing
39 changed files
with
263 additions
and
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Code owners are automatically requested for review when someone opens a | ||
# pull request modifying code that they own. | ||
# See: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners | ||
|
||
# Note: Each line is a file pattern followed by one or more owners. | ||
# Order matters: The last matching pattern has the most precedence. | ||
|
||
# Default owners for everything in docker-splunk: | ||
# * @splunk/if-01 | ||
* @nwang92 @alishamayor @arctan5x @lephino @jrigassio-splunk @jmeixensperger @hendolim @jonathan-vega-splunk | ||
|
||
# Docs-only pull requests: | ||
/docs/ @alishamayor @nwang92 |
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
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,12 @@ | ||
--- | ||
# TODO: Might be better to use synchronize here, but we'll need rsync installed | ||
- name: "Copy installed apps to {{ dest }}" | ||
shell: | ||
cmd: "set -o pipefail && tar -c --exclude=local {{ item }} | tar -x -C {{ dest }}" | ||
chdir: "{{ splunk.app_paths.default }}" | ||
executable: /bin/bash | ||
become: yes | ||
become_user: "{{ splunk.user }}" | ||
with_items: "{{ apps }}" | ||
register: copy_app | ||
changed_when: copy_app.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
--- | ||
- include_tasks: find_installed_apps.yml | ||
when: not installed_apps | ||
|
||
- name: Disable installed_apps | ||
- name: Disable installed apps | ||
command: "{{ splunk.exec }} disable app {{ item }} -auth {{ splunk.admin_user }}:{{ splunk.password }}" | ||
become: yes | ||
become_user: "{{ splunk.user }}" | ||
with_items: "{{ installed_apps }}" | ||
when: installed_apps | ||
when: installed_apps is defined and installed_apps | length > 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
--- | ||
- include_tasks: s2s/configure_splunktcp_ssl.yml | ||
register: splunktcp_ssl_result | ||
when: | ||
- "'s2s' in splunk and 'ssl' in splunk.s2s and splunk.s2s.ssl | bool" | ||
|
||
- include_tasks: s2s/configure_splunktcp.yml | ||
register: splunktcp_result | ||
when: | ||
- "'s2s' not in splunk or ('ssl' not in splunk.s2s or not splunk.s2s.ssl | bool)" |
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 |
---|---|---|
@@ -1,32 +1,48 @@ | ||
--- | ||
- name: "Setting service_name to SplunkForwarder.service" | ||
- name: "Setting service_name fact from config" | ||
set_fact: | ||
splunk_service_name: "SplunkForwarder.service" | ||
splunk_service_name: "{{ splunk.service_name }}" | ||
when: | ||
- splunk_service_name is not defined | ||
- splunk.enable_service and ansible_system is match("Linux") | ||
- splunk_systemd | ||
- splunk.build_location is search('forwarder') | ||
- "'service_name' in splunk" | ||
|
||
- name: "Setting service_name to Splunkd.service" | ||
set_fact: | ||
splunk_service_name: "Splunkd.service" | ||
when: | ||
- splunk_service_name is not defined | ||
- splunk.enable_service and ansible_system is match("Linux") | ||
- splunk_systemd | ||
- name: Set Splunk service name | ||
block: | ||
- name: Setting SplunkForwarder service | ||
set_fact: | ||
splunk_service_name: "SplunkForwarder.service" | ||
when: | ||
- ansible_system is match("Linux") | ||
- splunk_systemd | ||
- splunk.role == "splunk_universal_forwarder" | ||
|
||
- name: "Setting service_name to splunkd" | ||
set_fact: | ||
splunk_service_name: "splunkd" | ||
when: | ||
- splunk_service_name is not defined | ||
- splunk.enable_service and ansible_system is match("Linux") | ||
- splunk_systemd is False | ||
- name: Setting Splunkd service | ||
set_fact: | ||
splunk_service_name: "Splunkd.service" | ||
when: | ||
- ansible_system is match("Linux") | ||
- splunk_systemd | ||
- splunk.role != "splunk_universal_forwarder" | ||
|
||
- name: "Setting service_name to splunkd" | ||
set_fact: | ||
splunk_service_name: "splunkd" | ||
- name: Setting splunk service | ||
set_fact: | ||
splunk_service_name: "splunk" | ||
when: | ||
- ansible_system is match("Linux") | ||
- not splunk_systemd | ||
|
||
- name: Setting splunkforwarder Windows service | ||
set_fact: | ||
splunk_service_name: "splunkforwarder" | ||
when: | ||
- ansible_system is not match("Linux") | ||
- splunk.role == "splunk_universal_forwarder" | ||
|
||
- name: Setting splunkd Windows service | ||
set_fact: | ||
splunk_service_name: "splunkd" | ||
when: | ||
- ansible_system is not match("Linux") | ||
- splunk.role != "splunk_universal_forwarder" | ||
when: | ||
- splunk_service_name is not defined | ||
- splunk.enable_service and not ansible_system is match("Linux") | ||
- splunk_service_name is not defined or not splunk_service_name | ||
- splunk.enable_service |
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 |
---|---|---|
|
@@ -37,3 +37,4 @@ | |
with_items: | ||
- "{{ splunk.build_location }}" | ||
- "/tmp/splunk.msi" | ||
- splunk_downloaded_build_location |
Oops, something went wrong.