Adjust for moving koji01/02 to production.

This commit is contained in:
Kevin Fenzi 2015-01-23 19:33:38 +00:00
parent 3659a1f0b3
commit 7902c62425
3 changed files with 10 additions and 12 deletions

View file

@ -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

View file

@ -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

View file

@ -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
#