Run the Playbooks
Refer to section “Install Contrail and Kolla requirements”
and section “Deploying contrail and Kolla containers”
in Installing Contrail with OpenStack
and Kolla Ansible and execute the ansible-playbook
.
Following are examples listing the Contrail play-book invocation
from the contrail-ansible-deployer
directory:
Configure Contrail OpenStack instances:
ansible-playbook -i inventory/ -e config_file=/path/instances.yaml -e orchestrator=openstack playbooks/configure_instances.yml (-vvv for debug)
Install OpenStack:
ansible-playbook -i inventory/ -e config_file=/path/instances.yaml playbooks/install_openstack.yml
Install Contrail:
ansible-playbook -i inventory/ -e config_file=/path/instances.yaml -e orchestrator=openstack playbooks/install_contrail.yml
Source the /etc/kolla/kolla-toolbox/admin-openrc.sh
file from the OpenStack controller node (/etc/kolla/kolla-toolbox/
admin-openrc.sh
) to the Contrail Insights Controller
to authenticate the OpenStack adapter to access admin privileges over
controller services. If the OpenStack control node is different from
the base host, either Secure Copy Protocol (SCP) the file over and
source it (for example, execute source /path/admin-openrc.sh
) or manually export the environment enumerated in /etc/kolla/kolla-toolbox/
admin-openrc.sh
by invoking export OS_USERNAME=admin
etc. and the remainder as listed in admin-openrc.sh
Also at this point, obtain a list of IP addresses to include
in the compute
section of Contrail Insights
in the instances.yaml
file. Refer to Compute monitoring: Listing IP addresses to monitor
in the compute
section of Contrail Insights
in the instances.yaml
file.
Refer to Installing AppFormix for
OpenStack and validate target configuration requirements
and inventory parameters for Contrail Insights Controller and Agent.
In place of -i inventory/
use -i /absolute-file-path/instances.yaml
.
Following is an example listing the Contrail Insights playbook
invocation from the appformix-2.18.x
directory
where appformix_openstack.yml
is located:
Install Contrail Insights:
ansible-playbook -i /path/instances.yaml appformix_openstack.yml (-vvv for debug)