Skip to content

Commit e41cf20

Browse files
authored
Merge pull request #625 from splunk/develop
Release/8.2.0
2 parents e6ab669 + 9e43e1f commit e41cf20

14 files changed

+148
-45
lines changed

.circleci/config.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,6 @@ executors:
88

99
jobs:
1010
splunk-ansible-test:
11-
executor: circleci_xlarge
12-
steps:
13-
- checkout
14-
- run:
15-
name: Run linting
16-
command: make lint
17-
- run:
18-
name: Run py3k linting
19-
command: make py3k-lint
20-
- run:
21-
name: Run small tests
22-
command: make small-tests
23-
- run:
24-
name: Run large (molecule) tests
25-
command: make large-tests
26-
- store_artifacts:
27-
path: tests/results
28-
destination: tests/results
29-
- store_test_results:
30-
path: tests/results
31-
py3k-splunk-ansible-test:
3211
executor: circleci_xlarge
3312
steps:
3413
- checkout
@@ -57,4 +36,3 @@ workflows:
5736
run_tests:
5837
jobs:
5938
- splunk-ansible-test
60-
- py3k-splunk-ansible-test

docs/ADVANCED.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Splunk-Ansible ships with an inventory script in `inventory/environ.py`. The scr
124124
| SPLUNK_DEFAULTS_HTTP_MAX_TIMEOUT | When fetching a remote `default.yml`, specify the timeout of the request | no | no | no |
125125
| SPLUNK_DEFAULTS_HTTP_MAX_RETRIES | When fetching a remote `default.yml`, the number of retries to make. For unlimited retries, use `-1` | no | no | no |
126126
| SPLUNK_DEFAULTS_HTTP_MAX_DELAY | When fetching a remote `default.yml`, specify the delay between each retry | no | no | no |
127+
| SPLUNK_DEFAULTS_HTTP_AUTH_HEADER | When fetching a remote `default.yml`, set the `Authorization` header | no | no | no |
127128
| SPLUNK_ANSIBLE_PRE_TASKS | Pass in a comma-separated list of local paths or remote URLs to Ansible playbooks that will be executed before `site.yml`. Must include the protocol, i.e. it must match the regex `^(http\|https\|file)://.*` | no | no | no |
128129
| SPLUNK_ANSIBLE_POST_TASKS | Pass in a comma-separated list of local paths or remote URLs to Ansible playbooks that will be executed after `site.yml`. Must include the protocol, i.e. it must match the regex `^(http\|https\|file)://.*` | no | no | no |
129130
| SPLUNK_ANSIBLE_ENV | Pass in a comma-separated list of "key=value" pairs that will be mapped to environment variables used during `site.yml` execution. These variables are also available in ansible pre/post playbooks and can be referenced as `hostvars['localhost'].ansible_environment['key']` | no | no | no |

docs/CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
## Navigation
44

5+
* [8.2.0](#820)
6+
* [8.1.4](#814)
57
* [8.1.3](#813)
68
* [8.1.2](#812)
79
* [8.1.1](#811)
810
* [8.1.0.1](#8101)
911
* [8.1.0](#810)
12+
* [8.0.9](#809)
1013
* [8.0.8](#808)
1114
* [8.0.7](#807)
1215
* [8.0.6.1](#8061)
@@ -47,6 +50,28 @@
4750

4851
---
4952

53+
## 8.2.0
54+
55+
#### What's New?
56+
* Added support for setting `clientName` in `deploymentclient.conf`
57+
* `splunk.deployment_client.name` in `default.yml`
58+
* `SPLUNK_DEPLOYMENT_CLIENT_NAME` environment variable
59+
60+
#### Changes
61+
* Bugfixes
62+
63+
---
64+
65+
## 8.1.4
66+
67+
#### What's New?
68+
Syncing with latest codebase - currently up to sync with 8.2.0.
69+
70+
#### Changes
71+
* See [8.2.0](#820) changes above.
72+
73+
---
74+
5075
## 8.1.3
5176

5277
#### Changes
@@ -91,6 +116,16 @@
91116

92117
---
93118

119+
## 8.0.9
120+
121+
#### What's New?
122+
Syncing with latest codebase - currently up to sync with 8.2.0.
123+
124+
#### Changes
125+
* See [8.2.0](#820) changes above.
126+
127+
---
128+
94129
## 8.0.8
95130

96131
#### What's New?

docs/advanced/default.yml.spec.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@ splunk:
173173
* Hostname of Splunk Enterprise deployer instance. May be overridden using SPLUNK_DEPLOYER_URL environment variable.
174174
* Default: null
175175
176+
deployment_client: <dict>
177+
* Deployment client object that configures `deployment-client` stanza of `deploymentclient.conf` file.
178+
* Default: null
179+
180+
name: null
181+
* Client name for deployment client. May be overridden using SPLUNK_DEPLOYMENT_CLIENT_NAME environment variable.
182+
* Default: null
183+
176184
search_head_captain_url: null
177185
* Hostname of Splunk Enterprise search head cluster captain instance. May be overridden using SPLUNK_SEARCH_HEAD_CAPTAIN_URL environment variable.
178186
* Default: null

inventory/environ.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,10 @@ def getUFSplunkVariables(vars_scope):
558558
vars_scope["splunk"]["before_start_cmd"] = os.environ.get("SPLUNK_BEFORE_START_CMD").split(",")
559559
if os.environ.get("SPLUNK_CMD"):
560560
vars_scope["splunk"]["cmd"] = os.environ.get("SPLUNK_CMD").split(",")
561+
if os.environ.get("SPLUNK_DEPLOYMENT_CLIENT_NAME"):
562+
vars_scope["splunk"]["deployment_client"] = {
563+
"name": os.environ.get("SPLUNK_DEPLOYMENT_CLIENT_NAME")
564+
}
561565

562566
def getRandomString():
563567
"""
@@ -636,9 +640,14 @@ def mergeDefaultsFromURL(vars_scope, url, headers=None, verify=False):
636640
"""
637641
if not url:
638642
return vars_scope
643+
if not headers:
644+
headers = {}
639645
max_retries = int(os.environ.get("SPLUNK_DEFAULTS_HTTP_MAX_RETRIES", vars_scope["config"].get("max_retries")))
640646
max_delay = int(os.environ.get("SPLUNK_DEFAULTS_HTTP_MAX_DELAY", vars_scope["config"].get("max_delay")))
641647
max_timeout = int(os.environ.get("SPLUNK_DEFAULTS_HTTP_MAX_TIMEOUT", vars_scope["config"].get("max_timeout")))
648+
auth = os.environ.get("SPLUNK_DEFAULTS_HTTP_AUTH_HEADER")
649+
if auth:
650+
headers["Authorization"] = auth
642651
unlimited_retries = (max_retries == -1)
643652
current_retry = 0
644653
while True:

inventory/splunk_defaults_linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ splunk:
109109
auxiliary_cluster_masters: []
110110
search_head_captain_url:
111111
deployer_url:
112+
deployment_client:
113+
name:
112114
connection_timeout: 0
113115
enable_service: False
114116
disable_popups: False

inventory/splunk_defaults_windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ splunk:
101101
auxiliary_cluster_masters: []
102102
search_head_captain_url:
103103
deployer_url:
104+
deployment_client:
105+
name:
104106
connection_timeout: 180
105107
enable_service: False
106108
disable_popups: False

inventory/splunkforwarder_defaults_linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ splunk:
101101
auxiliary_cluster_masters: []
102102
search_head_captain_url:
103103
deployer_url:
104+
deployment_client:
105+
name:
104106
connection_timeout: 0
105107
enable_service: False
106108
disable_popups: False

inventory/splunkforwarder_defaults_windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ splunk:
101101
auxiliary_cluster_masters: []
102102
search_head_captain_url:
103103
deployer_url:
104+
deployment_client:
105+
name:
104106
connection_timeout: 180
105107
enable_service: False
106108
disable_popups: False

roles/splunk_common/tasks/install_splunk_yum.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# added the environment section due to bug:
22
# https://github.com/ansible/ansible/issues/18979
3+
- name: Import Splunk key
4+
rpm_key:
5+
key: https://docs.splunk.com/images/6/6b/SplunkPGPKey.pub
6+
state: present
7+
38
- name: Install Splunk (yum)
49
yum:
510
name: "{{ splunk.build_location }}"

0 commit comments

Comments
 (0)