-
Notifications
You must be signed in to change notification settings - Fork 34
Vcenter provisioning using SM JSON files for VCenter Orchestrator Mode
kamleshp edited this page Sep 13, 2017
·
8 revisions
Below is the image json for vcenter-orchestrator mode provisioning:
NOTE: when using SM-lite for vcenter-only mode provisioning, "--sku ocata" option need to be specified for provision_containers.sh script.
{
"image": [
{
"category": "package",
"id": "contrail_vc_orch",
"path": "/root/contrail-vcenter-docker_4.0.1.0-34_trusty.tgz",
"type": "contrail-ubuntu-package",
"parameters": {"openstack_sku": "vcenter"},
"version": "4.0.1.0-34"
}
]
}
Below is the cluster json sample
{
"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.84.5.76",
"password": "Contrail123!",
"username": "administrator@vsphere.local",
"validate_certs": false
}
}
]
}
}
}
}
]
}
Below is the server json
{
"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.84.29.59",
"mac_address": "00:50:56:a6:47:72",
"default_gateway": "10.84.29.254",
"name": "eth0"
},
{
"dhcp": false,
"ip_address": "192.168.100.101/24",
"mac_address": "00:50:56:a6:4d:38",
"name": "eth1"
}
],
"management_interface": "eth0"
},
"password": "c0ntrail123",
"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.84.29.54",
"network": {
"interfaces": [
{
"dhcp": true,
"ip_address": "10.84.29.54",
"mac_address": "00:50:56:05:ba:ba",
"default_gateway": "10.84.5.254",
"name": "eth0"
},
{
"dhcp": false,
"ip_address": "192.168.100.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.84.29.28",
"password": "c0ntrail123",
"username": "root",
"validate_certs": false,
"vcenter_server": "server1"
}
},
"password": "c0ntrail123",
"roles": [
"contrail-compute"
]
}
]
}