Ales Komarek vor 9 Jahren
Ursprung
Commit
41517c42ea
1 geänderte Dateien mit 20 neuen und 5 gelöschten Zeilen
  1. +20
    -5
      galera/master.sls

+ 20
- 5
galera/master.sls Datei anzeigen

- require: - require:
- cmd: galera_bootstrap_set_root_password - cmd: galera_bootstrap_set_root_password


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


galera_bootstrap_init_config: galera_bootstrap_init_config:
file.managed: file.managed:
- name: {{ master.config }} - name: {{ master.config }}
- source: salt://galera/files/my.cnf
- source: salt://galera/files/my.cnf.init
- mode: 644 - mode: 644
- template: jinja - template: jinja
- require: - require:
- service: galera_bootstrap_stop_service - 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: galera_bootstrap_finish_flag:
file.touch: file.touch:
- require: - require:
- file: galera_bootstrap_init_config
- service: galera_bootstrap_start_service_final
- watch_in: - watch_in:
- service: galera_service
- file: galera_config


{%- endif %} {%- 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: galera_service:
service.running: service.running:
- name: {{ master.service }} - name: {{ master.service }}

Laden…
Abbrechen
Speichern