Skip to content

Commit 9adfd25

Browse files
committed
Simplify variables to be set
We use the MySQL replication and keepalived together, if we ever have a usecase where we want to replicate the database and IP in a different way we can set that later.
1 parent e2af138 commit 9adfd25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

provision-contest/ansible/roles/keepalived/templates/keepalived.conf.j2

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
vrrp_instance lb_ipv4 {
22
state MASTER
3-
interface {{ KEEPALIVED_INTERFACE|default(ansible_facts['default_ipv4']['interface']) }}
3+
interface {{ REPLICATION_INTERFACE|default(ansible_facts['default_ipv4']['interface']) }}
44
use_vmac
55
virtual_router_id 32
6-
priority {{KEEPALIVED_PRIORITY}}
6+
priority {{ KEEPALIVED_PRIORITY }}
77
virtual_ipaddress {
8-
{{DOMSERVER_IP}}
8+
{{ DOMSERVER_IP }}
99
}
1010
authentication {
1111
auth_type PASS
12-
auth_pass {{REPLICATION_PASSWORD}}
12+
auth_pass {{ REPLICATION_PASSWORD }}
1313
}
1414
script_user domjudge domjudge
1515
notify_backup /home/domjudge/bin/trigger_alert.sh

0 commit comments

Comments
 (0)