Skip to content

Commit d5059ac

Browse files
committed
wip
1 parent bc11018 commit d5059ac

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,31 @@ if sudo vgdisplay | grep -q lvm2; then
1818
sudo lvextend -L 4G /dev/rootvg/lv_tmp -r || true
1919
elif $KAYOBE_AIO_LVM; then
2020
echo "This environment is only designed for LVM images. If possible, switch to an LVM image.
21-
22-
While it is not recommended, the environment can be adapted by:
23-
Removing the lvm.yml group vars file in the ci-aio environment
24-
Unsetting controller_lvm_groups in controllers.yml in the ci-aio environment
25-
setting KAYOBE_AIO_LVM to false in this script."
21+
To ignore this warning, set KAYOBE_AIO_LVM to false in this script."
2622
exit 1
2723
fi
2824

2925
cat << EOF | sudo tee -a /etc/hosts
3026
10.205.3.187 pulp-server pulp-server.internal.sms-cloud
3127
EOF
3228

29+
if type dnf; then
30+
sudo dnf -y install git
31+
else
32+
sudo apt update
33+
sudo apt -y install gcc git libffi-dev python3-dev python-is-python3 python3-venv
34+
fi
35+
3336
cd $BASE_PATH
3437
mkdir -p src
3538
pushd src
3639
[[ -d kayobe ]] || git clone https://github.com/stackhpc/kayobe.git -b $KAYOBE_BRANCH
3740
[[ -d kayobe-config ]] || git clone https://github.com/stackhpc/stackhpc-kayobe-config kayobe-config -b $KAYOBE_CONFIG_BRANCH
3841
popd
3942

40-
if type dnf; then
41-
sudo dnf -y install git
42-
else
43-
sudo apt update
44-
sudo apt -y install gcc git libffi-dev python3-dev python-is-python3 python3-venv
43+
if ! sudo vgdisplay | grep -q lvm2; then
44+
rm $BASE_PATH/src/kayobe-config/etc/kayobe/environments/ci-aio/inventory/group_vars/controllers/lvm.yml
45+
sed -i -e '/controller_lvm_groups/,+2d' $BASE_PATH/src/kayobe-config/etc/kayobe/environments/ci-aio/controllers.yml
4546
fi
4647

4748
mkdir -p venvs

0 commit comments

Comments
 (0)