Masato Taruishi
taru****@users*****
2004年 10月 8日 (金) 15:40:20 JST
=================================================================== RCS file: ultrapossum/debian/ultrapossum-failover.config,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ultrapossum/debian/ultrapossum-failover.config 2004/09/28 14:22:53 1.7 +++ ultrapossum/debian/ultrapossum-failover.config 2004/10/08 06:40:20 1.8 @@ -43,7 +43,8 @@ slaves=`echo $SLAVES | sed 's/ /, /g'` db_subst ultrapossum-failover/backup slaves "$slaves" db_input high ultrapossum-failover/backup || true - db_input high ultrapossum-failover/virtual || true + db_input medium ultrapossum-failover/virtual_takeover || true + db_input medium ultrapossum-failover/virtual || true db_go || true db_get ultrapossum-failover/backup @@ -62,5 +63,6 @@ db_fset ultrapossum-failover/backup seen true db_fset ultrapossum-failover/virtual seen true +db_fset ultrapossum-failover/virtual_takeover seen true db_fset ultrapossum-failover/nfsdir seen true =================================================================== RCS file: ultrapossum/debian/ultrapossum-failover.postinst,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- ultrapossum/debian/ultrapossum-failover.postinst 2004/09/25 03:06:01 1.12 +++ ultrapossum/debian/ultrapossum-failover.postinst 2004/10/08 06:40:20 1.13 @@ -67,7 +67,17 @@ setfailoverconfig backup BACKUP setfailoverconfig nfsdir NFSDIR - setfailoverconfig virtual VIRTUAL + + db_get ultrapossum-failover/virtual_takeover + if test "x$RET" = "xtrue"; then + setfailoverconfig virtual VIRTUAL + fi + + ultrapossum-config set server MASTER=$MASTER + db_get ultrapossum-failover/virtual + if test "x$RET" != "x"; then + ultrapossum-config set . LDAPMASTER=$RET + fi db_stop eval `ultrapossum-config term` =================================================================== RCS file: ultrapossum/debian/ultrapossum-failover.prerm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- ultrapossum/debian/ultrapossum-failover.prerm 2004/10/07 12:06:49 1.2 +++ ultrapossum/debian/ultrapossum-failover.prerm 2004/10/08 06:40:20 1.3 @@ -21,6 +21,10 @@ upgrade|deconfigure|failed-upgrade) ;; remove) + eval `ultrapossum-config get LDAPMASTER MASTER` + if test "x$LDAPMASTER" = "x$MASTER"; then + ultrapossum-config remove server MASTER + fi if test -x /usr/share/ultrapossum/update.d/update-failover; then /usr/share/ultrapossum/update.d/update-failover remove fi =================================================================== RCS file: ultrapossum/debian/ultrapossum-failover.templates,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ultrapossum/debian/ultrapossum-failover.templates 2004/09/17 02:53:23 1.3 +++ ultrapossum/debian/ultrapossum-failover.templates 2004/10/08 06:40:20 1.4 @@ -12,6 +12,10 @@ Type: string _Description: What is the virtual IP address of the master service? +Template: ultrapossum-failover/virtual_takeover +Type: boolean +_Description: Does the backup server take over the virtual IP, too? + Template: ultrapossum-failover/nfsdir Type: string _Description: NFS directory