Example Instances.yml for Contrail and Contrail Insights OpenStack Deployment
See Installing Contrail with OpenStack and Kolla Ansible and Contrail Insights Installation and Configuration for OpenStack for specific inventory file details:
The following items are part of the all section in the instances.yaml file for
Contrail Insights:
all: children: openstack_controller: hosts: <ip-address>: ansible_connection: ssh ansible_ssh_user: <ssh-user> ansible_sudo_pass: <sudo-password>
The following items are part of the vars section in the instances.yaml file for
Contrail Insights:
openstack_platform_enabled: true
##License must support Contrail and Openstack
appformix_license: /path/license-file.sig
contrail_cluster_name: 'Contrail_Cluster'
contrail_analytics_url: 'http://<contrail-analytics-api-server-ip-address>:8081'
contrail_config_url: 'http://<contrail-config-api-server-ip-address>:8082'
# Defaults from roles/appformix_defaults/defaults/main.yml are overwritten below
appformix_datamanager_port_http: "{{ (appformix_scale_setup_flag|bool) | ternary(28200, 8200) }}"
appformix_datamanager_port_https: "{{ (appformix_scale_setup_flag|bool) | ternary(28201, 8201) }}"
appformix_haproxy_datamanager_port_http: 8200
appformix_haproxy_datamanager_port_https: 8201
appformix_plugins: '{{ appformix_contrail_factory_plugins }} + {{ appformix_network_device_factory_plugins }}’Following is an example listing of the instances.yaml:
There is one instances.yaml file
for the Contrail and Contrail Insights combined installation.
#Contrail inventory section
provider_config:
bms:
ssh_pwd: <ssh-password>
ssh_user: <ssh-user>
ntpserver: <ntp-server-ip-address>
domainsuffix: local
instances:
bms1:
provider: bms
ip: <ip-address>
roles:
config_database:
config:
control:
analytics_database:
analytics:
webui:
vrouter:
openstack:
openstack_compute:
global_configuration:
CONTAINER_REGISTRY: <ci-repository-URL>:5000
REGISTRY_PRIVATE_INSECURE: True
contrail_configuration:
#UPGRADE_KERNEL: true
CONTRAIL_VERSION: <contrail-version>
#CONTRAIL_VERSION: latest
CLOUD_ORCHESTRATOR: openstack
VROUTER_GATEWAY: <gateway-ip-address>
RABBITMQ_NODE_PORT: 5673
PHYSICAL_INTERFACE: <interface-name>
AUTH_MODE: keystone
KEYSTONE_AUTH_HOST: <keystone-ip-address>
KEYSTONE_AUTH_URL_VERSION: /v3
CONFIG_NODEMGR__DEFAULTS__minimum_diskGB: 2
DATABASE_NODEMGR__DEFAULTS__minimum_diskGB: 2
kolla_config:
kolla_globals:
network_interface: <interface-name>
kolla_internal_vip_address: <ip-address>
contrail_api_interface_address: <ip-address>
enable_haproxy: no
enable_swift: no
kolla_passwords:
keystone_admin_password: <password>
# Contrail Insights inventory section
all:
children:
appformix_controller:
hosts:
<ip-address>:
ansible_connection: ssh
ansible_ssh_user: <ssh-user>
ansible_sudo_pass: <sudo-password>
openstack_controller:
hosts:
<ip-address>:
ansible_connection: ssh
ansible_ssh_user: <ssh-user>
ansible_sudo_pass: <sudo-password>
compute:
hosts:
#List IP addresses of Contrail roles to be monitored here
<<IP-addresses>>:
ansible_connection: ssh
ansible_ssh_user: <ssh-user>
ansible_sudo_pass: <sudo-password>
bare_host:
hosts:
<ip-address>:
ansible_connection: ssh
ansible_ssh_user: <ssh-user>
ansible_sudo_pass: <sudo-password>
#If host is local
<ip-address>:
ansible_connection: local
vars:
appformix_docker_images:
- /opt/software/appformix/contrail-insights-platform-images-<version>.tar.gz
- /opt/software/appformix/contrail-insights-dependencies-images-<version>.tar.gz
- /opt/software/appformix/contrail-insights-network_device-images-<version>.tar.gz
- /opt/software/appformix/contrail-insights-openstack-images-<version>.tar.gz
openstack_platform_enabled: true
# appformix_license: /opt/software/openstack_appformix/<appformix-contrail-license-file>.sig
appformix_license: /opt/software/configs/contrail.sig
appformix_docker_registry: registry.appformix.com/
appformix_version: <version> #Must be 2.18.x or above
appformix_plugins: '{{ appformix_contrail_factory_plugins }} + {{ appformix_network_device_factory_plugins }} + {{ appformix_openstack_factory_plugins }}'
appformix_kvm_instance_discovery: true
# For enabling pre-requisites for package installation
appformix_network_device_monitoring_enabled: true
# For running the appformix-network-device-adapter
network_device_discovery_enabled: true
appformix_remote_host_monitoring_enabled: true
appformix_jti_network_device_monitoring_enabled: true
contrail_cluster_name: 'Contrail_Cluster'
contrail_analytics_url: 'http://<contrail-analytics-api-server-IP-address>:8081'
contrail_config_url: 'http://<contrail-config-api-server-IP-address>:8082'
# Defaults overwritten below were defined in roles/appformix_defaults/defaults/main.yml
appformix_datamanager_port_http: "{{ (appformix_scale_setup_flag|bool) | ternary(28200, 8200) }}"
appformix_datamanager_port_https: "{{ (appformix_scale_setup_flag|bool) | ternary(28201, 8201) }}"
appformix_haproxy_datamanager_port_http: 8200
appformix_haproxy_datamanager_port_https: 8201
Replace <contrail_version> with the correct contrail_container_tag value for your Contrail release. The respective contrail_container_tag values are listed in README Access to Contrail Registry 21XX.