Change-Id: I88e3591eaa018406c48dd790ce946a9f783aa758revert-bumpto57-2
{%- if pillar.galera.master is defined %} | |||||
{%- if pillar.galera.get('master',{}).get('enabled', False) %} | |||||
{%- from "galera/map.jinja" import master with context %} | {%- from "galera/map.jinja" import master with context %} | ||||
{%- set service = master %} | {%- set service = master %} | ||||
{%- endif %} | {%- endif %} | ||||
{%- if pillar.galera.slave is defined %} | |||||
{%- if pillar.galera.get('slave',{}).get('enabled', False) %} | |||||
{%- from "galera/map.jinja" import slave with context %} | {%- from "galera/map.jinja" import slave with context %} | ||||
{%- set service = slave %} | {%- set service = slave %} | ||||
{%- endif %} | {%- endif %} |
# All files in this package is subject to the GPL v2 license | # All files in this package is subject to the GPL v2 license | ||||
# More information is in the COPYING file in the top directory of this package. | # More information is in the COPYING file in the top directory of this package. | ||||
# Copyright (C) 2011 severalnines.com | # Copyright (C) 2011 severalnines.com | ||||
{%- if pillar.galera.master is defined %} | |||||
{%- if pillar.galera.get('master',{}).get('enabled', False) %} | |||||
{%- from "galera/map.jinja" import master with context %} | {%- from "galera/map.jinja" import master with context %} | ||||
{%- set service = master %} | {%- set service = master %} | ||||
{%- endif %} | {%- endif %} | ||||
{%- if pillar.galera.slave is defined %} | |||||
{%- if pillar.galera.get('slave',{}).get('enabled', False) %} | |||||
{%- from "galera/map.jinja" import slave with context %} | {%- from "galera/map.jinja" import slave with context %} | ||||
{%- set service = slave %} | {%- set service = slave %} | ||||
{%- endif %} | {%- endif %} |
{%- if pillar.galera.master is defined %} | |||||
{%- if pillar.galera.get('master',{}).get('enabled', False) %} | |||||
{%- from "galera/map.jinja" import master with context %} | {%- from "galera/map.jinja" import master with context %} | ||||
{%- set service = master %} | {%- set service = master %} | ||||
{%- endif %} | {%- endif %} | ||||
[xtrabackup] | [xtrabackup] | ||||
parallel=4 | parallel=4 | ||||
user={{ service.admin.user }} | user={{ service.admin.user }} | ||||
password={{ service.admin.password }} | |||||
password={{ service.admin.password }} |
# All files in this package is subject to the GPL v2 license | # All files in this package is subject to the GPL v2 license | ||||
# More information is in the COPYING file in the top directory of this package. | # More information is in the COPYING file in the top directory of this package. | ||||
# Copyright (C) 2011 severalnines.com | # Copyright (C) 2011 severalnines.com | ||||
{%- if pillar.galera.master is defined %} | |||||
{%- if pillar.galera.get('master',{}).get('enabled', False) %} | |||||
{%- from "galera/map.jinja" import master with context %} | {%- from "galera/map.jinja" import master with context %} | ||||
{%- set service = master %} | {%- set service = master %} | ||||
{%- endif %} | {%- endif %} | ||||
{%- if pillar.galera.slave is defined %} | |||||
{%- if pillar.galera.get('slave',{}).get('enabled', False) %} | |||||
{%- from "galera/map.jinja" import slave with context %} | {%- from "galera/map.jinja" import slave with context %} | ||||
{%- set service = slave %} | {%- set service = slave %} | ||||
{%- endif %} | {%- endif %} |