upgraded aio script
This commit is contained in:
parent
9bf404697d
commit
852ce5e519
@ -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 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 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
|
#update-alternatives --set python3 /usr/bin/python
|
||||||
|
|
||||||
#apt install -y build-essential python3-dev python3
|
#apt install -y build-essential python3-dev python3
|
||||||
#apt install -y libdbus-1-dev cmake libspice-client-glib-2.0-dev
|
#apt install -y libdbus-1-dev cmake libspice-client-glib-2.0-dev
|
||||||
#apt install -y python3-venv
|
#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
|
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>=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'
|
#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'
|
#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-core
|
||||||
#pip install ansible
|
#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
|
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
|
source /opt/deploy/bin/activate
|
||||||
|
|
||||||
PYTHON=$(which python)
|
PYTHON=$(which python3.12)
|
||||||
|
|
||||||
echo "${PYTHON}"
|
echo "${PYTHON}"
|
||||||
|
|
||||||
@ -84,12 +93,12 @@ sed -i -e 's@^\#kolla_base_distro: ".*@kolla_base_distro: "ubuntu"@g' \
|
|||||||
/etc/kolla/globals.yml
|
/etc/kolla/globals.yml
|
||||||
|
|
||||||
cd /opt && \
|
cd /opt && \
|
||||||
kolla-ansible -i all-in-one bootstrap-servers && \
|
kolla-ansible bootstrap-servers -i ./all-in-one && \
|
||||||
kolla-ansible -i all-in-one prechecks && \
|
kolla-ansible prechecks -i ./all-in-one && \
|
||||||
kolla-ansible -i all-in-one deploy &&
|
kolla-ansible deploy -i ./all-in-one && \
|
||||||
kolla-ansible -i all-in-one post-deploy
|
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
|
grep keystone_admin_password /etc/kolla/passwords.yml
|
||||||
|
|
||||||
|
|||||||
BIN
selinux-dummy.tar
Normal file
BIN
selinux-dummy.tar
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user