Browse Source

Allowing override to wsrep_on

Adding wsrep_on override to my.cnf
master
Nate Bohman 5 years ago
parent
commit
ecc4373ebe
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      galera/files/my.cnf

+ 4
- 0
galera/files/my.cnf View File

innodb_doublewrite=0 innodb_doublewrite=0
innodb_autoinc_lock_mode=2 innodb_autoinc_lock_mode=2
innodb_locks_unsafe_for_binlog=1 innodb_locks_unsafe_for_binlog=1
{%- if service.get('wsrep_enabled', False) %}
wsrep_on=OFF
{%- else %}
wsrep_on=ON wsrep_on=ON
{%- endif %}
{%- if service.get('members', []) |length > 1 %} {%- if service.get('members', []) |length > 1 %}
wsrep_cluster_address="gcomm://{% for member in service.members %}{{ member.host}}:4567{% if not loop.last %},{% endif %}{% endfor %}/?pc.wait_prim=no" wsrep_cluster_address="gcomm://{% for member in service.members %}{{ member.host}}:4567{% if not loop.last %},{% endif %}{% endfor %}/?pc.wait_prim=no"
{%- else %} {%- else %}

Loading…
Cancel
Save