Update and document unmanaged user vars

This commit is contained in:
pemontto 2019-10-28 14:25:52 +00:00
parent 43f7421d72
commit a2c4012197
No known key found for this signature in database
GPG key ID: EDCB93C3DA1B5DA9
4 changed files with 8 additions and 6 deletions

View file

@ -455,6 +455,8 @@ In addition to es_config, the following parameters allow the customization of th
* ```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** * ```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**
* ```es_api_basic_auth_username``` The Elasticsearch username for making admin changing actions. Used if Security is enabled. Ensure this user is admin. * ```es_api_basic_auth_username``` The Elasticsearch username for making admin changing actions. Used if Security is enabled. Ensure this user is admin.
* ```es_api_basic_auth_password``` The password associated with the user declared in `es_api_basic_auth_username` * ```es_api_basic_auth_password``` The password associated with the user declared in `es_api_basic_auth_username`
* `es_delete_unmanaged_file` Default `true`. Set to false to keep file realm users that have been added outside of ansible.
* `es_delete_unmanaged_native` Default `true`. Set to false to keep native realm users that have been added outside of ansible.
* ```es_start_service``` (true (default) or false) * ```es_start_service``` (true (default) or false)
* ```es_plugins_reinstall``` (true or false (default) ) * ```es_plugins_reinstall``` (true or false (default) )
* ```es_plugins``` an array of plugin definitions e.g.: * ```es_plugins``` an array of plugin definitions e.g.:

View file

@ -62,5 +62,5 @@ es_ssl_certificate_authority: ""
es_ssl_certificate_path: "{{ es_conf_dir }}/certs" es_ssl_certificate_path: "{{ es_conf_dir }}/certs"
es_ssl_verification_mode: "certificate" es_ssl_verification_mode: "certificate"
es_validate_certs: "yes" es_validate_certs: "yes"
delete_unmanaged_file: true es_delete_unmanaged_file: true
delete_unmanaged_native: true es_delete_unmanaged_native: true

View file

@ -33,7 +33,7 @@
- name: set fact users_to_remove - name: set fact users_to_remove
set_fact: users_to_remove={{ current_file_users.stdout_lines | difference (es_users.file.keys() | list) }} set_fact: users_to_remove={{ current_file_users.stdout_lines | difference (es_users.file.keys() | list) }}
when: manage_file_users and delete_unmanaged_file when: manage_file_users and es_delete_unmanaged_file
#Remove users #Remove users
- name: Remove Users - name: Remove Users
@ -49,7 +49,7 @@
- name: set fact users_to_add - name: set fact users_to_add
set_fact: users_to_add={{ es_users.file.keys() | list | difference (current_file_users.stdout_lines) }} set_fact: users_to_add={{ es_users.file.keys() | list | difference (current_file_users.stdout_lines) }}
when: manage_file_users and delete_unmanaged_file when: manage_file_users and es_delete_unmanaged_file
#Add users #Add users
- name: Add Users - name: Add Users

View file

@ -82,7 +82,7 @@
password: "{{es_api_basic_auth_password}}" password: "{{es_api_basic_auth_password}}"
force_basic_auth: yes force_basic_auth: yes
validate_certs: "{{ es_validate_certs }}" validate_certs: "{{ es_validate_certs }}"
when: manage_native_users and delete_unmanaged_native when: manage_native_users and es_delete_unmanaged_native
with_items: "{{ users_to_remove | default([]) }}" with_items: "{{ users_to_remove | default([]) }}"
- name: set fact users_to_ignore - name: set fact users_to_ignore
@ -178,7 +178,7 @@
password: "{{es_api_basic_auth_password}}" password: "{{es_api_basic_auth_password}}"
force_basic_auth: yes force_basic_auth: yes
validate_certs: "{{ es_validate_certs }}" validate_certs: "{{ es_validate_certs }}"
when: manage_native_roles and delete_unmanaged_native when: manage_native_roles and es_delete_unmanaged_native
with_items: "{{roles_to_remove | default([]) }}" with_items: "{{roles_to_remove | default([]) }}"
- name: set fact roles_to_modify - name: set fact roles_to_modify