Skip to content

Commit 6c127c7

Browse files
committed
Use Python 3.12 on Rocky Linux 9
This is needed once Kayobe starts requiring Python 3.10 or above [1]. This requires support for the new --python argument of beokay [2]. [1] https://review.opendev.org/c/openstack/kayobe/+/926639 [2] stackhpc/beokay#14
1 parent 4ca3c59 commit 6c127c7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

a-universe-from-nothing.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ else
1313
sudo apt -y install git tmux
1414
fi
1515

16+
# Install Python 3.12 on Rocky Linux 9
17+
if $(which dnf 2>/dev/null >/dev/null); then
18+
sudo dnf -y install python3.12
19+
fi
20+
1621
# Disable the firewall.
1722
sudo systemctl is-enabled firewalld && sudo systemctl stop firewalld && sudo systemctl disable firewalld
1823

@@ -32,7 +37,12 @@ cd
3237
[[ -d beokay ]] || git clone https://github.com/stackhpc/beokay.git -b master
3338

3439
# Use Beokay to bootstrap your control host.
35-
[[ -d deployment ]] || beokay/beokay.py create --base-path ~/deployment --kayobe-repo https://opendev.org/openstack/kayobe.git --kayobe-branch master --kayobe-config-repo https://github.com/stackhpc/a-universe-from-nothing.git --kayobe-config-branch master
40+
if $(which dnf 2>/dev/null >/dev/null); then
41+
PYTHON_ARG=" --python /usr/bin/python3.12"
42+
else
43+
PYTHON_ARG=""
44+
fi
45+
[[ -d deployment ]] || beokay/beokay.py create --base-path ~/deployment --kayobe-repo https://opendev.org/openstack/kayobe.git --kayobe-branch master --kayobe-config-repo https://github.com/stackhpc/a-universe-from-nothing.git --kayobe-config-branch master $PYTHON_ARG
3646

3747
# Clone the Tenks repository.
3848
cd ~/deployment/src

0 commit comments

Comments
 (0)