Skip to content

Commit 1cfe198

Browse files
alishamayornwang92mikedickeyjmeixensperger
authored
Release/8.0.2.1 (#334)
* Bugfix/uf uid gid (#320) * Fixing uid/gid on UF images; adding tests * Fixed tests for changes in splunk-ansible (#323) * Adding tests for peered standalones (#326) * update exec commands w/ splunk user (#329) * Updating image for upgrade test (#330) * Feature/adhoc search head (#327) * Adding example scenario using free-standing search head * Fixing scenario env var * Adding new test for idempotent changes to HEC configuration (#328) * Adding new test for idempotent changes to HEC configuration * Fixing other HEC tests * Updating to latest redhat ubi-minimal (#332) * Updating changelog for release/8021 (#333) Co-authored-by: Nelson Wang <nwang92@users.noreply.github.com> Co-authored-by: mikedickey <mdickey@splunk.com> Co-authored-by: Jack Meixensperger <jackm@splunk.com>
1 parent 49677b7 commit 1cfe198

File tree

11 files changed

+685
-75
lines changed

11 files changed

+685
-75
lines changed

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 := 8.0.2
11-
SPLUNK_BUILD := a7f645ddaf91
10+
SPLUNK_VERSION := 8.0.2.1
11+
SPLUNK_BUILD := f002026bad55
1212
ifeq ($(shell arch), s390x)
1313
SPLUNK_ARCH = s390x
1414
else

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://circleci.com/gh/splunk/docker-splunk/tree/develop.svg?style=svg)](https://circleci.com/gh/splunk/docker-splunk/tree/develop)
44

5-
Welcome to Splunk's official repository containing Dockerfiles for building Splunk Enterprise and Universal Forwarder images using containerization technology. This repository supports all Splunk roles and deployment topologies, and currently works on any Linux-based platform.
5+
Welcome to Splunk's official repository containing Dockerfiles for building Splunk Enterprise and Universal Forwarder images using containerization technology.
66

77
The provisioning of these disjoint containers is handled by the [splunk-ansible](https://github.com/splunk/splunk-ansible) project. Please refer to [Ansible documentation](http://docs.ansible.com/) for more details about Ansible concepts and how it works.
88

@@ -26,9 +26,7 @@ Splunk Enterprise is a platform for operational intelligence. Our software lets
2626
Please refer to [Splunk products](https://www.splunk.com/en_us/software.html) for more knowledge about the features and capabilities of Splunk, and how you can bring it into your organization.
2727

2828
##### What is docker-splunk?
29-
This is the official source code repository for building Docker images of Splunk Enterprise and Splunk Universal Forwarder. By introducing containerization, we can marry the ideals of infrastructure-as-code and declarative directives to manage and run Splunk and its other product offerings.
30-
31-
This repository should be used by people interested in running Splunk in their container orchestration environments. With this Docker image, we support running a standalone development Splunk instance as easily as running a full-fledged distributed production cluster, all while maintaining the best practices and recommended standards of operating Splunk at scale.
29+
This is the official source code repository for building Docker images of Splunk Enterprise and Splunk Universal Forwarder. By introducing containerization, we can marry the ideals of infrastructure-as-code and declarative directives to manage and run Splunk Enterprise.
3230

3331
## Quickstart
3432
Use the following command to start a single standalone instance of Splunk Enterprise:

base/redhat-8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# the container catalog moved from registry.access.redhat.com to registry.redhat.io
1717
# So at some point before they deprecate the old registry we have to make sure that
1818
# we have access to the new registry and change where we pull the ubi image from.
19-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1-328
19+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1
2020
LABEL name="splunk" \
2121
maintainer="support@splunk.com" \
2222
vendor="splunk" \

docs/CHANGELOG.md

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Navigation
44

5+
* [8.0.2.1](#8021)
56
* [8.0.2](#802)
67
* [8.0.1](#801)
78
* [8.0.0](#800)
9+
* [7.3.4.2](#7342)
810
* [7.3.4](#734)
911
* [7.3.3](#733)
1012
* [7.3.2](#732)
@@ -24,6 +26,23 @@
2426

2527
---
2628

29+
## 8.0.2.1
30+
31+
#### What's New?
32+
* Releasing new images to support Splunk Enterprise maintenance patch.
33+
34+
#### docker-splunk changes:
35+
* Bumping Splunk version. For details, see [Fixed issues](https://docs.splunk.com/Documentation/Splunk/8.0.2/ReleaseNotes/Fixedissues) in 8.0.2.1.
36+
* Bugfixes and additional tests for new features
37+
38+
#### splunk-ansible changes:
39+
* Added support for reading `SPLUNK_PASSWORD` from a file
40+
* License master and cluster master URLs are now also configurable in the `default.yml` config, as well as with the `LICENSE_MASTER_URL` and `CLUSTER_MASTER_URL` environment variables
41+
* Added support for auto-detecting the `service_name` for SplunkForwarder and allowing manual configuration with `splunk.service_name`
42+
* All HEC related variables were revised to follow a nested dict format in `default.yml`, i.e. `splunk.hec_enableSSL` is now `splunk.hec.ssl`. See the [Provision HEC](https://github.com/splunk/splunk-ansible/blob/develop/docs/EXAMPLES.md#provision-hec) example in the docs.
43+
44+
---
45+
2746
## 8.0.2
2847

2948
#### What's New?
@@ -34,7 +53,7 @@
3453
* Bugfixes and increasing test coverage for new features
3554

3655
#### splunk-ansible changes:
37-
* * Revised Splunk forwarding/receiving plays to optionally support SSL (see documentation on [securing data from forwarders](https://docs.splunk.com/Documentation/Splunk/latest/Security/Aboutsecuringdatafromforwarders))
56+
* Revised Splunk forwarding/receiving plays to optionally support SSL (see documentation on [securing data from forwarders](https://docs.splunk.com/Documentation/Splunk/latest/Security/Aboutsecuringdatafromforwarders))
3857
* Initial support for forwarder management using [Splunk Monitoring Console](https://docs.splunk.com/Documentation/Splunk/latest/DMC/DMCoverview)
3958
* New environment variables exposed to control replication/search factor for clusters, key/value pairs written to `splunk-launch.conf`, and replacing default security key (pass4SymmKey)
4059

@@ -78,17 +97,32 @@
7897

7998
---
8099

100+
## 7.3.4.2
101+
102+
#### What's New?
103+
* Releasing new images to support Splunk Enterprise maintenance patch.
104+
* Bundling in changes to be consistent with the release of [8.0.2.1](#8021).
105+
106+
#### docker-splunk changes:
107+
* Bumping Splunk version. For details, see [Fixed issues](https://docs.splunk.com/Documentation/Splunk/7.3.4/ReleaseNotes/Fixedissues) in 7.3.4.2.
108+
* See [8.0.2.1](#8021) changes.
109+
110+
#### splunk-ansible changes:
111+
* See [8.0.2.1](#8021) changes.
112+
113+
---
114+
81115
## 7.3.4
82116

83117
#### What's New?
84118
* New Splunk Enterprise release of 7.3.4
85119

86120
#### docker-splunk changes:
87-
* Bumping Splunk version. For details, see: https://docs.splunk.com/Documentation/Splunk/7.3.4/ReleaseNotes/Fixedissues
88-
* See [8.0.1](#801) changes
121+
* Bumping Splunk version. For details, see [Fixed issues](https://docs.splunk.com/Documentation/Splunk/7.3.4/ReleaseNotes/Fixedissues).
122+
* See [8.0.1](#801) changes.
89123

90124
#### splunk-ansible changes:
91-
* See [8.0.1](#801) changes
125+
* See [8.0.1](#801) changes.
92126

93127
---
94128

docs/TROUBLESHOOTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ $ docker logs -f <container_name/container_id>
5252
If your container is still running but in a bad state, you can try to debug by putting yourself within the context of that process.
5353

5454

55-
To gain interactive shell access to the container's runtime, you can run:
55+
To gain interactive shell access to the container's runtime as the splunk user, you can run:
5656
```
57-
$ docker exec -it <container_name/container_id> /bin/bash
57+
$ docker exec -it -u splunk <container_name/container_id> /bin/bash
5858
```
5959

6060
#### Debug variables
@@ -142,17 +142,17 @@ Generating a diag is only an option if:
142142

143143
To create this diag, run the following command:
144144
```
145-
$ docker exec -it <container_name/container_id> ${SPLUNK_HOME}/bin/splunk diag
145+
$ docker exec -it -u splunk <container_name/container_id> "${SPLUNK_HOME}/bin/splunk diag"
146146
```
147147

148148
Additionally, if your Docker container/hosts have access to https://www.splunk.com you can now send the file directly to Splunk Support by using the following command:
149149
```
150-
$ docker exec -it <container_name/container_id> ${SPLUNK_HOME}/bin/splunk diag --upload --case-number=<case_num> --upload-user=<your_splunk_id> --upload-password=<passwd> --upload-description="Monday diag, as requested"
150+
$ docker exec -it -u splunk <container_name/container_id> "${SPLUNK_HOME}/bin/splunk diag --upload --case-number=<case_num> --upload-user=<your_splunk_id> --upload-password=<passwd> --upload-description='Monday diag, as requested'"
151151
```
152152

153153
However, if you don't have direct access, you can manually copy the diag back to your host via `docker cp`:
154154
```
155-
$ docker cp <container_name/container_id>:/opt/splunk/var/run/diags/<filename> <location on your local machine>
155+
$ docker cp <container_name/container_id>:/opt/splunk/<filename> <location on your local machine>
156156
```
157157

158158
## Contact

test_scenarios/1sh1cm.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
version: "3.6"
2+
3+
networks:
4+
splunknet:
5+
driver: bridge
6+
attachable: true
7+
8+
services:
9+
sh1:
10+
networks:
11+
splunknet:
12+
aliases:
13+
- sh1
14+
image: ${SPLUNK_IMAGE:-splunk/splunk:latest}
15+
hostname: sh1
16+
container_name: sh1
17+
environment:
18+
- SPLUNK_START_ARGS=--accept-license
19+
- SPLUNK_CLUSTER_MASTER_URL=cm1
20+
- SPLUNK_ROLE=splunk_search_head
21+
- SPLUNK_PASSWORD
22+
- DEBUG=true
23+
ports:
24+
- 8000
25+
- 8089
26+
27+
cm1:
28+
networks:
29+
splunknet:
30+
aliases:
31+
- cm1
32+
image: ${SPLUNK_IMAGE:-splunk/splunk:latest}
33+
hostname: cm1
34+
container_name: cm1
35+
environment:
36+
- SPLUNK_START_ARGS=--accept-license
37+
- SPLUNK_ROLE=splunk_cluster_master
38+
- SPLUNK_PASSWORD
39+
- DEBUG=true
40+
ports:
41+
- 8000
42+
- 8089
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: "3.6"
2+
3+
networks:
4+
splunknet:
5+
driver: bridge
6+
attachable: true
7+
8+
services:
9+
cm1:
10+
networks:
11+
splunknet:
12+
aliases:
13+
- cm1
14+
image: ${SPLUNK_IMAGE:-splunk/splunk:latest}
15+
hostname: cm1
16+
container_name: cm1
17+
environment:
18+
- SPLUNK_START_ARGS=--accept-license
19+
- SPLUNK_ROLE=splunk_cluster_master
20+
- DEBUG=true
21+
- SPLUNK_PASSWORD
22+
ports:
23+
- 8000
24+
- 8089
25+
26+
so1:
27+
networks:
28+
splunknet:
29+
aliases:
30+
- so1
31+
image: ${SPLUNK_IMAGE:-splunk/splunk:latest}
32+
hostname: so1
33+
container_name: so1
34+
environment:
35+
- SPLUNK_START_ARGS=--accept-license
36+
- SPLUNK_CLUSTER_MASTER_URL=cm1
37+
- DEBUG=true
38+
- SPLUNK_PASSWORD
39+
ports:
40+
- 8000
41+
- 8089
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: "3.6"
2+
3+
networks:
4+
splunknet:
5+
driver: bridge
6+
attachable: true
7+
8+
services:
9+
cm1:
10+
networks:
11+
splunknet:
12+
aliases:
13+
- cm1
14+
image: ${SPLUNK_IMAGE:-splunk/splunk:latest}
15+
hostname: cm1
16+
container_name: cm1
17+
environment:
18+
- SPLUNK_START_ARGS=--accept-license
19+
- SPLUNK_ROLE=splunk_cluster_master
20+
- DEBUG=true
21+
- SPLUNK_PASSWORD
22+
ports:
23+
- 8000
24+
- 8089
25+
26+
so1:
27+
networks:
28+
splunknet:
29+
aliases:
30+
- so1
31+
image: ${SPLUNK_IMAGE:-splunk/splunk:latest}
32+
hostname: so1
33+
container_name: so1
34+
environment:
35+
- SPLUNK_START_ARGS=--accept-license
36+
- DEBUG=true
37+
- SPLUNK_PASSWORD
38+
ports:
39+
- 8000
40+
- 8089

tests/fixtures/pwfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
changeme123

0 commit comments

Comments
 (0)