]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
setup_chacractl: Only ask shaman for chacra node if chacra_url's unset
authorDavid Galloway <david.galloway@ibm.com>
Wed, 20 Aug 2025 21:51:04 +0000 (17:51 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Fri, 12 Sep 2025 20:50:04 +0000 (16:50 -0400)
In a Release Build, we want to push the packages to chacra.ceph.com.
So we manually define chacra_url=https://chacra.ceph.com in ceph-source-dist
by writing it to dist/other_envvars

Signed-off-by: David Galloway <david.galloway@ibm.com>
scripts/setup_chacractl.sh

index 608a930d21c9397c48c2bcef4d7d0db206671776..25347efb06b2775e812d67ca8d72c0031156cd04 100755 (executable)
@@ -8,7 +8,9 @@ pipx ensurepath
 pipx install uv
 ~/.local/bin/uv tool install chacractl
 
-chacra_url=`curl -u $SHAMAN_API_USER:$SHAMAN_API_KEY https://shaman.ceph.com/api/nodes/next/`
+if [ -z "$chacra_url" ]; then
+  chacra_url=$(curl -u "$SHAMAN_API_USER:$SHAMAN_API_KEY" https://shaman.ceph.com/api/nodes/next/)
+fi
 cat > $HOME/.chacractl << EOF
 url = "$chacra_url"
 user = "$CHACRACTL_USER"