diff --git a/inventory/host_vars/koji01.phx2.fedoraproject.org b/inventory/host_vars/koji01.phx2.fedoraproject.org index 917a51916d..8a97105ac5 100644 --- a/inventory/host_vars/koji01.phx2.fedoraproject.org +++ b/inventory/host_vars/koji01.phx2.fedoraproject.org @@ -13,4 +13,4 @@ datacenter: phx2 # Keepalived variables keepalived_interface: eth0 keepalived_priority: 100 -keepalived_ipaddress: 10.5.125.64/24 +keepalived_ipaddress: 10.5.125.63/24 diff --git a/inventory/host_vars/koji02.phx2.fedoraproject.org b/inventory/host_vars/koji02.phx2.fedoraproject.org index 3e52eee530..a92e6c1d00 100644 --- a/inventory/host_vars/koji02.phx2.fedoraproject.org +++ b/inventory/host_vars/koji02.phx2.fedoraproject.org @@ -13,4 +13,4 @@ datacenter: phx2 # Keepalived variables keepalived_interface: eth0 keepalived_priority: 50 -keepalived_ipaddress: 10.5.125.64/24 +keepalived_ipaddress: 10.5.125.63/24 diff --git a/roles/keepalived/files/keepalived-notify.sh b/roles/keepalived/files/keepalived-notify.sh index f0643f4a0a..c1b0b5abb0 100644 --- a/roles/keepalived/files/keepalived-notify.sh +++ b/roles/keepalived/files/keepalived-notify.sh @@ -7,11 +7,10 @@ STATE=$3 # We are becoming master node # if [ $STATE == "MASTER" ]; then - # systemctl stop kojira - # rm -f /etc/cron.d/kojifix - # rm -f /etc/cron.d/koji-directory-cleanup - # rm -f /etc/cron.d/koji-gc - # rm -f /etc/cron.d/koji-prunesigs + systemctl stop kojira + rm -f /etc/cron.d/koji-directory-cleanup + rm -f /etc/cron.d/koji-gc + rm -f /etc/cron.d/koji-prunesigs logger "just became keepalived master" fi @@ -19,11 +18,10 @@ fi # We are becoming the backup node # if [ $STATE == "BACKUP" ]; then - # systemctl start kojira - # /etc/cron.d/kojifix - # rm -f /etc/cron.d/koji-directory-cleanup - # rm -f /etc/cron.d/koji-gc - # rm -f /etc/cron.d/koji-prunesigs + systemctl start kojira + cp -a /usr/local/etc/koji-directory-cleanup /etc/cron.d/koji-directory-cleanup + cp -a /usr/local/etc/koji-directory-cleanup /etc/cron.d/koji-gc + cp -a /usr/local/etc/koji-directory-cleanup /etc/cron.d/koji-prunesigs logger "just became keepalived backup" fi #