Merge pull request #795 from TuningYourCode/4.3
Fix to be able to set complex passwords with symbols too
This commit is contained in:
commit
9566eef645
@ -21,7 +21,7 @@ output.elasticsearch:
|
|||||||
|
|
||||||
{% if filebeat_security %}
|
{% if filebeat_security %}
|
||||||
username: {{ indexer_security_user }}
|
username: {{ indexer_security_user }}
|
||||||
password: {{ indexer_security_password }}
|
password: "{{ indexer_security_password }}"
|
||||||
protocol: https
|
protocol: https
|
||||||
ssl.certificate_authorities:
|
ssl.certificate_authorities:
|
||||||
- {{ filebeat_ssl_dir }}/root-ca.pem
|
- {{ filebeat_ssl_dir }}/root-ca.pem
|
||||||
|
|||||||
@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
- name: Configure opensearch.password in opensearch_dashboards.keystore
|
- name: Configure opensearch.password in opensearch_dashboards.keystore
|
||||||
shell: >-
|
shell: >-
|
||||||
echo {{ dashboard_password }} | /usr/share/wazuh-dashboard/bin/opensearch-dashboards-keystore --allow-root add -f --stdin opensearch.password
|
echo '{{ dashboard_password }}' | /usr/share/wazuh-dashboard/bin/opensearch-dashboards-keystore --allow-root add -f --stdin opensearch.password
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
become: yes
|
become: yes
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
- name: Hashing the custom admin password
|
- name: Hashing the custom admin password
|
||||||
shell: |
|
shell: |
|
||||||
export JAVA_HOME=/usr/share/wazuh-indexer/jdk
|
export JAVA_HOME=/usr/share/wazuh-indexer/jdk
|
||||||
{{ indexer_sec_plugin_tools_path }}/hash.sh -p {{ indexer_admin_password }}
|
{{ indexer_sec_plugin_tools_path }}/hash.sh -p '{{ indexer_admin_password }}'
|
||||||
register: indexer_admin_password_hashed
|
register: indexer_admin_password_hashed
|
||||||
no_log: '{{ indexer_nolog_sensible | bool }}'
|
no_log: '{{ indexer_nolog_sensible | bool }}'
|
||||||
|
|
||||||
@ -65,7 +65,7 @@
|
|||||||
- name: Hash the kibanaserver role/user pasword
|
- name: Hash the kibanaserver role/user pasword
|
||||||
shell: |
|
shell: |
|
||||||
export JAVA_HOME=/usr/share/wazuh-indexer/jdk
|
export JAVA_HOME=/usr/share/wazuh-indexer/jdk
|
||||||
{{ indexer_sec_plugin_tools_path }}/hash.sh -p {{ dashboard_password }}
|
{{ indexer_sec_plugin_tools_path }}/hash.sh -p '{{ dashboard_password }}'
|
||||||
register: indexer_kibanaserver_password_hashed
|
register: indexer_kibanaserver_password_hashed
|
||||||
no_log: '{{ indexer_nolog_sensible | bool }}'
|
no_log: '{{ indexer_nolog_sensible | bool }}'
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user