Saltstack Official Galera Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 line
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