File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
etc/kayobe/environments/ci-aio Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -18,30 +18,31 @@ if sudo vgdisplay | grep -q lvm2; then
18
18
sudo lvextend -L 4G /dev/rootvg/lv_tmp -r || true
19
19
elif $KAYOBE_AIO_LVM ; then
20
20
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."
26
22
exit 1
27
23
fi
28
24
29
25
cat << EOF | sudo tee -a /etc/hosts
30
26
10.205.3.187 pulp-server pulp-server.internal.sms-cloud
31
27
EOF
32
28
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
+
33
36
cd $BASE_PATH
34
37
mkdir -p src
35
38
pushd src
36
39
[[ -d kayobe ]] || git clone https://github.com/stackhpc/kayobe.git -b $KAYOBE_BRANCH
37
40
[[ -d kayobe-config ]] || git clone https://github.com/stackhpc/stackhpc-kayobe-config kayobe-config -b $KAYOBE_CONFIG_BRANCH
38
41
popd
39
42
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
45
46
fi
46
47
47
48
mkdir -p venvs
You can’t perform that action at this time.
0 commit comments