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.

12345678910111213141516171819
  1. {%- if pillar.galera is defined %}
  2. {%- if pillar.galera.master is defined %}
  3. {%- from "galera/map.jinja" import master with context %}
  4. {%- set server = master %}
  5. {%- elif pillar.galera.slave is defined %}
  6. {%- from "galera/map.jinja" import slave with context %}
  7. {%- set server = slave %}
  8. {%- endif %}
  9. {%- endif %}
  10. {%- if server is defined %}
  11. agent:
  12. input:
  13. mysql:
  14. address: {{ server.socket }}
  15. username: {{ server.admin.user }}
  16. password: {{ server.admin.password }}
  17. tagexclude: [server]
  18. {%- endif %}