vCenter Integration for Contrail Release 5.0
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.
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.
From Juniper Networks, download Ansible Deployer (
contrail-ansible-deployer-5.0.0-0.40.tgz
) onto your provisioning host.Untar the tgz.
- tar xvf contrail-ansible-deployer-5.0.0-0.40.tgz
Copy the playbooks.
cp playbooks/roles/vcenter/vars/vcenter_vars.yml.sample playbooks/roles/vcenter/vars/vcenter_vars.yml
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.
Run the Contrail vCenter playbook.
ansible-playbook playbooks/vcenter.yml
Configure Contrail Parameters and Install
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.
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