summaryrefslogtreecommitdiffstats
path: root/katrin.d/kaas-auto-gen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'katrin.d/kaas-auto-gen.sh')
-rwxr-xr-xkatrin.d/kaas-auto-gen.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/katrin.d/kaas-auto-gen.sh b/katrin.d/kaas-auto-gen.sh
index 2f3e635..fddb0e0 100755
--- a/katrin.d/kaas-auto-gen.sh
+++ b/katrin.d/kaas-auto-gen.sh
@@ -19,6 +19,18 @@ function gen {
done
}
-gen > kaas-auto.conf
+function bora {
+ sites=$(oc get route --all-namespaces | grep -P "^(bora) | grep kaas.kit.edu" | awk '{ print $3 }' | cut -d '.' -f 1) # "
+ for site in $sites; do
+ adei=$(echo $site | grep -P "^adei-")
+
+ url=""
+ [ -n "$adei" ] && url="/adei"
+
+ cat kaas-auto-bora.template | sed -re "s|@name@|$site|g; s|@url@|$url|g"
+ done
+}
+gen > kaas-auto.conf
+bora > kaas-auto-bora.conf