@@ -87,6 +87,11 @@ already logged in (e.g. ``ssh rocky@<ip>``, or ``ssh ubuntu@<ip>``).
8787 sudo apt -y install git tmux
8888 fi
8989
90+ # Install Python 3.12 on Rocky Linux 9
91+ if $(which dnf 2>/dev/null >/dev/null); then
92+ sudo dnf -y install python3.12
93+ fi
94+
9095 # Disable the firewall.
9196 sudo systemctl is-enabled firewalld && sudo systemctl stop firewalld && sudo systemctl disable firewalld
9297
@@ -96,7 +101,7 @@ already logged in (e.g. ``ssh rocky@<ip>``, or ``ssh ubuntu@<ip>``).
96101 sudo sed -i 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
97102 fi
98103
99- # Prevent sudo from making DNS queries.
104+ # Prevent sudo from performing DNS queries.
100105 echo 'Defaults !fqdn' | sudo tee /etc/sudoers.d/no-fqdn
101106
102107 # Optional: start a new tmux session in case we lose our connection.
@@ -106,10 +111,15 @@ already logged in (e.g. ``ssh rocky@<ip>``, or ``ssh ubuntu@<ip>``).
106111 cd
107112
108113 # Clone Beokay.
109- git clone https://github.com/stackhpc/beokay.git
114+ [[ -d beokay ]] || git clone https://github.com/stackhpc/beokay.git
110115
111116 # Use Beokay to bootstrap your control host.
112- [[ -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
117+ if $(which dnf 2>/dev/null >/dev/null); then
118+ PYTHON_ARG=" --python /usr/bin/python3.12"
119+ else
120+ PYTHON_ARG=""
121+ fi
122+ [[ -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
113123
114124 # Clone the Tenks repository.
115125 cd ~/deployment/src
0 commit comments