From edee3c4fc2ba0c674c8a49846b74eee6c561c7b8 Mon Sep 17 00:00:00 2001 From: Dvir Naim <106969883+dvir-ms@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:29:21 +0300 Subject: [PATCH 1/2] Update sapcon-sentinel-kickstart.sh --- Solutions/SAP/sapcon-sentinel-kickstart.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Solutions/SAP/sapcon-sentinel-kickstart.sh b/Solutions/SAP/sapcon-sentinel-kickstart.sh index fc7c5dcd35b..a06cd1548c4 100755 --- a/Solutions/SAP/sapcon-sentinel-kickstart.sh +++ b/Solutions/SAP/sapcon-sentinel-kickstart.sh @@ -118,6 +118,10 @@ while [[ $# -gt 0 ]]; do SID="$2" shift 2 ;; + --hostnetwork) + HOSTNETWORK=1 + shift 1 + ;; --clientnumber) CLIENTNUMBER="$2" shift 2 @@ -787,6 +791,10 @@ cmdparams=" --label Cloud=$CLOUD" # Generating SENTINEL_AGENT_GUID cmdparams+=" -e SENTINEL_AGENT_GUID=$(uuidgen) " +if [ $HOSTNETWORK ]; then + cmdparams+=" --network host" +fi + if [ "$MODE" == "kvmi" ]; then echo "Creating docker container for use with Azure Key vault and managed VM identity" sudo docker create -v "$sysfileloc":/sapcon-app/sapcon/config/system $cmdparams $sncline $httpproxyline --name "$containername" $dockerimage$tagver >/dev/null From 01e9d64812ce2b90a2c970a6c9e92ed17cc44db2 Mon Sep 17 00:00:00 2001 From: Dvir Naim <106969883+dvir-ms@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:30:25 +0300 Subject: [PATCH 2/2] Update sapcon-sentinel-kickstart.sh --- Solutions/SAP/sapcon-sentinel-kickstart.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Solutions/SAP/sapcon-sentinel-kickstart.sh b/Solutions/SAP/sapcon-sentinel-kickstart.sh index a06cd1548c4..64852cce9c6 100755 --- a/Solutions/SAP/sapcon-sentinel-kickstart.sh +++ b/Solutions/SAP/sapcon-sentinel-kickstart.sh @@ -269,6 +269,7 @@ while [[ $# -gt 0 ]]; do echo "--abapserver " echo "--systemnr " echo "--sid " + echo "--hostnetwork" echo "--clientnumber " echo "--messageserverhost " echo "--messageserverport "