In order for us to successfully install OpenStack using Ansible, we need to ensure that Ansible and any expected dependencies are installed on the deployment host. The OpenStack-Ansible project provides a handy script to do this for us, which is part of the version of OpenStack-Ansible we will be deploying.
Ensure that you are root
on the deployment host. In most cases, this is the first infrastructure controller node, infra01
.
At this point, we will be checking out the version of OpenStack-Ansible from GitHub.
To set up Ansible and its dependencies, follow these steps:
git
to check out the OpenStack-Ansible code from GitHub, so ensure that the following packages are installed (among other needed dependencies):apt update apt install git python-dev bridge-tools lsof lvm2 tcpdump build- essential ntp ntpdate python-dev libyaml-dev libpython2.7-dev libffi-dev libssl-dev python-crypto python-yaml
16.0.5
:git clone -b 16.0.5 https://github.com/openstack/openstack-ansible.git /opt/openstack-ansible
/opt/openstack-ansible/scripts
directory. Issue the following command to bootstrap the environment:cd /opt/openstack-ansible scripts/boot strap-ansible.sh
The OpenStack-Ansible project provides a handy script to ensure that Ansible and the right dependencies are installed on the deployment host. This script (bootstrap-ansible.sh
) lives in the scripts/
directory of the checked out OpenStack-Ansible code, so at this stage we need to grab the version we want to deploy using Git. Once we have the code, we can execute the script and wait for it to complete.
Visit https://docs.openstack.org/project-deploy-guide/openstack-ansible/latest for more information.
3.144.9.169