Skip to content

Commit 6d7e7cf

Browse files
Don't hardcode mariadb service name, add garb log path
1 parent f46daf4 commit 6d7e7cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tasks/galera.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
- name: Restart initializer node to stop bootstrap and rejoin cluster
136136
when: mariadb.galera.initializer
137137
ansible.builtin.service:
138-
name: mariadb
138+
name: "{{ mariadb.service }}"
139139
state: restarted
140140

141141
- name: Wait that node has rejoined cluster

templates/rc.conf.d/garb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
garb_enable=YES
2-
garb_galera_nodes="{{ mariadb['my.cnf'].mysqld.wsrep_cluster_address | regex_replace('gcomm://', '') }}"
2+
garb_galera_nodes={{ mariadb['my.cnf'].mysqld.wsrep_cluster_address | regex_replace('gcomm://', '') }}
33
garb_galera_group={{ mariadb['my.cnf'].mysqld.wsrep_cluster_name }}
4+
garb_log_file=/var/log/garb/garb.log

0 commit comments

Comments
 (0)