소스 검색

fix

tags/1.0
Ales Komarek 9 년 전
부모
커밋
41517c42ea
1개의 변경된 파일20개의 추가작업 그리고 5개의 파일을 삭제
  1. +20
    -5
      galera/master.sls

+ 20
- 5
galera/master.sls 파일 보기

@@ -55,30 +55,45 @@ mysql_bootstrap_update_maint_password:
- require:
- cmd: galera_bootstrap_set_root_password

galera_packages_bootstrap_stop_service:
galera_bootstrap_stop_service:
service.dead:
- name: mysql
- name: {{ master.service }}
- require:
- cmd: mysql_bootstrap_update_maint_password

galera_bootstrap_init_config:
file.managed:
- name: {{ master.config }}
- source: salt://galera/files/my.cnf
- source: salt://galera/files/my.cnf.init
- mode: 644
- template: jinja
- require:
- service: galera_bootstrap_stop_service

galera_bootstrap_start_service_final:
service.running:
- name: {{ master.service }}
- require:
- file: galera_bootstrap_init_config

galera_bootstrap_finish_flag:
file.touch:
- require:
- file: galera_bootstrap_init_config
- service: galera_bootstrap_start_service_final
- watch_in:
- service: galera_service
- file: galera_config

{%- endif %}

galera_config:
file.managed:
- name: {{ master.config }}
- source: salt://galera/files/my.cnf
- mode: 644
- template: jinja
- require_in:
- service: galera_service

galera_service:
service.running:
- name: {{ master.service }}

Loading…
취소
저장