Skip to content

Commit 5c25fcf

Browse files
committed
Add --lvm option to the AIO automated setup script
1 parent 07ad532 commit 5c25fcf

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

doc/source/contributor/environments/ci-aio.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ Run the setup script:
4242
4343
./automated-setup.sh
4444
45+
Adding the ``--lvm`` flag will also automatically set the LVM configuration,
46+
which can be modified in
47+
``etc/kayobe/environments/ci-aio/inventory/group_vars/controllers/lvm.yml``. A
48+
minimum 30GB root disk is recommended.
49+
4550
The script will pull the current version of Kayobe and this repository, and
4651
then run the manual setup steps below. The script can be easily edited to use
4752
a different branch of Kayobe or this repository.

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ cat << EOF | sudo tee -a /etc/hosts
66
10.205.3.187 pulp-server pulp-server.internal.sms-cloud
77
EOF
88

9+
if [ "${1-0}" = "--lvm" ]; then
10+
sudo lvextend -L 2G /dev/rootvg/lv_home -r || true
11+
sudo lvextend -L 2.5G /dev/rootvg/lv_tmp -r || true
12+
fi
13+
914
BASE_PATH=~
1015
KAYOBE_BRANCH=stackhpc/yoga
1116
KAYOBE_CONFIG_BRANCH=stackhpc/yoga
@@ -16,10 +21,10 @@ if [[ ! -f $BASE_PATH/vault-pw ]]; then
1621
fi
1722

1823
if type dnf; then
19-
sudo dnf -y install git python3-virtualenv
24+
sudo dnf -y install git
2025
else
2126
sudo apt update
22-
sudo apt -y install gcc git libffi-dev python3-dev python-is-python3 python3-virtualenv
27+
sudo apt -y install gcc git libffi-dev python3-dev python-is-python3
2328
fi
2429

2530
cd $BASE_PATH
@@ -32,7 +37,7 @@ popd
3237
mkdir -p venvs
3338
pushd venvs
3439
if [[ ! -d kayobe ]]; then
35-
virtualenv kayobe
40+
python3 -m venv kayobe
3641
fi
3742
# NOTE: Virtualenv's activate and deactivate scripts reference an
3843
# unbound variable.
@@ -62,6 +67,8 @@ source kayobe-env --environment ci-aio
6267

6368
kayobe control host bootstrap
6469

70+
kayobe playbook run etc/kayobe/ansible/growroot.yml
71+
6572
kayobe overcloud host configure
6673

6774
kayobe overcloud service deploy

0 commit comments

Comments
 (0)