Saltstack Official Galera Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
831B

  1. {%- from "galera/map.jinja" import master, slave with context %}
  2. {%- if master.get('enabled', False) %}
  3. {%- set service = master %}
  4. {%- elif slave.get('enabled', False) %}
  5. {%- set service = slave %}
  6. {%- endif %}
  7. {%- if service is defined %}
  8. local_plugin:
  9. mysql:
  10. template: galera/files/collectd_mysql.conf
  11. socket: {{ service.socket }}
  12. password: {{ service.admin.password }}
  13. username: {{ service.admin.user }}
  14. mysql_status:
  15. template: galera/files/collectd_mysql_status.conf
  16. socket: {{ service.socket }}
  17. password: {{ service.admin.password }}
  18. username: {{ service.admin.user }}
  19. mysql_check:
  20. plugin: python
  21. template: galera/files/collectd_mysql_check.conf
  22. socket: {{ service.socket }}
  23. password: {{ service.admin.password }}
  24. username: {{ service.admin.user }}
  25. {%- endif %}