Skip to content

Commit b60d948

Browse files
authored
Merge pull request ceph#63852 from yuvalif/wip-yuval-multi-base-port
mstart: allow setting the base mon port from env variable
2 parents 9e6960d + 2704292 commit b60d948

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mstart.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ if [ $? -ne 0 ]; then
7474
fi
7575

7676
pos=`echo $pos | cut -d: -f1`
77-
base_port=$((6800+pos*20))
77+
78+
CEPH_BASE_PORT=${CEPH_BASE_PORT:-6800}
79+
80+
base_port=$((CEPH_BASE_PORT+pos*20))
7881
rgw_port=$((8000+pos*1))
7982

8083
[ -z "$VSTART_DEST" ] && export VSTART_DEST=$RUN_ROOT_PATH/$instance

0 commit comments

Comments
 (0)