Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 839bb6c

Browse files
authored
Merge branch 'main' into rolemappings
2 parents f2670fe + f653b3e commit 839bb6c

File tree

7 files changed

+49
-16
lines changed

7 files changed

+49
-16
lines changed

.kitchen.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ provisioner:
2222
extra_vars:
2323
es_major_version: "<%= ENV['VERSION'] %>"
2424
<% if ENV['VERSION'] == '6.x' %>
25-
es_version: '6.8.18'
25+
es_version: '6.8.23'
2626
<% end %>
2727
<% end %>
2828

29-
transport:
30-
max_ssh_sessions: 6
31-
3229
platforms:
3330
- name: ubuntu-14.04
3431
driver_config:

CHANGELOG.md

+36
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
## 7.16.3
4+
5+
* 7.16.3 as default version.
6+
* 6.8.23 as 6.x tested version
7+
8+
## 7.16.2
9+
10+
* 7.16.2 as default version.
11+
* 6.8.22 as 6.x tested version
12+
13+
## 7.16.1
14+
15+
* 7.16.1 as default version.
16+
* 6.8.21 as 6.x tested version
17+
18+
19+
| PR | Author | Title |
20+
| --- | --- | --- |
21+
| [#838](https://github.com/elastic/ansible-elasticsearch/pull/838) | [@mgreau](https://github.com/mgreau) | Add warning message about 8.x versions |
22+
| [#830](https://github.com/elastic/ansible-elasticsearch/pull/830) | [@bfontaine](https://github.com/bfontaine) | README: fix link to ES licensing change blog post |
23+
| [#831](https://github.com/elastic/ansible-elasticsearch/pull/831) | [@gaima8](https://github.com/gaima8) | command necessarily causes a change on each invocation breaking idempotency, wait_for accomplishes the same goal without the change |
24+
| [#833](https://github.com/elastic/ansible-elasticsearch/pull/833) | [@Pablohn26](https://github.com/Pablohn26) | Fix broken link |
25+
26+
27+
## 7.16.0
28+
29+
* 7.16.0 as default version.
30+
31+
32+
| PR | Author | Title |
33+
| --- | --- | --- |
34+
| [#835](https://github.com/elastic/ansible-elasticsearch/pull/835) | [@jmlrt](https://github.com/jmlrt) | Remove Ubuntu 14.04 support |
35+
| [#825](https://github.com/elastic/ansible-elasticsearch/pull/825) | [@darxriggs](https://github.com/darxriggs) | Remove duplicate entry from YAML |
36+
| [#828](https://github.com/elastic/ansible-elasticsearch/pull/828) | [@ygel](https://github.com/ygel) | Rename master - main |
37+
38+
339
## 7.15.1
440

541
* 7.15.1 as default version.

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
[![Build Status](https://img.shields.io/jenkins/s/https/devops-ci.elastic.co/job/elastic+ansible-elasticsearch+main.svg)](https://devops-ci.elastic.co/job/elastic+ansible-elasticsearch+main/)
33
[![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-elastic.elasticsearch-blue.svg)](https://galaxy.ansible.com/elastic/elasticsearch/)
44

5+
⚠️ **This Ansible role is being deprecated and will not be updated to support Elasticsearch 8.0.0 and the following versions.**
6+
57
**THIS ROLE IS FOR 7.x & 6.x**
68

79
Ansible role for 7.x/6.x Elasticsearch. Currently this works on Debian and RedHat based linux systems. Tested platforms are:
810

9-
* Ubuntu 14.04
1011
* Ubuntu 16.04
1112
* Ubuntu 18.04
1213
* Ubuntu 20.04
@@ -50,7 +51,7 @@ Starting from Elasticsearch 7.11.0, OSS distributions will no longer be provided
5051
This Ansible role will fail if `oss_version` is set to `true` and `es_version` is greater than
5152
`7.11.0`.
5253

53-
See [Doubling down on open, Part II](https://www.elastic.co/blog/licensing-change for more details)
54+
See [Doubling down on open, Part II](https://www.elastic.co/blog/licensing-change)
5455
blog post for more details.
5556

5657
#### How to override configuration files provided by ansible-elasticsearch?
@@ -69,7 +70,7 @@ This role uses the json_query filter which [requires jmespath](https://github.co
6970
Create your Ansible playbook with your own tasks, and include the role elasticsearch. You will have to have this repository accessible within the context of playbook.
7071

7172
```sh
72-
ansible-galaxy install elastic.elasticsearch,v7.15.1
73+
ansible-galaxy install elastic.elasticsearch,v7.16.3
7374
```
7475

7576
Then create your playbook yaml adding the role elasticsearch.
@@ -83,16 +84,16 @@ The simplest configuration therefore consists of:
8384
roles:
8485
- role: elastic.elasticsearch
8586
vars:
86-
es_version: 7.15.1
87+
es_version: 7.16.3
8788
```
8889
89-
The above installs Elasticsearch 7.15.1 in a single node 'node1' on the hosts 'localhost'.
90+
The above installs Elasticsearch 7.16.3 in a single node 'node1' on the hosts 'localhost'.
9091
9192
**Note**:
9293
Elasticsearch default version is described in [`es_version`](https://github.com/elastic/ansible-elasticsearch/blob/main/defaults/main.yml#L2). You can override this variable in your playbook to install another version.
93-
While we are testing this role only with one 7.x and one 6.x version (respectively [7.15.1](https://github.com/elastic/ansible-elasticsearch/blob/main/defaults/main.yml#L2) and [6.8.18](https://github.com/elastic/ansible-elasticsearch/blob/main/.kitchen.yml#L22) at the time of writing), this role should work with other versions also in most cases.
94+
While we are testing this role only with one 7.x and one 6.x version (respectively [7.16.3](https://github.com/elastic/ansible-elasticsearch/blob/main/defaults/main.yml#L2) and [6.8.23](https://github.com/elastic/ansible-elasticsearch/blob/main/.kitchen.yml#L22) at the time of writing), this role should work with other versions also in most cases.
9495

95-
This role also uses [Ansible tags](http://docs.ansible.com/ansible/playbooks_tags.html). Run your playbook with the `--list-tasks` flag for more information.
96+
This role also uses [Ansible tags](https://docs.ansible.com/ansible/2.9/user_guide/playbooks_tags.html). Run your playbook with the `--list-tasks` flag for more information.
9697

9798
## Testing
9899

@@ -449,7 +450,7 @@ In addition to es_config, the following parameters allow the customization of th
449450

450451
* ```oss_version``` Default `false`. Setting this to `true` will install the oss release of Elasticsearch (for version <7.11.0 only).
451452
* `es_xpack_trial` Default `false`. Setting this to `true` will start the 30-day trail once the cluster starts.
452-
* ```es_version``` (e.g. "7.15.1").
453+
* ```es_version``` (e.g. "7.16.3").
453454
* ```es_api_host``` The host name used for actions requiring HTTP e.g. installing templates. Defaults to "localhost".
454455
* ```es_api_port``` The port used for actions requiring HTTP e.g. installing templates. Defaults to 9200. **CHANGE IF THE HTTP PORT IS NOT 9200**
455456
* ```es_api_basic_auth_username``` The Elasticsearch username for making admin changing actions. Used if Security is enabled. Ensure this user is admin.

defaults/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
es_version: "7.15.1"
2+
es_version: "7.16.3"
33
es_use_snapshot_release: false
44
oss_version: false
55
es_package_name: "elasticsearch"

tasks/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383

8484
# If playbook runs too fast, Native commands could fail as the Native Realm is not yet up
8585
- name: Wait {{ es_api_sleep }} seconds for the Native Realm to come up
86-
command: "sleep {{ es_api_sleep }}"
86+
wait_for:
87+
timeout: "{{ es_api_sleep }}"
8788
when: manage_native_realm | bool
8889

8990
- name: activate-license

test/matrix-6x.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
OS:
2-
- ubuntu-1404
32
- ubuntu-1604
43
- ubuntu-1804
54
- ubuntu-2004

test/matrix.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
OS:
2-
- ubuntu-1404
32
- ubuntu-1604
43
- ubuntu-1804
54
- ubuntu-2004

0 commit comments

Comments
 (0)