Parcourir la source

narrow syntax for 'noservices', False

pr/24
Petr Michalec il y a 7 ans
Parent
révision
4f87309bce
Aucun compte lié à l'adresse e-mail de l'auteur
3 fichiers modifiés avec 13 ajouts et 13 suppressions
  1. +7
    -7
      galera/master.sls
  2. +1
    -1
      galera/server.sls
  3. +5
    -5
      galera/slave.sls

+ 7
- 7
galera/master.sls Voir le fichier

@@ -106,7 +106,7 @@ galera_pre_config:
- require_in:
- pkg: galera_packages

{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}

galera_init_start_service:
cmd.run:
@@ -130,7 +130,7 @@ mysql_bootstrap_update_maint_password:
galera_bootstrap_stop_service:
service.dead:
- name: {{ master.service }}
{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}
- require:
- cmd: mysql_bootstrap_update_maint_password
{%- endif %}
@@ -143,12 +143,12 @@ galera_bootstrap_init_config:
- source: salt://galera/files/my.cnf.init
- mode: 644
- template: jinja
{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}
- require:
- service: galera_bootstrap_stop_service
{%- endif %}

{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}

galera_bootstrap_start_service_final:
cmd.run:
@@ -162,7 +162,7 @@ galera_bootstrap_start_service_final:
galera_bootstrap_finish_flag:
file.touch:
- name: /var/lib/mysql/.galera_bootstrap
{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}
- require:
- cmd: galera_bootstrap_start_service_final
{%- endif %}
@@ -177,12 +177,12 @@ galera_config:
- source: salt://galera/files/my.cnf
- mode: 644
- template: jinja
{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}
- require_in:
- service: galera_service
{%- endif %}

{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}

galera_service:
service.running:

+ 1
- 1
galera/server.sls Voir le fichier

@@ -53,7 +53,7 @@ restore_mysql_database_{{ database_name }}:

{%- endfor %}

{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}
{%- for user in server.get('users', []) %}

mysql_user_{{ user.name }}_{{ user.host }}:

+ 5
- 5
galera/slave.sls Voir le fichier

@@ -106,7 +106,7 @@ galera_pre_config:
- require_in:
- pkg: galera_packages

{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}

galera_init_start_service:
cmd.run:
@@ -141,12 +141,12 @@ galera_bootstrap_init_config:
- source: salt://galera/files/my.cnf
- mode: 644
- template: jinja
{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}
- require:
- service: galera_bootstrap_stop_service
{%- endif %}

{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}

galera_bootstrap_start_service_final:
cmd.run:
@@ -172,12 +172,12 @@ galera_config:
- source: salt://galera/files/my.cnf
- mode: 644
- template: jinja
{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}
- require_in:
- service: galera_service
{%- endif %}

{%- if not grains.get('noservices','false')%}
{%- if not grains.get('noservices', False) %}

galera_service:
service.running:

Chargement…
Annuler
Enregistrer