forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request elastic#75 from LaneCommunityCollege/optional_user
For elastic#36 - Add support for creating optional elasticsearch user and group
- Loading branch information
Showing
5 changed files
with
35 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
#Add the elasticsearch user before installing from packages. | ||
- name: Ensure optional elasticsearch group is created with the correct id. | ||
group: | ||
state: present | ||
name: "{{ es_group }}" | ||
system: yes | ||
gid: "{{ es_group_id }}" | ||
|
||
- name: Ensure optional elasticsearch user is created with the correct id. | ||
user: | ||
state: present | ||
name: "{{ es_user }}" | ||
comment: elasticsearch system user | ||
system: yes | ||
createhome: no | ||
uid: "{{ es_user_id }}" | ||
group: "{{ es_group }}" |
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 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