forked from elastic/ansible-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for these 3 bugs: elastic/elasticsearch#18406 elastic/elasticsearch#18272 https://bugs.openjdk.java.net/browse/JDK-8135224
- Loading branch information
Showing
7 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
#Add the elasticsearch user before installing from packages. | ||
- name: Ensure elasticsearch group is created | ||
group: | ||
state: present | ||
name: "{{ es_group }}" | ||
system: yes | ||
when: es_group_id is not defined | ||
|
||
- name: Ensure elasticsearch group is created with the correct id. | ||
group: | ||
state: present | ||
name: "{{ es_group }}" | ||
system: yes | ||
gid: "{{ es_group_id }}" | ||
when: es_group_id is defined | ||
|
||
- name: Ensure elasticsearch user is created | ||
user: | ||
state: present | ||
name: "{{ es_user }}" | ||
comment: elasticsearch system user | ||
system: yes | ||
createhome: no | ||
home: "{{ es_data_dirs }}" #WORKAROUND: https://github.com/elastic/elasticsearch/issues/18272 | ||
group: "{{ es_group }}" | ||
when: es_user_id is not defined | ||
|
||
- name: Ensure elasticsearch user is created with the correct id. | ||
user: | ||
state: present | ||
name: "{{ es_user }}" | ||
comment: elasticsearch system user | ||
system: yes | ||
createhome: no | ||
home: "{{ es_data_dirs }}" #WORKAROUND: https://github.com/elastic/elasticsearch/issues/18272 | ||
uid: "{{ es_user_id }}" | ||
group: "{{ es_group }}" | ||
when: es_user_id is defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters