Using Ansible to orchestrate OpenStack
As opposed to the various cloud services we just discussed, all of which are public clouds, OpenStack allows you to create your own (private) cloud.
Private clouds have the disadvantage that they expose more complexity to the administrator and the user, but this is the reason they can be customized to suit an organization perfectly.
Installation
The first step to being able to control an OpenStack cluster with Ansible is to ensure that openstacksdk
is installed.
To install openstacksdk
, you need to execute the following command:
$ pip install openstacksdk
We can now proceed to install the OpenStack collection:
$ ansible-galaxy collection install openstack.cloud
Now that you have installed openstacksdk
, you can start the authentication process.
Authentication
Since Ansible will use openstacksdk
as its backend, you will need to ensure that openstacksdk
is able to connect to the OpenStack cluster.
To do this, you can...