Saltstack Official Galera Formula
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- {%- if pillar.galera is defined %}
- {%- if pillar.galera.master is defined %}
- {%- from "galera/map.jinja" import master with context %}
- {%- set server = master %}
- {%- elif pillar.galera.slave is defined %}
- {%- from "galera/map.jinja" import slave with context %}
- {%- set server = slave %}
- {%- endif %}
- {%- endif %}
-
- {%- if server is defined %}
- agent:
- input:
- mysql:
- address: {{ server.socket }}
- username: {{ server.admin.user }}
- password: {{ server.admin.password }}
- tagexclude: [server]
- {%- endif %}
|