Saltstack Official Galera Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920
  1. {%- if pillar.galera.master is defined %}
  2. {%- from "galera/map.jinja" import master with context %}
  3. {%- set service = master %}
  4. {%- endif %}
  5. {%- if pillar.galera.slave is defined %}
  6. {%- from "galera/map.jinja" import slave with context %}
  7. {%- set service = slave %}
  8. {%- endif %}
  9. [client]
  10. host = localhost
  11. user = debian-sys-maint
  12. password = {{ service.maintenance_password }}
  13. socket = /var/run/mysqld/mysqld.sock
  14. [mysql_upgrade]
  15. host = localhost
  16. user = debian-sys-maint
  17. password = {{ service.maintenance_password }}
  18. socket = /var/run/mysqld/mysqld.sock
  19. basedir = /usr