diff --git a/install-aio-openstack.sh b/install-aio-openstack.sh index 99d1a75..fdf4505 100755 --- a/install-aio-openstack.sh +++ b/install-aio-openstack.sh @@ -27,31 +27,40 @@ dnf group install -y "Development Tools" dnf install -y git python3-devel libffi-devel gcc openssl-devel python3-libselinux dnf install -y python-devel python cmake dbus-devel python-pip pkgconfig glib2-devel dbus-tools dbus-daemon +dnf install -y python3.12 python3.12-devel python3.12-pip python3.12-pip-wheel + #update-alternatives --set python3 /usr/bin/python #apt install -y build-essential python3-dev python3 #apt install -y libdbus-1-dev cmake libspice-client-glib-2.0-dev #apt install -y python3-venv -python -m venv /opt/deploy +tar xvf selinux-dummy.tar + +python3.12 -m pip install ./selinux-dummy + +python3.12 -m venv /opt/deploy source /opt/deploy/bin/activate -python -m pip install -U pip +python3.12 -m pip install -U pip #pip install 'ansible>=4,<6' -pip install 'ansible-core>=2.16,<2.17.99' +#pip install 'ansible-core>=2.16,<2.17.99' #python -m pip install 'ansible-core>=2.16,<=2.17' +python3.12 -m pip install 'ansible-core>=2.18,<2.19' #pip install 'ansible>=7,<8' -python -m pip install ansible +python3.12 -m pip install 'ansible<12.0.0' #pip install ansible-core #pip install ansible -python -m pip install dbus-python +python3.12 -m pip install dbus-python -python -m pip install docker +python3.12 -m pip install docker -python -m pip install selinux +#python3.12 -m pip install selinux + +#python3.12 -m pip install git+https://opendev.org/openstack/kolla-ansible@master +python3.12 -m pip install git+https://opendev.org/openstack/kolla-ansible@stable/2025.2 -python -m pip install git+https://opendev.org/openstack/kolla-ansible@master mkdir -p /etc/kolla @@ -63,7 +72,7 @@ cp /opt/deploy/share/kolla-ansible/ansible/inventory/all-in-one /opt/ source /opt/deploy/bin/activate -PYTHON=$(which python) +PYTHON=$(which python3.12) echo "${PYTHON}" @@ -84,12 +93,12 @@ sed -i -e 's@^\#kolla_base_distro: ".*@kolla_base_distro: "ubuntu"@g' \ /etc/kolla/globals.yml cd /opt && \ - kolla-ansible -i all-in-one bootstrap-servers && \ - kolla-ansible -i all-in-one prechecks && \ - kolla-ansible -i all-in-one deploy && - kolla-ansible -i all-in-one post-deploy + kolla-ansible bootstrap-servers -i ./all-in-one && \ + kolla-ansible prechecks -i ./all-in-one && \ + kolla-ansible deploy -i ./all-in-one && \ + kolla-ansible post-deploy -i ./all-in-one -pip install python-openstackclient +python3.12 -m pip install python-openstackclient grep keystone_admin_password /etc/kolla/passwords.yml diff --git a/selinux-dummy.tar b/selinux-dummy.tar new file mode 100644 index 0000000..5747374 Binary files /dev/null and b/selinux-dummy.tar differ