Skip to content

Commit a16a5c2

Browse files
committed
Add option to pause AIO deployment and edit config
1 parent 6e71ff1 commit a16a5c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

etc/kayobe/environments/ci-aio/automated-setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ BASE_PATH=~
66
KAYOBE_BRANCH=stackhpc/2023.1
77
KAYOBE_CONFIG_BRANCH=stackhpc/2023.1
88
KAYOBE_AIO_LVM=true
9+
KAYOBE_CONFIG_EDIT_PAUSE=false
910

1011
if [[ ! -f $BASE_PATH/vault-pw ]]; then
1112
echo "Vault password file not found at $BASE_PATH/vault-pw"
@@ -40,6 +41,12 @@ pushd src
4041
[[ -d kayobe-config ]] || git clone https://github.com/stackhpc/stackhpc-kayobe-config kayobe-config -b $KAYOBE_CONFIG_BRANCH
4142
popd
4243

44+
if $KAYOBE_CONFIG_EDIT_PAUSE; then
45+
echo "Deployment is paused, edit configuration in another terminal"
46+
echo "Press enter to continue"
47+
read -s
48+
fi
49+
4350
if ! sudo vgdisplay | grep -q lvm2; then
4451
rm $BASE_PATH/src/kayobe-config/etc/kayobe/environments/ci-aio/inventory/group_vars/controllers/lvm.yml
4552
sed -i -e '/controller_lvm_groups/,+2d' $BASE_PATH/src/kayobe-config/etc/kayobe/environments/ci-aio/controllers.yml

0 commit comments

Comments
 (0)