Change-Id: Ib8850b9251ac5165c25ab08d23a01db4a02fbdaerevert-bumpto57-2
- require: | - require: | ||||
- cmd: galera_bootstrap_set_root_password | - cmd: galera_bootstrap_set_root_password | ||||
galera_bootstrap_stop_service_pre: | |||||
cmd.run: | |||||
- name: mysqladmin -h localhost -u root -p{{ master.admin.password }} shutdown | |||||
{%- if not grains.get('noservices', False) %} | |||||
- ignore_retcode: true | |||||
- require: | |||||
- cmd: mysql_bootstrap_update_maint_password | |||||
{%- else %} | |||||
- onlyif: /bin/false | |||||
{%- endif %} | |||||
galera_bootstrap_stop_service: | galera_bootstrap_stop_service: | ||||
service.dead: | service.dead: | ||||
- name: {{ master.service }} | - name: {{ master.service }} | ||||
{%- if not grains.get('noservices', False) %} | {%- if not grains.get('noservices', False) %} | ||||
- require: | - require: | ||||
- cmd: galera_bootstrap_stop_service_pre | |||||
- cmd: mysql_bootstrap_update_maint_password | |||||
{%- else %} | {%- else %} | ||||
- onlyif: /bin/false | - onlyif: /bin/false | ||||
{%- endif %} | {%- endif %} |
- require: | - require: | ||||
- cmd: galera_bootstrap_set_root_password | - cmd: galera_bootstrap_set_root_password | ||||
galera_bootstrap_stop_service_pre: | |||||
cmd.run: | |||||
- name: mysqladmin -h localhost -u root -p{{ slave.admin.password }} shutdown | |||||
{%- if not grains.get('noservices', False) %} | |||||
- ignore_retcode: true | |||||
- require: | |||||
- cmd: mysql_bootstrap_update_maint_password | |||||
{%- else %} | |||||
- onlyif: /bin/false | |||||
{%- endif %} | |||||
galera_bootstrap_stop_service: | galera_bootstrap_stop_service: | ||||
service.dead: | service.dead: | ||||
- name: {{ slave.service }} | - name: {{ slave.service }} | ||||
{%- if not grains.get('noservices', False) %} | {%- if not grains.get('noservices', False) %} | ||||
- require: | - require: | ||||
- cmd: galera_bootstrap_stop_service_pre | |||||
- cmd: mysql_bootstrap_update_maint_password | |||||
{%- else %} | {%- else %} | ||||
- onlyif: /bin/false | - onlyif: /bin/false | ||||
{%- endif %} | {%- endif %} |