- user: root | - user: root | ||||
- group: root | - group: root | ||||
- mode: 750 | - mode: 750 | ||||
- makedirs: True | |||||
/usr/local/bin/mysql_clustercheck: | /usr/local/bin/mysql_clustercheck: | ||||
file.managed: | file.managed: |
{%- if pillar.get('mysql', {}).server is defined %} | {%- if pillar.get('mysql', {}).server is defined %} | ||||
{%- from "mysql/map.jinja" import mysql_connection_args as connection %} | |||||
{%- from "mysql/map.jinja" import mysql_connection_args as connection with context %} | |||||
{%- set server = pillar.mysql.server %} | {%- set server = pillar.mysql.server %} | ||||
{%- for database_name, database in server.get('database', {}).iteritems() %} | {%- for database_name, database in server.get('database', {}).iteritems() %} |
port: 4567 | port: 4567 | ||||
- host: 127.0.0.1 | - host: 127.0.0.1 | ||||
port: 4567 | port: 4567 | ||||
clustercheck: | |||||
enabled: True | |||||
user: clustercheck | |||||
password: password | |||||
available_when_donor: 1 | |||||
available_when_readonly: 1 | |||||
port: 9200 | |||||
clustercheck: | |||||
enabled: True | |||||
user: clustercheck | |||||
password: password | |||||
available_when_donor: 1 | |||||
available_when_readonly: 1 | |||||
port: 9200 | |||||
mysql: | mysql: | ||||
server: | server: | ||||
users: | users: |
port: 4567 | port: 4567 | ||||
- host: 127.0.0.1 | - host: 127.0.0.1 | ||||
port: 4567 | port: 4567 | ||||
clustercheck: | |||||
enabled: True | |||||
user: clustercheck | |||||
password: password | |||||
available_when_donor: 1 | |||||
available_when_readonly: 1 | |||||
port: 9200 | |||||
clustercheck: | |||||
enabled: True | |||||
user: clustercheck | |||||
password: password | |||||
available_when_donor: 1 | |||||
available_when_readonly: 1 | |||||
port: 9200 | |||||
mysql: | mysql: | ||||
server: | server: | ||||
users: | users: |