From 261f2755c1ea7645278ef944bbedf6d283baff07 Mon Sep 17 00:00:00 2001 From: sap-p1-2 Date: Sat, 27 Jul 2024 10:03:10 +0200 Subject: [PATCH] fixing sap-p1-2 scripts for paris2024 --- .../on-site-scripts/paris2024/sap-p1-2/tractrac-A | 7 +++++-- .../on-site-scripts/paris2024/sap-p1-2/tractrac-B | 7 +++++-- .../on-site-scripts/paris2024/sap-p1-2/tunnels-master | 8 +++++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/configuration/on-site-scripts/paris2024/sap-p1-2/tractrac-A b/configuration/on-site-scripts/paris2024/sap-p1-2/tractrac-A index 6597f49719e..8d574e1973d 100755 --- a/configuration/on-site-scripts/paris2024/sap-p1-2/tractrac-A +++ b/configuration/on-site-scripts/paris2024/sap-p1-2/tractrac-A @@ -1,5 +1,8 @@ #!/bin/bash -pkill -f .autossh.*stso +pkill -f .autossh.*paris.*.tractrac.com sleep 2 # Tunnel to localhost for TracTrac port forwards -AUTOSSH_LOGLEVEL=7 AUTOSSH_POLL=5 autossh -M 0 -f -A -N -L 4400:stso1:4400 -L 4401:stso1:4401 localhost +AUTOSSH_LOGLEVEL=7 AUTOSSH_POLL=5 autossh -M 0 -f -A -N \ + -L 4400:paris1.tractrac.com:4400 \ + -L 4401:paris1.tractrac.com:4401 \ + localhost diff --git a/configuration/on-site-scripts/paris2024/sap-p1-2/tractrac-B b/configuration/on-site-scripts/paris2024/sap-p1-2/tractrac-B index 8aaafaa978f..54c9eb6988c 100755 --- a/configuration/on-site-scripts/paris2024/sap-p1-2/tractrac-B +++ b/configuration/on-site-scripts/paris2024/sap-p1-2/tractrac-B @@ -1,5 +1,8 @@ #!/bin/bash -pkill -f .autossh.*stso +pkill -f .autossh.*paris.*.tractrac.com sleep 2 # Tunnel to localhost for TracTrac port forwards -AUTOSSH_LOGLEVEL=7 AUTOSSH_POLL=5 autossh -M 0 -f -A -N -L 4400:stso2:4400 -L 4401:stso2:4401 localhost +AUTOSSH_LOGLEVEL=7 AUTOSSH_POLL=5 autossh -M 0 -f -A -N \ + -L 4400:paris2.tractrac.com:4400 \ + -L 4401:paris2.tractrac.com:4401 \ + localhost diff --git a/configuration/on-site-scripts/paris2024/sap-p1-2/tunnels-master b/configuration/on-site-scripts/paris2024/sap-p1-2/tunnels-master index 9957effb26e..4256c1998d7 100755 --- a/configuration/on-site-scripts/paris2024/sap-p1-2/tunnels-master +++ b/configuration/on-site-scripts/paris2024/sap-p1-2/tunnels-master @@ -2,15 +2,17 @@ # # Assumes this (sap-p1-2) has been switched from failover to primary master; # We now need to map 5673 to the production RabbitMQ in the cloud -# (rabbit-eu-west-3.sapsailing.com). -# TracTrac is assumed to be running on "B" currently. +# (rabbit-eu-west-3.sapsailing.com). Furthermore, the reverse port forward +# for the cloud replicas to reach the on-site master must be established +# to sap-p1-2:8888. +# TracTrac is assumed to be running on "A" currently. # killall autossh # Tunnel to cloud MongoDB on port 10203; reverse tunnel to localhost:10202 for MongoDB AUTOSSH_LOGLEVEL=7 AUTOSSH_POLL=5 autossh -M 21504 -f -A -N \ -L 22443:sapsailing.com:443 \ -L 22222:sapsailing.com:22 \ - -R 9443:localhost:9443 \ + -R 9444:localhost:9443 \ -R '*:8888:localhost:8888' \ -L 443:security-service.sapsailing.com:443 \ -R 10202:localhost:10202 \