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.

1234567891011121314151617181920212223242526272829
  1. {% set engine = pillar.galera.get('engine', 'mysql') %}
  2. {%- if pillar.galera is defined %}
  3. include:
  4. {%- if pillar.galera.master is defined %}
  5. {%- if engine == 'mysql' %}
  6. - galera.master
  7. {%- else %}
  8. - galera.master_mariadb
  9. {%- endif %}
  10. {%- endif %}
  11. {%- if pillar.galera.slave is defined %}
  12. {%- if engine == 'mysql' %}
  13. - galera.slave
  14. {%- else %}
  15. - galera.slave_mariadb
  16. {%- endif %}
  17. {%- endif %}
  18. {%- if pillar.galera.clustercheck is defined %}
  19. - galera.clustercheck
  20. {%- endif %}
  21. {%- if pillar.galera.monitor is defined %}
  22. - galera.monitor
  23. {%- endif %}
  24. {%- endif %}
  25. {%- if pillar.mysql is defined %}
  26. {%- if pillar.mysql.server is defined %}
  27. - galera.server
  28. {%- endif %}
  29. {%- endif %}