summaryrefslogtreecommitdiffstats
path: root/katrin.d/kaas-auto-gen.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-12-12 16:02:40 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-12-12 16:02:40 +0100
commitc083136d946224af62822e8a6585ad0d9bfdffce (patch)
treebbd3119e9468a0fbb586b1b49a5322b364c624ea /katrin.d/kaas-auto-gen.sh
parent83fccfa25f622fbbd41c19102648179c93f58df5 (diff)
downloadiperouter-master.tar.gz
iperouter-master.tar.bz2
iperouter-master.tar.xz
iperouter-master.zip
Generate also BORA servicesHEADmaster
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