From 497fd9a45dae53a3d3782621368e8857e213de2f Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Wed, 28 Feb 2024 10:11:58 +0100 Subject: [PATCH] fix scripts --- .../provs/desktop/infrastructure/k3s-connect.sh | 2 +- .../provs/desktop/infrastructure/ssht.sh | 3 ++- .../provs/desktop/infrastructure/sshu.sh | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-connect.sh b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-connect.sh index b1ab76f..a52df87 100644 --- a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-connect.sh +++ b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/k3s-connect.sh @@ -8,7 +8,7 @@ function usage() { function main() { local cluster_name="${1}"; - local domain_name="${2:-meissa-gmbh.de}"; + local domain_name="${2:-meissa.de}"; /usr/local/bin/k3s-create-context.sh ${cluster_name} ${domain_name} kubectl config use-context ${cluster_name} diff --git a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/ssht.sh b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/ssht.sh index a451e4d..8e930b8 100644 --- a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/ssht.sh +++ b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/ssht.sh @@ -4,8 +4,9 @@ set -o noglob function main() { local cluster_name="${1}"; shift + local domain_name="${1:-meissa.de}"; shift - ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.meissa-gmbh.de -L 8002:localhost:8002 -L 6443:192.168.5.1:6443 + ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name} -L 8002:localhost:8002 -L 6443:192.168.5.1:6443 } main $1 diff --git a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/sshu.sh b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/sshu.sh index 9394548..2c88543 100644 --- a/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/sshu.sh +++ b/src/main/resources/org/domaindrivenarchitecture/provs/desktop/infrastructure/sshu.sh @@ -4,8 +4,9 @@ set -o noglob function main() { local cluster_name="${1}"; shift + local domain_name="${1:-meissa.de}"; shift - ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.meissa-gmbh.de + ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${cluster_name}.${domain_name} } main $1