During Galera bootstrap stage the following help scripts are created: /usr/local/sbin/galera_init.sh /usr/local/sbin/galera_bootstrap.sh Both contain mysql root password in a plain text. Set file permissions to 750 Change-Id: Ie0d5fa7f81ef7ccbd6b9def7a4f2141c32dcc4ee Relaited-prod: https://mirantis.jira.com/browse/PROD-15487master
galera_init_script: | galera_init_script: | ||||
file.managed: | file.managed: | ||||
- name: /usr/local/sbin/galera_init.sh | - name: /usr/local/sbin/galera_init.sh | ||||
- mode: 755 | |||||
- mode: 750 | |||||
- source: salt://galera/files/init_bootstrap.sh | - source: salt://galera/files/init_bootstrap.sh | ||||
- defaults: | - defaults: | ||||
service: {{ master|yaml }} | service: {{ master|yaml }} | ||||
galera_bootstrap_script: | galera_bootstrap_script: | ||||
file.managed: | file.managed: | ||||
- name: /usr/local/sbin/galera_bootstrap.sh | - name: /usr/local/sbin/galera_bootstrap.sh | ||||
- mode: 755 | |||||
- mode: 750 | |||||
- source: salt://galera/files/bootstrap.sh | - source: salt://galera/files/bootstrap.sh | ||||
- defaults: | - defaults: | ||||
service: {{ master|yaml }} | service: {{ master|yaml }} |
galera_init_script: | galera_init_script: | ||||
file.managed: | file.managed: | ||||
- name: /usr/local/sbin/galera_init.sh | - name: /usr/local/sbin/galera_init.sh | ||||
- mode: 755 | |||||
- mode: 750 | |||||
- source: salt://galera/files/init_bootstrap.sh | - source: salt://galera/files/init_bootstrap.sh | ||||
- defaults: | - defaults: | ||||
service: {{ slave|yaml }} | service: {{ slave|yaml }} | ||||
galera_bootstrap_script: | galera_bootstrap_script: | ||||
file.managed: | file.managed: | ||||
- name: /usr/local/sbin/galera_bootstrap.sh | - name: /usr/local/sbin/galera_bootstrap.sh | ||||
- mode: 755 | |||||
- mode: 750 | |||||
- defaults: | - defaults: | ||||
service: {{ slave|yaml }} | service: {{ slave|yaml }} | ||||
slave: True | slave: True |