diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-12-12 16:02:40 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-12-12 16:02:40 +0100 |
commit | c083136d946224af62822e8a6585ad0d9bfdffce (patch) | |
tree | bbd3119e9468a0fbb586b1b49a5322b364c624ea /katrin.d/kaas-auto-gen.sh | |
parent | 83fccfa25f622fbbd41c19102648179c93f58df5 (diff) | |
download | iperouter-master.tar.gz iperouter-master.tar.bz2 iperouter-master.tar.xz iperouter-master.zip |
Diffstat (limited to 'katrin.d/kaas-auto-gen.sh')
-rwxr-xr-x | katrin.d/kaas-auto-gen.sh | 14 |
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 |