From 9adfd253a19c9ea71b2486b4a1618ea3652d4a3e Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Fri, 16 Aug 2024 08:15:34 +0200 Subject: [PATCH] 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. --- .../ansible/roles/keepalived/templates/keepalived.conf.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/provision-contest/ansible/roles/keepalived/templates/keepalived.conf.j2 b/provision-contest/ansible/roles/keepalived/templates/keepalived.conf.j2 index 18d87b04..617cdf6c 100644 --- a/provision-contest/ansible/roles/keepalived/templates/keepalived.conf.j2 +++ b/provision-contest/ansible/roles/keepalived/templates/keepalived.conf.j2 @@ -1,15 +1,15 @@ vrrp_instance lb_ipv4 { state MASTER - interface {{ KEEPALIVED_INTERFACE|default(ansible_facts['default_ipv4']['interface']) }} + interface {{ REPLICATION_INTERFACE|default(ansible_facts['default_ipv4']['interface']) }} use_vmac virtual_router_id 32 - priority {{KEEPALIVED_PRIORITY}} + priority {{ KEEPALIVED_PRIORITY }} virtual_ipaddress { - {{DOMSERVER_IP}} + {{ DOMSERVER_IP }} } authentication { auth_type PASS - auth_pass {{REPLICATION_PASSWORD}} + auth_pass {{ REPLICATION_PASSWORD }} } script_user domjudge domjudge notify_backup /home/domjudge/bin/trigger_alert.sh