Saltstack Official Galera Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

21 rinda
610B

  1. {%- if pillar.galera.get('master',{}).get('enabled', False) %}
  2. {%- from "galera/map.jinja" import master with context %}
  3. {%- set service = master %}
  4. {%- endif %}
  5. {%- if pillar.galera.get('slave',{}).get('enabled', False) %}
  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