From 4bea91f47889a661aba0315f6bf0a60a2747807d Mon Sep 17 00:00:00 2001 From: Andrew Hill Date: Mon, 17 Nov 2025 13:12:40 +0000 Subject: [PATCH 1/3] remove ttysnoop --- templates/training-backup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/training-backup.yml b/templates/training-backup.yml index 48356e8..5f59970 100644 --- a/templates/training-backup.yml +++ b/templates/training-backup.yml @@ -6,5 +6,5 @@ stop_after: 0 scripts: ["install-px", "training-backup-cluster"] cluster: - id: 1 - scripts: ["wetty", "ttysnoop", "helm-backup", "training-backup-bastion"] + scripts: ["wetty", "helm-backup", "training-backup-bastion"] nodes: 4 From 061e06ed701a011c71b15c58349cd2d1c6b3bf53 Mon Sep 17 00:00:00 2001 From: Andrew Hill Date: Mon, 17 Nov 2025 13:13:32 +0000 Subject: [PATCH 2/3] improve motd --- scripts/training-backup-bastion | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/training-backup-bastion b/scripts/training-backup-bastion index a4ef101..877287f 100644 --- a/scripts/training-backup-bastion +++ b/scripts/training-backup-bastion @@ -1,17 +1,15 @@ # Configure user directories mv /assets/training-backup /etc/skel/training mkdir /etc/skel/.kube +ip=$(curl -s https://ipinfo.io/ip) +port=$(kubectl get svc -n central px-backup-ui -o jsonpath='{.spec.ports[0].nodePort}') cat <>/etc/skel/.bashrc alias k=kubectl complete -F __start_kubectl k +tty &>/dev/null && echo ========================================== && echo "PX-Backup UI: http://$ip:$port" && printf "MinIO endpoint: 192.168.1%.2d.90:30221\n" \$(id -nu | sed s/training//) && echo ========================================== PS1='\e[0;33m[\u@px-training \W]\$ \e[m' EOF -Create motd -ip=$(curl -s https://ipinfo.io/ip) -port=$(kubectl get svc -n central px-backup-ui -o jsonpath='{.spec.ports[0].nodePort}') -echo "PX-Backup UI: http://$ip:$port" >/etc/motd.d/training-backup - # Create training users kubectl exec -it -n central pxcentral-keycloak-0 -- /opt/keycloak/bin/kcadm.sh config credentials --user admin --password admin --server http://localhost:8080/auth --realm master for i in $(seq 1 $clusters); do From a9518cb01dbe8c4e7db62923b27dd141d7dd199f Mon Sep 17 00:00:00 2001 From: Andrew Hill Date: Mon, 8 Dec 2025 10:33:39 +0000 Subject: [PATCH 3/3] rewrite snoop --- templates/training-backup.yml | 2 +- templates/training.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/training-backup.yml b/templates/training-backup.yml index 5f59970..5a3d201 100644 --- a/templates/training-backup.yml +++ b/templates/training-backup.yml @@ -6,5 +6,5 @@ stop_after: 0 scripts: ["install-px", "training-backup-cluster"] cluster: - id: 1 - scripts: ["wetty", "helm-backup", "training-backup-bastion"] + scripts: ["wetty", "snoop", "helm-backup", "training-backup-bastion"] nodes: 4 diff --git a/templates/training.yml b/templates/training.yml index a0c2bde..e73210f 100644 --- a/templates/training.yml +++ b/templates/training.yml @@ -5,4 +5,4 @@ k8s_version: 1.33.5 stop_after: 0 cluster: - id: 1 - scripts: ["etcd", "wetty", "ttysnoop", "training-bastion"] + scripts: ["etcd", "wetty", "snoop", "training-bastion"]