Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix securityadmin.sh when copy_custom_security_configs is False #85

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion roles/linux/opensearch/tasks/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,21 @@
environment:
JAVA_HOME: "{{ os_home }}/jdk"
run_once: true
when: configuration.changed or copy_custom_security_configs
when: configuration.changed and copy_custom_security_configs

- name: Security Plugin configuration | Initialize the opensearch security index in opensearch
shell: >
bash {{ os_sec_plugin_tools_path }}/securityadmin.sh
-cacert {{ os_conf_dir }}/root-ca.pem
-cert {{ os_conf_dir }}/admin.pem
-key {{ os_conf_dir }}/admin.key
-f {{ os_sec_plugin_conf_path }}/internal_users.yml
-nhnv -icl
-h {{ hostvars[inventory_hostname]['ip'] }}
environment:
JAVA_HOME: "{{ os_home }}/jdk"
run_once: true
when: configuration.changed and not copy_custom_security_configs

- name: Security Plugin configuration | Cleanup local temporary directory
local_action:
Expand Down