Skip to content

Commit

Permalink
Simplify variables to be set
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vmcj committed Aug 25, 2024
1 parent e2af138 commit 9adfd25
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9adfd25

Please sign in to comment.