Openstack Ansible – Configure deployment

To prepare Ansible for playbook execution, certain files containing essential and optional configuration directives need to be adjusted to define the target environment. The configuration tasks involve:

1. Defining bridge interfaces and networks for the target host networking.
2. Specifying a list of target hosts where the software installation will take place.
3. Establishing virtual and physical network relationships for OpenStack Networking (neutron).
4. Setting passwords for all services.

Initial environment configuration

OpenStack-Ansible (OSA) depends on various files that are used to build an inventory for Ansible. Perform the following configuration on the deployment host.

1. cp  -r /opt/openstack-ansible/etc/openstack_deploy/*  /etc/openstack_deploy
2. cd /etc/openstack_deploy
3. cp openstack_user_config.yml.example openstack_user_config.yml
4. Review the openstack_user_config.yml file and make changes to the deployment of your OpenStack environment.

The openstack_user_config.yml file is responsible for configuring the hosts that will run the containers and services deployed by OpenStack-Ansible. This configuration file includes sections like shared-infra_hosts, which designates hosts for running containers of essential shared services such as databases, Memcached, and RabbitMQ. Additional host types in the file are associated with different container types.

While certain services like glance, heat, horizon, and nova-infra are not individually listed in the example file, they are encompassed within the os-infra hosts. If desired, you can specify image-hosts or dashboard-hosts to achieve specific scaling patterns.

Installing additional services

To install additional services, the files in etc/openstack_deploy/conf.d provide examples showing the correct host groups to use. To add another service, add the host group, allocate hosts to it, and then execute the playbooks.

Configuring service credentials

Configure credentials for each service in the /etc/openstack_deploy/user_secrets.yml file.  The keystone_auth_admin_password option configures the admin tenant password for both the OpenStack API and Dashboard access.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top