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.

30 lines
920B

  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. local_plugin:
  12. mysql:
  13. template: galera/files/collectd_mysql.conf
  14. socket: {{ server.socket }}
  15. password: {{ server.admin.password }}
  16. username: {{ server.admin.user }}
  17. mysql_status:
  18. template: galera/files/collectd_mysql_status.conf
  19. socket: {{ server.socket }}
  20. password: {{ server.admin.password }}
  21. username: {{ server.admin.user }}
  22. mysql_check:
  23. plugin: python
  24. template: galera/files/collectd_mysql_check.conf
  25. socket: {{ server.socket }}
  26. password: {{ server.admin.password }}
  27. username: {{ server.admin.user }}
  28. {%- endif %}