#!/bin/bash -e
+if [ -e CMakeCache.txt ]; then
+ [ -z "$CEPH_BIN" ] && CEPH_BIN=bin
+fi
+
+if [ -z "$CEPHADM" ]; then
+ CEPHADM="${CEPH_BIN}/cephadm"
+fi
+
# fsid
if [ -e fsid ] ; then
fsid=`cat fsid`
fi
echo "fsid $fsid"
-sudo ../src/cephadm/cephadm rm-cluster --force --fsid $fsid
+sudo $CEPHADM rm-cluster --force --fsid $fsid
#!/bin/bash -e
+if [ -e CMakeCache.txt ]; then
+ [ -z "$CEPH_BIN" ] && CEPH_BIN=bin
+fi
+
+if [ -z "$CEPHADM" ]; then
+ CEPHADM="${CEPH_BIN}/cephadm"
+fi
+
image_base="quay.io/ceph-ci/ceph"
if which podman 2>&1 > /dev/null; then
sudo ../src/script/cpatch -t $image_base:$shortid
fi
-sudo ../src/cephadm/cephadm rm-cluster --force --fsid $fsid
-sudo ../src/cephadm/cephadm --image ${image_base}:${shortid} bootstrap \
+sudo $CEPHADM rm-cluster --force --fsid $fsid
+sudo $CEPHADM --image ${image_base}:${shortid} bootstrap \
--skip-pull \
--fsid $fsid \
--mon-addrv "[v2:$ip:$port]" \
echo 'keyring = ceph.client.admin.keyring' >> ceph.conf
# don't use repo digests; this implicitly does a pull and we don't want that
-bin/ceph config set mgr mgr/cephadm/use_repo_digest false
+${CEPH_BIN}/ceph config set mgr mgr/cephadm/use_repo_digest false
echo
echo "sudo ../src/script/cpatch -t $image_base:$shortid"