From: David Galloway Date: Wed, 20 Aug 2025 21:51:04 +0000 (-0400) Subject: setup_chacractl: Only ask shaman for chacra node if chacra_url's unset X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4f3fd188a4a3d9485ef74dead0fc404a126e5c9;p=ceph-build.git setup_chacractl: Only ask shaman for chacra node if chacra_url's unset 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 --- diff --git a/scripts/setup_chacractl.sh b/scripts/setup_chacractl.sh index 608a930d..25347efb 100755 --- a/scripts/setup_chacractl.sh +++ b/scripts/setup_chacractl.sh @@ -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"