Skip to content

Commit

Permalink
angi: SAPHanaSR-upgrade-to-angi-demo crossport from classic
Browse files Browse the repository at this point in the history
  • Loading branch information
fmherschel committed May 6, 2024
1 parent 4aa2b6e commit 33b5e9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/SAPHanaSR-upgrade-to-angi-demo
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
# define parameters and functions
#
VERSION="2024-03-20 0.3"
VERSION="2024-05-06 0.3"
DRYRUN=yes
# TODO DRYRUN=no
EXE=$(basename $0)
Expand All @@ -23,7 +23,7 @@ ALL_RC=0
# TODO how to use templates from package SAPHanaSR-angi?
CIB_MSTTMP_ANG="#
primitive rsc_SAPHanaCon_@@sid@@_HDB@@ino@@ ocf:suse:SAPHanaController \
op start interval=0 timeout3600 \
op start interval=0 timeout=3600 \
op stop interval=0 timeout=3600 \
op promote interval=0 timeout=900 \
op demote interval=0 timeout=320 \
Expand All @@ -33,7 +33,7 @@ primitive rsc_SAPHanaCon_@@sid@@_HDB@@ino@@ ocf:suse:SAPHanaController \
DUPLICATE_PRIMARY_TIMEOUT=7200 AUTOMATED_REGISTER=true \
meta maintenance=true
#
clone @@mstnew@@ rsc_SAPHanaCon_@@sid@@_HDB@@ino@@ \
clone @@mstnew@@ rsc_SAPHanaCon_@@sid@@_HDB"@@ino@@" \
meta clone-node-max=1 promotable=true interleave=true maintenance=true
#
order ord_SAPHanaTop_first Optional: @@clntop@@ @@mstnew@@
Expand All @@ -50,8 +50,6 @@ primitive rsc_SAPHanaTop_@@sid@@_HDB@@ino@@ ocf:suse:SAPHanaTopology \
#
clone @@clntop@@ rsc_SAPHanaTop_@@sid@@_HDB@@ino@@ \
meta clone-node-max=1 interleave=true
#
order ord_SAPHanaTop_first Optional: @@clntop@@ @@mstnew@@
#"

CIB_CLNTMP_FIL="#
Expand Down Expand Up @@ -378,6 +376,7 @@ function f_add-saphanatop-angi() {
EXE=$(basename $0)
source /run/$EXE.variables
[ -z $sid ] && sid=${SID,,}
[ -z $CLNTOP ] && CLNTOP=${CLNNEW}
wait-idle
echo -n "echo \""
echo -n $CIB_CLNTMP_ANG |\
Expand All @@ -404,6 +403,7 @@ function f_add-saphanacon-angi() {
EXE=$(basename $0)
source /run/$EXE.variables
[ -z $sid ] && sid=${SID,,}
[ -z $RSCIPA ] && RSCIPA=rsc_ip_${SID}_HDB${INO}
wait-idle
echo -n "echo \""
echo -n $CIB_MSTTMP_ANG |\
Expand Down

0 comments on commit 33b5e9c

Please sign in to comment.