Skip to content

Commit d4d5cf8

Browse files
authored
Merge branch 'develop' into squash-redhat-layers
2 parents 5412bb6 + dc7d321 commit d4d5cf8

File tree

8 files changed

+85
-51
lines changed

8 files changed

+85
-51
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
command: make test_debian9_image_size
4545
- run:
4646
name: Running debian9 CI Tests
47-
command: make run_tests_debian9
47+
command: make run_tests_debian10
4848
no_output_timeout: 20m
4949
- store_artifacts:
5050
path: test-results

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ SPLUNK_ANSIBLE_BRANCH ?= develop
77
SPLUNK_COMPOSE ?= cluster_absolute_unit.yaml
88
# Set Splunk version/build parameters here to define downstream URLs and file names
99
SPLUNK_PRODUCT := splunk
10-
SPLUNK_VERSION := 7.3.0
11-
SPLUNK_BUILD := 657388c7a488
10+
SPLUNK_VERSION := 7.3.1.1
11+
SPLUNK_BUILD := 7651b7244cf2
1212
ifeq ($(shell arch), s390x)
1313
SPLUNK_ARCH = s390x
1414
else

_config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
theme: jekyll-theme-modernist
1+
theme: jekyll-theme-modernist
2+
relative_links:
3+
enabled: true
4+
collections: true
5+
markdown: kramdown
6+
kramdown:
7+
parse_block_html: true

base/debian-10/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ln -sf /usr/share/zoneinfo/UTC /etc/localtime
3131
apt update
3232

3333
# put back tools for customer support
34-
apt-get install -y --no-install-recommends curl sudo libgssapi-krb5-2 busybox procps acl
34+
apt-get install -y --no-install-recommends curl sudo libgssapi-krb5-2 busybox procps acl gcc libssl-dev libffi-dev python2-dev
3535
apt-get install -y --no-install-recommends python-pip python-setuptools python-requests python-yaml
3636
pip --no-cache-dir install ansible
3737

base/redhat-8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal
2020
LABEL name="splunk" \
2121
maintainer="support@splunk.com" \
2222
vendor="splunk" \
23-
version="7.3.0" \
23+
version="7.3.1.1" \
2424
release="1" \
2525
summary="UBI 8 Docker image of Splunk Enterprise" \
2626
description="Splunk Enterprise is a platform for operational intelligence. Our software lets you collect, analyze, and act upon the untapped value of big data that your technology infrastructure, security systems, and business applications generate. It gives you insights to drive operational performance and business results."

docs/EXAMPLES.md

Lines changed: 70 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Note that for more complex scenarios, we will opt to use a [Docker compose file]
1313
* [...with HEC](#create-standalone-with-hec)
1414
* [...with any app](#create-standalone-with-app)
1515
* [...with a SplunkBase app](#create-standalone-with-splunkbase-app)
16+
* [...with SSL enabled](#create-standalone-with-ssl-enabled)
1617
* [Create standalone and universal forwarder](#create-standalone-and-universal-forwarder)
1718
* [Create heavy forwarder](#create-heavy-forwarder)
1819
* [Create heavy forwarder and deployment server](#create-heavy-forwarder-and-deployment-server)
@@ -30,9 +31,10 @@ $ docker run --name so1 --hostname so1 -p 8000:8000 -e "SPLUNK_PASSWORD=<passwor
3031
```
3132

3233
## Create standalone from compose
33-
<details><summary>docker-compose.yml</summary><p>
3434

35-
```
35+
<details><summary markdown="span">docker-compose.yml</summary>
36+
37+
```yaml
3638
version: "3.6"
3739

3840
services:
@@ -45,7 +47,7 @@ services:
4547
ports:
4648
- 8000
4749
```
48-
</p></details>
50+
</details>
4951
5052
Execute the following to bring up your deployment:
5153
```
@@ -55,9 +57,9 @@ $ SPLUNK_PASSWORD=<password> docker-compose up -d
5557
## Create standalone with license
5658
Adding a Splunk Enterprise license can be done in multiple ways. Please review the following compose files below to see how it can be achieved, either with a license hosted on a webserver or with a license file as a direct mount.
5759

58-
<details><summary>docker-compose.yml - license from URL</summary><p>
60+
<details><summary>docker-compose.yml - license from URL</summary>
5961

60-
```
62+
```yaml
6163
version: "3.6"
6264

6365
services:
@@ -71,11 +73,11 @@ services:
7173
ports:
7274
- 8000
7375
```
74-
</p></details>
76+
</details>
7577
76-
<details><summary>docker-compose.yml - license from file</summary><p>
78+
<details><summary>docker-compose.yml - license from file</summary>
7779
78-
```
80+
```yaml
7981
version: "3.6"
8082

8183
services:
@@ -91,7 +93,7 @@ services:
9193
volumes:
9294
- ./splunk.lic:/tmp/license/splunk.lic
9395
```
94-
</p></details>
96+
</details>
9597
9698
9799
Execute the following to bring up your deployment:
@@ -102,9 +104,9 @@ $ SPLUNK_PASSWORD=<password> docker-compose up -d
102104
## Create standalone with HEC
103105
To learn more about what the HTTP event collector (HEC) is and how to use it, please review the documentation [here](https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector).
104106

105-
<details><summary>docker-compose.yml</summary><p>
107+
<details><summary>docker-compose.yml</summary>
106108

107-
```
109+
```yaml
108110
version: "3.6"
109111

110112
services:
@@ -118,7 +120,7 @@ services:
118120
ports:
119121
- 8000
120122
```
121-
</p></details>
123+
</details>
122124
123125
Execute the following to bring up your deployment:
124126
```
@@ -132,9 +134,11 @@ $ curl -k https://localhost:8088/services/collector/event -H "Authorization: Spl
132134
```
133135

134136
## Create standalone with app
135-
<details><summary>docker-compose.yml</summary><p>
137+
Splunk apps can also be installed using this Docker image.
136138

137-
```
139+
<details><summary>docker-compose.yml</summary>
140+
141+
```yaml
138142
version: "3.6"
139143

140144
services:
@@ -148,17 +152,19 @@ services:
148152
ports:
149153
- 8000
150154
```
151-
</p></details>
155+
</details>
152156
153157
Execute the following to bring up your deployment:
154158
```
155159
$ SPLUNK_PASSWORD=<password> docker-compose up -d
156160
```
157161

158162
## Create standalone with SplunkBase app
159-
<details><summary>docker-compose.yml</summary><p>
163+
Apps showcased on SplunkBase can also be installed using this Docker image.
160164

161-
```
165+
<details><summary>docker-compose.yml</summary>
166+
167+
```yaml
162168
version: "3.6"
163169

164170
services:
@@ -174,17 +180,39 @@ services:
174180
ports:
175181
- 8000
176182
```
177-
</p></details>
183+
</details>
178184
179185
Execute the following to bring up your deployment:
180186
```
181187
$ SPLUNKBASE_PASSWORD=<splunkbase_password> SPLUNK_PASSWORD=<password> docker-compose up -d
182188
```
183189

184-
## Create standalone and universal forwarder
185-
<details><summary>docker-compose.yml</summary><p>
190+
## Create standalone with SSL enabled
191+
192+
To enable SSL over SplunkWeb, you'll first need to generate your self-signed certificates. Please see the [Splunk docs](https://docs.splunk.com/Documentation/Splunk/latest/Security/Self-signcertificatesforSplunkWeb) on how to go about doing this. For the purposes of local development, you can use:
193+
```
194+
openssl req -x509 -newkey rsa:4096 -passout pass:abcd1234 -keyout /home/key.pem -out /home/cert.pem -days 365 -subj /CN=localhost
195+
```
186196

197+
Once you have your certificates available, you can execute the following to bring up your deployment with SSL enabled on the Splunk Web UI:
187198
```
199+
$ docker run --name so1 --hostname so1 -p 8000:8000 \
200+
-e "SPLUNK_HTTP_ENABLESSL=true" \
201+
-e "SPLUNK_HTTP_ENABLESSL_CERT=/home/cert.pem" \
202+
-e "SPLUNK_HTTP_ENABLESSL_PRIVKEY=/home/key.pem" \
203+
-e "SPLUNK_HTTP_ENABLESSL_PRIVKEY_PASSWORD=abcd1234" \
204+
-e "SPLUNK_PASSWORD=<password>" \
205+
-e "SPLUNK_START_ARGS=--accept-license" \
206+
-v /home:/home \
207+
-it splunk/splunk:latest
208+
```
209+
210+
## Create standalone and universal forwarder
211+
You can also enable distributed deployments. In this case, we can create a Splunk universal forwarder running in a container to stream logs to a Splunk standalone, also running in a container.
212+
213+
<details><summary>docker-compose.yml</summary>
214+
215+
```yaml
188216
version: "3.6"
189217

190218
networks:
@@ -225,7 +253,7 @@ services:
225253
- 8000
226254
- 8089
227255
```
228-
</p></details>
256+
</details>
229257
230258
Execute the following to bring up your deployment:
231259
```
@@ -235,9 +263,9 @@ $ SPLUNK_PASSWORD=<password> docker-compose up -d
235263
## Create heavy forwarder
236264
The following will allow you spin up a forwarder, and stream its logs to an independent, external indexer located at `idx1-splunk.company.internal`, as long as that hostname is reachable on your network.
237265

238-
<details><summary>docker-compose.yml</summary><p>
266+
<details><summary>docker-compose.yml</summary>
239267

240-
```
268+
```yaml
241269
version: "3.6"
242270

243271
networks:
@@ -263,7 +291,7 @@ services:
263291
ports:
264292
- 1514
265293
```
266-
</p></details>
294+
</details>
267295
268296
Execute the following to bring up your deployment:
269297
```
@@ -273,9 +301,9 @@ $ SPLUNK_PASSWORD=<password> docker-compose up -d
273301
## Create heavy forwarder and deployment server
274302
The following will allow you spin up a forwarder, and stream its logs to an independent, external indexer located at `idx1-splunk.company.internal`, as long as that hostname is reachable on your network. Additionally, it brings up a deployment server, which will download an app and distribute it to the heavy forwarder.
275303

276-
<details><summary>docker-compose.yml</summary><p>
304+
<details><summary>docker-compose.yml</summary>
277305

278-
```
306+
```yaml
279307
version: "3.6"
280308

281309
networks:
@@ -316,7 +344,7 @@ services:
316344
- SPLUNK_APPS_URL=https://artifact.company.internal/splunk_app.tgz
317345
- SPLUNK_PASSWORD
318346
```
319-
</p></details>
347+
</details>
320348
321349
Execute the following to bring up your deployment:
322350
```
@@ -330,9 +358,9 @@ $ docker run -it -e SPLUNK_PASSWORD=<password> splunk/splunk:latest create-defau
330358
```
331359

332360
Additionally, review the `docker-compose.yml` below to understand how linking Splunk instances together through roles and environment variables is accomplished:
333-
<details><summary>docker-compose.yml</summary><p>
361+
<details><summary>docker-compose.yml</summary>
334362

335-
```
363+
```yaml
336364
version: "3.6"
337365

338366
networks:
@@ -445,7 +473,7 @@ services:
445473
volumes:
446474
- ./default.yml:/tmp/defaults/default.yml
447475
```
448-
</p></details>
476+
</details>
449477
450478
Execute the following to bring up your deployment:
451479
```
@@ -459,9 +487,9 @@ $ docker run -it -e SPLUNK_PASSWORD=<password> splunk/splunk:latest create-defau
459487
```
460488

461489
Additionally, review the `docker-compose.yml` below to understand how linking Splunk instances together through roles and environment variables is accomplished:
462-
<details><summary>docker-compose.yml</summary><p>
490+
<details><summary>docker-compose.yml</summary>
463491

464-
```
492+
```yaml
465493
version: "3.6"
466494

467495
networks:
@@ -575,7 +603,7 @@ services:
575603
volumes:
576604
- ./default.yml:/tmp/defaults/default.yml
577605
```
578-
</p></details>
606+
</details>
579607
580608
Execute the following to bring up your deployment:
581609
```
@@ -589,9 +617,9 @@ $ docker run -it -e SPLUNK_PASSWORD=<password> splunk/splunk:latest create-defau
589617
```
590618

591619
Additionally, review the `docker-compose.yml` below to understand how linking Splunk instances together through roles and environment variables is accomplished:
592-
<details><summary>docker-compose.yml</summary><p>
620+
<details><summary>docker-compose.yml</summary>
593621

594-
```
622+
```yaml
595623
version: "3.6"
596624

597625
networks:
@@ -776,17 +804,17 @@ services:
776804
volumes:
777805
- ./default.yml:/tmp/defaults/default.yml
778806
```
779-
</p></details>
807+
</details>
780808
781809
Execute the following to bring up your deployment:
782810
```
783811
$ docker-compose up -d
784812
```
785813

786814
## Enable root endpoint on SplunkWeb
787-
<details><summary>docker-compose.yml</summary><p>
815+
<details><summary>docker-compose.yml</summary>
788816

789-
```
817+
```yaml
790818
version: "3.6"
791819

792820
services:
@@ -800,7 +828,7 @@ services:
800828
ports:
801829
- 8000
802830
```
803-
</p></details>
831+
</details>
804832
805833
Execute the following to bring up your deployment:
806834
```
@@ -810,9 +838,9 @@ $ SPLUNK_PASSWORD=<password> docker-compose up -d
810838
Then, visit SplunkWeb on your browser with the root endpoint in the URL, such as `http://localhost:8000/splunkweb`.
811839

812840
## Create sidecar forwarder
813-
<details><summary>k8s-sidecar.yml</summary><p>
841+
<details><summary>k8s-sidecar.yml</summary>
814842

815-
```
843+
```yaml
816844
apiVersion: v1
817845
kind: Pod
818846
metadata:
@@ -842,7 +870,7 @@ spec:
842870
- name: shared-data
843871
emptyDir: {}
844872
```
845-
</p></details>
873+
</details>
846874
847875
Execute the following to bring up your deployment:
848876
```

splunk/common-files/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ COPY splunk-ansible ${SPLUNK_ANSIBLE_HOME}
9797
# Set sudo rights
9898
RUN sed -i -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers \
9999
&& sudo echo -e '\nansible ALL=(splunk)NOPASSWD:ALL' >> /etc/sudoers \
100-
# Create the ansible user/group
100+
&& echo 'Create the ansible user/group' \
101101
&& groupadd -r ${ANSIBLE_GROUP} \
102102
&& useradd -r -m -g ${ANSIBLE_GROUP} ${ANSIBLE_USER} \
103103
&& usermod -aG sudo ${ANSIBLE_USER} \
104104
&& usermod -aG ${ANSIBLE_GROUP} ${SPLUNK_USER} \
105-
# Container Artifact Directory is a place for all artifacts and logs that are generated by the provisioning process. The directory is owned by the user "ansible".
105+
&& echo 'Container Artifact Directory is a place for all artifacts and logs that are generated by the provisioning process. The directory is owned by the user "ansible".' \
106106
&& mkdir ${CONTAINER_ARTIFACT_DIR} \
107107
&& chown -R ${ANSIBLE_USER}:${ANSIBLE_GROUP} ${CONTAINER_ARTIFACT_DIR} \
108108
&& chmod -R 775 ${CONTAINER_ARTIFACT_DIR} \

splunk/common-files/make-minimal-exclude.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/share/splunk/pdf*
3232
*mrsparkle*"""
3333

34-
m = re.match(".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+-[0-9a-z]+-Linux-[0-9a-z_-]+.tgz", sys.argv[1])
34+
m = re.match(".*splunk-([0-9]+)\.([0-9]+)\.[0-9]+\.?[0-9]?-[0-9a-z]+-Linux-[0-9a-z_-]+.tgz", sys.argv[1])
3535

3636
if m and m.group(1):
3737
if m.group(1) == "7":

0 commit comments

Comments
 (0)