Navigation
Table of Contents
Guide That Contains This Content
[+] Expand All
[-] Collapse All
Sample JSON Configuration Files for vCenter with Containerized Contrail 4.0.1 and Greater
Starting with Contrail Release 4.0.1, vCenter can be used with containerized Contrail. This section presents sample JSON files that can be used to provision containerized Contrail using Server Manager. Be sure to replace parameters in the samples with values specific to your system.
Sample Image JSON for vCenter-Only Mode
{
"image": [
{
"category": "package",
"id": "contrail_vc_orch",
"path": "/root/contrail-vcenter-docker_4.0.1.0-50_trusty.tgz",
"type": "contrail-ubuntu-package",
"parameters": {"openstack_sku": "vcenter"},
"version": "4.0.1.0-50"
}
]
}
Sample Cluster JSON for vCenter-Only Mode
{
"cluster": [
{
"id": "cluster-esxi-new",
"parameters": {
"provision": {
"contrail": {
},
"contrail_4": {
"cloud_orchestrator": "vcenter",
"vcenter_servers": [
{
"server1": {
"datacenters": {
"kp_datacenter11": {
"datacenter_mtu": 1500,
"dv_switch_control_data": {
"dv_port_group_control_data": {
"dv_portgroup_name": "",
"number_of_ports": "",
"uplink": ""
},
"dv_switch_name": ""
},
"dv_switch_mgmt": {
"dv_port_group_mgmt": {
"dv_portgroup_name": "",
"number_of_ports": "",
"uplink": ""
},
"dv_switch_name": ""
},
"dv_switches": [
{
"clusternames": [
"kp_cluster11",
"kp_cluster12"
],
"dv_port_group": {
"dv_portgroup_name": "vm_dvs_pg2",
"number_of_ports": "3"
},
"dv_switch_name": "vm_dvs2",
}
]
}
},
"hostname": "10.xx.x.76",
"password": "<password>",
"username": "administrator@vsphere.local",
"validate_certs": false
}
}
]
}
}
}
}
]
}
Sample Server JSON for vCenter-Only Mode
{
"server": [
{
"cluster_id": "cluster-esxi-new",
"contrail": {
"control_data_interface": "eth1"
},
"domain": "contrail.juniper.net",
"host_name": "controller1-b7s28",
"id": "controller1-b7s28",
"network": {
"interfaces": [
{
"dhcp": true,
"ip_address": "10.xx.xx.59",
"mac_address": "00:50:56:a6:47:72",
"default_gateway": "10.xx.xx.254",
"name": "eth0"
},
{
"dhcp": false,
"ip_address": "192.xxx.xxx.101/24",
"mac_address": "00:50:56:a6:4d:38",
"name": "eth1"
}
],
"management_interface": "eth0"
},
"password": "<password>",
"roles": [
"contrail-controller",
"contrail-analytics",
"contrail-analyticsdb",
"contrail-vcenter-plugin"
]
},
{
"cluster_id": "cluster-esxi-new",
"contrail": {
"control_data_interface": "eth1"
},
"domain": "contrail.juniper.net",
"host_name": "computevm-b7s28",
"id": "computevm-b7s28",
"ip_address": "10.xx.xx.54",
"network": {
"interfaces": [
{
"dhcp": true,
"ip_address": "10.xx.xx.54",
"mac_address": "00:50:56:05:ba:ba",
"default_gateway": "10.xx.x.254",
"name": "eth0"
},
{
"dhcp": false,
"ip_address": "192.xxx.xxx.28/24",
"mac_address": "00:50:56:05:bb:bb",
"name": "eth1"
}
],
"management_interface": "eth0"
},
"parameters": {
"esxi_parameters": {
"cluster": "kp_cluster11",
"contrail_vm": {
"control_data_pg": "control_data",
"control_data_switch": "vSwitch1",
"mgmt_pg": "mgmt-pg",
"vmdk": "/root/vmdk/vmdk.tar"
},
"datacenter": "kp_datacenter11",
"datastore": "datastore1",
"name": "10.xx.xx.28",
"password": "<password>",
"username": "root",
"validate_certs": false,
"vcenter_server": "server1"
}
},
"password": "<password>",
"roles": [
"contrail-compute"
]
}
]
}
Sample Image JSON for vCenter-as-Compute Mode
{
"image": [
{
"category": "package",
"id": "contrail_vc_compute",
"path": "/root/contrail-cloud-docker_4.0.1.0-39-mitaka_trusty.tgz",
"type": "contrail-ubuntu-package",
"version": "4.0.1.0-39"
}
]
}
Sample Cluster JSON for vCenter-as-Compute Mode
{
"cluster": [
{
"id": "vcenter_five_node",
"parameters": {
"provision": {
"contrail": {
},
"contrail_4": {
"vcenter_servers": [
{
"server1": {
"datacenters": {
"vc_datacenter1": {
"datacenter_mtu": 1500,
"dv_switch_control_data": {
"dv_port_group_control_data": {
"dv_portgroup_name": "",
"number_of_ports": "",
"uplink": ""
},
"dv_switch_name": ""
},
"dv_switch_mgmt": {
"dv_port_group_mgmt": {
"dv_portgroup_name": "",
"number_of_ports": "",
"uplink": ""
},
"dv_switch_name": ""
},
"dv_switches": [
{
"clusternames": [
"vcenter1"
],
"dv_port_group": {
"dv_portgroup_name": "guest_dvs_pg",
"number_of_ports": "3"
},
"dv_switch_name": "guest_vm_dvs",
"vcenter_compute": "10.xx.x.205"
}
]
}
},
"hostname": "10.xx.x.76",
"password": "<password>",
"username": "administrator@vsphere.local",
"validate_certs": false
}
}
]
},
"openstack": {
}
}
}
}
]
}
Sample Server JSON for vCenter-as-Compute Mode
{
"server": [
{
"cluster_id": "vcenter_five_node",
"contrail": {},
"domain": "contrail.juniper.net",
"gateway": "10.xx.x.254",
"host_name": "nk-vm1",
"id": "nk-vm1",
"network": {
"interfaces": [
{
"default_gateway": "10.xx.x.254",
"ip_address": "10.xx.x.202/24",
"mac_address": "52:54:DE:AD:BD:A1",
"name": "eth1"
}
],
},
"password": "<password>",
"roles": [
"contrail-controller",
"contrail-analytics",
"contrail-analyticsdb"
]
},
{
"cluster_id": "vcenter_five_node",
"contrail": {},
"domain": "contrail.juniper.net",
"host_name": "nk-vm2",
"id": "nk-vm2",
"network": {
"interfaces": [
{
"default_gateway": "10.xx.x.254",
"ip_address": "10.xx.x.203/24",
"mac_address": "52:54:DE:AD:BD:A2",
"name": "eth1"
}
]
},
"password": "<password>",
"roles": [
"openstack"
]
},
{
"cluster_id": "vcenter_five_node",
"contrail": {},
"domain": "contrail.juniper.net",
"host_name": "nk-vm3",
"id": "nk-vm3",
"network": {
"interfaces": [
{
"default_gateway": "10.xx.x.254",
"ip_address": "10.xx.x.204/24",
"mac_address": "52:54:DE:AD:BD:A3",
"name": "eth1"
}
]
},
"password": "<password>",
"roles": [
"contrail-vcenter-plugin"
]
},
{
"cluster_id": "vcenter_five_node",
"contrail": {},
"domain": "contrail.juniper.net",
"host_name": "nk-vm4",
"id": "nk-vm4",
"network": {
"interfaces": [
{
"default_gateway": "10.xx.x.254",
"ip_address": "10.xx.x.205/24",
"mac_address": "52:54:DE:AD:BD:A4",
"name": "eth1"
}
]
},
"password": "<password>",
"roles": [
"contrail-vcenter-compute"
]
},
{
"cluster_id": "vcenter_five_node",
"contrail": {},
"domain": "contrail.juniper.net",
"host_name": "computevm-b7s27",
"id": "computevm-b7s27",
"network": {
"interfaces": [
{
"default_gateway": "10.xx.xx.254",
"dhcp": true,
"ip_address": "10.xx.xx.57/24",
"mac_address": "00:50:56:AD:BD:A5",
"name": "eth1"
}
]
},
"parameters": {
"esxi_parameters": {
"cluster": "vcenter1",
"contrail_vm": {
"mgmt_pg": "mgmt-pg",
"mode": "vcenter",
"vmdk": "/root/vmdk/vmdk.tar"
},
"datacenter": "vc_datacenter1",
"datastore": "datastore1",
"name": "10.xx.xx.27",
"password": "<password>",
"username": "root",
"validate_certs": false,
"vcenter_server": "server1"
}
},
"password": "<password>",
"roles": [
"contrail-compute"
]
}
]
}

