Skip to content

Commit 82c1c53

Browse files
authored
Merge branch 'main' into feature/beats-tls-passphrase-291
2 parents 1befdae + f3ee73d commit 82c1c53

25 files changed

+207
-115
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug", "needs-triage"]
5+
body:
6+
- type: checkboxes
7+
id: terms
8+
attributes:
9+
label: Please try to fill out as much of the information below as you can. Thank you!
10+
options:
11+
- label: Yes, I've searched similar issues on GitHub and didn't find any.
12+
required: true
13+
- type: input
14+
id: app_version
15+
attributes:
16+
label: Which version contains the bug?
17+
placeholder: 1.0.0
18+
- type: textarea
19+
id: description
20+
attributes:
21+
label: Describe the bug
22+
description: Please provide a concise description of the bug, add any relevant output or error messages. You can use markdown.
23+
- type: textarea
24+
id: recreate
25+
attributes:
26+
label: How to recreate the bug?
27+
description: Please provide the steps to recreate the issue.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Documentation
2+
description: Suggest documentation improvements
3+
title: "[Documentation]: "
4+
labels: ["documentation"]
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: Describe the improvements you'd like.
10+
description: Please provide as much context as possible. You can use markdown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Feature Request
2+
description: Request a feature or enhancement
3+
title: "[Feature]: "
4+
labels: ["feature", "needs-triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Please try to fill out as much of the information below as you can. Thank you!
10+
**Note:** If you want to sponsor new features, contact us at [email protected]
11+
- type: textarea
12+
id: description
13+
attributes:
14+
label: Describe the feature request
15+
description: Please provide a concise description of the feature. You can use markdown.

.github/ISSUE_TEMPLATE/question.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Question
2+
description: Ask a question
3+
title: "[Question]: "
4+
labels: ["question"]
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: Ask a question
10+
description: Please provide as much context as possible. You can use markdown.

.github/workflows/test_full_stack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
uses: actions/checkout@v4
5252

5353
- name: Set up Python 3.8
54-
uses: actions/setup-python@v4
54+
uses: actions/setup-python@v5
5555
with:
5656
python-version: 3.8
5757

.github/workflows/test_linting.yml

+2-17
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,9 @@ on:
1717
rolename:
1818
required: true
1919
type: string
20-
push:
21-
branches:
22-
- 'feature/**'
23-
- 'fix/**'
24-
- '!doc/**'
25-
paths:
26-
- '.github/workflows/test_linting.yml'
27-
- '.config/ansible-lint.yml'
28-
- '.yamllint'
2920
pull_request:
3021
branches:
31-
- 'feature/**'
32-
- 'fix/**'
33-
- '!doc/**'
34-
paths:
35-
- '.github/workflows/test_linting.yml'
36-
- '.config/ansible-lint.yml'
37-
- '.yamllint'
22+
- '*'
3823

3924
jobs:
4025
lint:
@@ -44,7 +29,7 @@ jobs:
4429
uses: actions/checkout@v4
4530

4631
- name: Set up Python 3.
47-
uses: actions/setup-python@v4
32+
uses: actions/setup-python@v5
4833
with:
4934
python-version: '3.x'
5035

.github/workflows/test_plugins.yml

+5-16
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@ on:
1212
- info
1313
- warning
1414
- debug
15-
push:
16-
branches:
17-
- 'feature/**'
18-
- 'fix/**'
19-
- '!doc/**'
20-
paths:
21-
- 'plugins/**'
22-
- '.github/workflows/test_plugins.yml'
23-
- 'molecule/plugins/**'
24-
- '.config/pep8.yml'
25-
- 'tests/**'
2615
pull_request:
2716
branches:
2817
- 'feature/**'
@@ -43,7 +32,7 @@ jobs:
4332
uses: actions/checkout@v4
4433

4534
- name: Set up Python 3.
46-
uses: actions/setup-python@v4
35+
uses: actions/setup-python@v5
4736
with:
4837
python-version: '3.x'
4938

@@ -72,7 +61,7 @@ jobs:
7261
uses: actions/checkout@v4
7362

7463
- name: Set up Python 3.9.14
75-
uses: actions/setup-python@v4
64+
uses: actions/setup-python@v5
7665
with:
7766
python-version: 3.9.14
7867

@@ -118,7 +107,7 @@ jobs:
118107
uses: actions/checkout@v4
119108

120109
- name: Set up Python ${{ matrix.python_version }}
121-
uses: actions/setup-python@v4
110+
uses: actions/setup-python@v5
122111
with:
123112
python-version: ${{ matrix.python_version }}
124113

@@ -157,7 +146,7 @@ jobs:
157146
uses: actions/checkout@v4
158147

159148
- name: Set up Python 3.9.14
160-
uses: actions/setup-python@v4
149+
uses: actions/setup-python@v5
161150
with:
162151
python-version: 3.9.14
163152

@@ -196,7 +185,7 @@ jobs:
196185
uses: actions/checkout@v4
197186

198187
- name: Set up Python 3.9.14
199-
uses: actions/setup-python@v4
188+
uses: actions/setup-python@v5
200189
with:
201190
python-version: 3.9.14
202191

.github/workflows/test_role_beats.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ on:
1212
- info
1313
- warning
1414
- debug
15-
push:
16-
branches:
17-
- 'feature/**'
18-
- 'fix/**'
19-
- '!doc/**'
20-
paths:
21-
- 'roles/beats/**'
22-
- '.github/workflows/test_role_beats.yml'
23-
- 'molecule/beats_**'
2415
pull_request:
2516
branches:
2617
- 'feature/**'
@@ -57,7 +48,7 @@ jobs:
5748
uses: actions/checkout@v4
5849

5950
- name: Set up Python 3.8
60-
uses: actions/setup-python@v4
51+
uses: actions/setup-python@v5
6152
with:
6253
python-version: 3.8
6354

.github/workflows/test_role_elasticsearch.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ on:
1212
- info
1313
- warning
1414
- debug
15-
push:
16-
branches:
17-
- 'feature/**'
18-
- 'fix/**'
19-
- '!doc/**'
20-
paths:
21-
- 'roles/elasticsearch/**'
22-
- '.github/workflows/test_role_elasticsearch.yml'
23-
- 'molecule/elasticsearch_**'
2415
pull_request:
2516
branches:
2617
- 'feature/**'
@@ -63,7 +54,7 @@ jobs:
6354
uses: actions/checkout@v4
6455

6556
- name: Set up Python 3.8
66-
uses: actions/setup-python@v4
57+
uses: actions/setup-python@v5
6758
with:
6859
python-version: 3.8
6960

.github/workflows/test_role_kibana.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ on:
1212
- info
1313
- warning
1414
- debug
15-
push:
16-
branches:
17-
- 'feature/**'
18-
- 'fix/**'
19-
- '!doc/**'
20-
paths:
21-
- 'roles/kibana/**'
22-
- '.github/workflows/test_role_kibana.yml'
23-
- 'molecule/kibana_**'
2415
pull_request:
2516
branches:
2617
- 'feature/**'
@@ -58,7 +49,7 @@ jobs:
5849
uses: actions/checkout@v4
5950

6051
- name: Set up Python 3.8
61-
uses: actions/setup-python@v4
52+
uses: actions/setup-python@v5
6253
with:
6354
python-version: 3.8
6455

.github/workflows/test_role_logstash.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ on:
1212
- info
1313
- warning
1414
- debug
15-
push:
16-
branches:
17-
- 'feature/**'
18-
- 'fix/**'
19-
- '!doc/**'
20-
paths:
21-
- 'roles/logstash/**'
22-
- '.github/workflows/test_role_logstash.yml'
23-
- 'molecule/logstash_**'
2415
pull_request:
2516
branches:
2617
- 'feature/**'
@@ -63,7 +54,7 @@ jobs:
6354
uses: actions/checkout@v4
6455

6556
- name: Set up Python 3.8
66-
uses: actions/setup-python@v4
57+
uses: actions/setup-python@v5
6758
with:
6859
python-version: 3.8
6960

.github/workflows/test_role_repos.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ on:
1111
- info
1212
- warning
1313
- debug
14-
push:
15-
branches:
16-
- 'feature/**'
17-
- 'fix/**'
18-
- '!doc/**'
19-
paths:
20-
- 'roles/repos/**'
21-
- '.github/workflows/test_role_repos.yml'
22-
- 'molecule/repos_**'
2314
pull_request:
2415
branches:
2516
- 'feature/**'
@@ -57,7 +48,7 @@ jobs:
5748
uses: actions/checkout@v4
5849

5950
- name: Set up Python 3.8
60-
uses: actions/setup-python@v4
51+
uses: actions/setup-python@v5
6152
with:
6253
python-version: 3.8
6354

.github/workflows/test_roles_pr.yml

+1-18
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,6 @@ on:
1313
- warning
1414
- debug
1515
pull_request:
16-
branches:
17-
- 'feature/**'
18-
- 'fix/**'
19-
- '!doc/**'
20-
paths:
21-
- 'roles/**'
22-
- '.github/workflows/test_roles_pr.yml'
23-
- 'molecule/elasticstack_default/**'
24-
push:
25-
branches:
26-
- 'feature/**'
27-
- 'fix/**'
28-
- '!doc/**'
29-
paths:
30-
- 'roles/**'
31-
- '.github/workflows/test_roles_pr.yml'
32-
- 'molecule/elasticstack_default/**'
3316
merge_group:
3417

3518
jobs:
@@ -63,7 +46,7 @@ jobs:
6346
uses: actions/checkout@v4
6447

6548
- name: Set up Python 3.8
66-
uses: actions/setup-python@v4
49+
uses: actions/setup-python@v5
6750
with:
6851
python-version: 3.8
6952

docs/role-elasticsearch.md

+13
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ Role Variables
3232
* *elasticsearch_check_calculation*: End play in checks (Default: `false`)
3333
* *elasticsearch_network_host*: You can configure multipe network addresses where the networking is bind to. You can assign IP addresses or interfaces by their names. You can also use elasticsearch internal variabels as it set as default. Example: `"_ens190_,_local_"` (Default: `"_local_,"_site_"`) (Optional; if not defined `default` is used)
3434

35+
* *elasticsearch_extra_config*: You can set additional configuration in YAML-notation as you would write in the `elasaticsearch.yml`. Example:
36+
37+
```YAML
38+
...
39+
elasticsearch_extra_config:
40+
xpack.security.authc.token.enabled: true
41+
42+
xpack.security.authc.realms:
43+
native.native1:
44+
order: 0
45+
enabled: true
46+
```
47+
3548
This variable activates a workaround to start on systems that have certain hardening measures active. See [Stackoverflow](https://stackoverflow.com/questions/47824643/unable-to-load-jna-native-support-library-elasticsearch-6-x/50371992#50371992) for details and logmessages to look for. **WARNING**: This will change your `/etc/sysconfig/elasticseach`or `/etc/default/elasticsearch` file and overwrite `ES_JAVA_OPTS`. See this [issue](https://github.com/netways/ansible-role-elasticsearch/issues/79) for details.
3649

3750
* *elasticsearch_jna_workaround*: Activate JNA workaround. (default: `false`)

molecule/beats_peculiar/converge.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
pattern: '^[[:space:]]+(at|\.{3})[[:space:]]+\b|^Caused by:'
1919
negate: false
2020
match: after
21+
fields:
22+
testfield: thisisatest
23+
testfield2: thisisanothertest
2124
elasticsearch_jna_workaround: true
2225
elasticsearch_disable_systemcallfilterchecks: true
2326
elasticstack_full_stack: false

molecule/beats_peculiar/verify.yml

+8
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@
2626
when:
2727
- beats_filebeat_version.stdout.find('8.4.1') == -1
2828
- elasticstack_release == 8
29+
30+
- name: Ensure field is set correctly
31+
ansible.builtin.lineinfile:
32+
dest: /etc/filebeat/filebeat.yml
33+
line: " testfield: thisisatest"
34+
check_mode: true
35+
register: _field
36+
failed_when: _field.changed

molecule/elasticstack_default/verify.yml

+1
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,4 @@
135135
success_msg: "'{{ item }}' was found in nodes.content"
136136
with_inventory_hostnames: all
137137
when: groups['elasticsearch'] | length > 1
138+

0 commit comments

Comments
 (0)