Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Contrail Feature Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

vCenter Integration for Contrail Release 5.0

date_range 16-Oct-23

This topic provides the steps for integrating Contrail Release 5.0 and microservices with VMware vCenter.

Prerequisites

Before starting the integration, prepare your system by performing the following steps.

content_copy zoom_out_map
yum update -y

yum install -y yum-plugin-priorities https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum install -y python-pip git gcc python-devel sshpass

yum install -y git

yum install ansible-2.3.2.0

pip install pyvmomi

Set Up vCenter Server

Set up your vCenter server with parameters defining such things as the data center, cluster, DVSwitches, ContrailVM, and the like.

Use the following to get the Ansible Deployer with Contrail playbooks.

  1. From Juniper Networks, download Ansible Deployer (contrail-ansible-deployer-5.0.0-0.40.tgz) onto your provisioning host.

  2. Untar the tgz.

    - tar xvf contrail-ansible-deployer-5.0.0-0.40.tgz

  3. Copy the playbooks.

    cp playbooks/roles/vcenter/vars/vcenter_vars.yml.sample playbooks/roles/vcenter/vars/vcenter_vars.yml

  4. Prepare a file vcenter_vars.yml populated with vCenter server and ESXI hosts parameters. You can download the CentOS 7 + ESXi VM Host from Juniper Networks.

    For an example file, see https://github.com/Juniper/contrail-ansible-deployer/blob/master/playbooks/ roles/vcenter/vars/vcenter_vars.yml.sample.

  5. Run the Contrail vCenter playbook.

    ansible-playbook playbooks/vcenter.yml

Configure Contrail Parameters and Install

  1. Populate the file config/instances.yaml with Contrail roles.

    For an example file, see https://github.com/Juniper/contrail-ansible-deployer/blob /master/config/instances.yaml.vcenter_example.

  2. Install Contrail by running the Contrail playbooks.

    ansible-playbook -i inventory/ -e orchestrator=vcenter playbooks/configure_instances.yml

    ansible-playbook -i inventory/ -e orchestrator=vcenter playbooks/install_contrail.yml

footer-navigation