Skip to content

Instantly share code, notes, and snippets.

@hpreyers
Last active December 30, 2019 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hpreyers/a48b4ea8b6f4a450fe91c5893901e83c to your computer and use it in GitHub Desktop.
Save hpreyers/a48b4ea8b6f4a450fe91c5893901e83c to your computer and use it in GitHub Desktop.
VCF Lab Constructor
{
"sddcId": "SSO-Site1-workflowspec-ems",
"workflowName": "workflowconfig/workflowspec-ems.json",
"esxiHostSpecs": [{
"serverId": "host-1",
"association": "m01-dc",
"ipAddressPrivate": {
"ipAddress": "10.0.0.101",
"gateway": "10.0.0.1",
"cidr": "10.0.0.0/24"
},
"esxiHostname": "esx01",
"esxiCredentials": {
"userName": "root",
"password": "VMware123!"
},
"vSwitch": "vSwitch0"
}, {
"serverId": "host-2",
"association": "m01-dc",
"ipAddressPrivate": {
"ipAddress": "10.0.0.102",
"gateway": "10.0.0.1",
"cidr": "10.0.0.0/24"
},
"esxiHostname": "esx02",
"esxiCredentials": {
"userName": "root",
"password": "VMware123!"
},
"vSwitch": "vSwitch0"
}, {
"serverId": "host-3",
"association": "m01-dc",
"ipAddressPrivate": {
"ipAddress": "10.0.0.103",
"gateway": "10.0.0.1",
"cidr": "10.0.0.0/24"
},
"esxiHostname": "esx03",
"esxiCredentials": {
"userName": "root",
"password": "VMware123!"
},
"vSwitch": "vSwitch0"
}, {
"serverId": "host-4",
"association": "m01-dc",
"ipAddressPrivate": {
"ipAddress": "10.0.0.104",
"gateway": "10.0.0.1",
"cidr": "10.0.0.0/24"
},
"esxiHostname": "esx04",
"esxiCredentials": {
"userName": "root",
"password": "VMware123!"
},
"vSwitch": "vSwitch0"
}],
"vCenterSpecs": [{
"vcenterId": "vcenter-1",
"licenseFile": "<Insert vCenter License>",
"vcenterIP": "10.0.0.12",
"vcenterHostname": "vcenter-1",
"rootVcenterPassword": "VMware123!",
"vmSize": "tiny"
}],
"clusterSpecs": [{
"clusterId": "mgmt01",
"vcenterId": "vcenter-1",
"clusterEvcMode": "",
"resourcePoolSpecs": [{
"name": "m01-sddc-mgmt",
"type": "management",
"cpuReservationPercentage": 0,
"cpuLimit": -1,
"cpuReservationExpandable": true,
"cpuSharesLevel": "high",
"cpuSharesValue": 0,
"memoryReservationPercentage": 0,
"memoryReservationMb": 16384,
"memoryLimit": -1,
"memoryReservationExpandable": true,
"memorySharesLevel": "normal",
"memorySharesValue": 0
}, {
"name": "m01-sddc-edge",
"type": "network",
"cpuReservationPercentage": 0,
"cpuLimit": -1,
"cpuReservationExpandable": true,
"cpuSharesLevel": "normal",
"cpuSharesValue": 0,
"memoryReservationPercentage": 0,
"memoryLimit": -1,
"memoryReservationExpandable": true,
"memorySharesLevel": "normal",
"memorySharesValue": 0
}, {
"name": "w01-user-edge",
"type": "compute",
"cpuReservationPercentage": 0,
"cpuLimit": -1,
"cpuReservationExpandable": true,
"cpuSharesLevel": "normal",
"cpuSharesValue": 0,
"memoryReservationPercentage": 0,
"memoryLimit": -1,
"memoryReservationExpandable": true,
"memorySharesLevel": "normal",
"memorySharesValue": 0
}, {
"name": "w01-user-vm",
"type": "compute",
"cpuReservationPercentage": 0,
"cpuLimit": -1,
"cpuReservationExpandable": true,
"cpuSharesLevel": "normal",
"cpuSharesValue": 0,
"memoryReservationPercentage": 0,
"memoryLimit": -1,
"memoryReservationExpandable": true,
"memorySharesLevel": "normal",
"memorySharesValue": 0
}]
}],
"dvsSpecs": [{
"dvsId": "m01-vds",
"vcenterId": "vcenter-1",
"vmnics": ["vmnic0", "vmnic1"],
"networks": ["MANAGEMENT", "VSAN", "VMOTION"],
"niocSpec": [{
"trafficType": "VSAN",
"value": "HIGH"
}, {
"trafficType": "VMOTION",
"value": "LOW"
}, {
"trafficType": "VDP",
"value": "LOW"
}, {
"trafficType": "VIRTUALMACHINE",
"value": "HIGH"
}, {
"trafficType": "MANAGEMENT",
"value": "NORMAL"
}, {
"trafficType": "NFS",
"value": "LOW"
}, {
"trafficType": "HBR",
"value": "LOW"
}, {
"trafficType": "FAULTTOLERANCE",
"value": "LOW"
}, {
"trafficType": "ISCSI",
"value": "LOW"
}],
"mtu": 8940
}],
"vsanSpecs": [{
"vsanId": "vsan-1",
"vcenterId": "vcenter-1",
"licenseFile": "<Insert VSAN License>",
"datastoreName": "VCF-VSAN",
"vsanDedup": false
}],
"nsxSpecs": [{
"nsxId": "nsx-1",
"vcenterId": "vcenter-1",
"nsxSegmentRangeBegin": "5000",
"nsxSegmentRangeEnd": "5200",
"transportZoneName": "transportzone-1",
"license": "<Insert NSX License>",
"nsxVXLANSpec": {
"VXLANCluster": "mgmt01",
"VXLANDvs": "m01-vds",
"VXLANVLANId": "0",
"VXLANMtu": "8940",
"subnetWithCidr": "",
"gateway": "",
"teamingPolicy": "LOADBALANCE_SRCID",
"vtepVmknicCount": 2,
"poolStartAddress": "",
"poolEndAddress": ""
},
"nsxManagerHostname": "nsx-1",
"nsxManagerIp": "10.0.0.13",
"controllerIPPoolSpec": {
"poolName": "SSO-Site1-mgmt01-nsxc01",
"startIp": "10.0.0.40",
"endIp": "10.0.0.42",
"prefix": "24",
"defaultGateway": "10.0.0.1"
},
"adminNsxManagerPassword": "VMware123!",
"privilegedNsxManagerPassword": "VMware123!",
"adminNsxControllerPassword": "VMware123!VMware123!",
"multicastRangeBegin": "239.1.0.0",
"multicastRangeEnd": "239.1.255.255"
}],
"networkSpecs": [{
"networkType": "MANAGEMENT",
"association": "m01-dc",
"subnet": "10.0.0.0/24",
"gateway": "10.0.0.1",
"VLANId": "0",
"mtu": "1500",
"activeUplinks": ["uplink1", "uplink2"],
"standbyUplinks": [],
"portGroupKey": "SDDC-DPortGroup-Mgmt"
}, {
"networkType": "VSAN",
"association": "m01-dc",
"subnet": "10.0.2.0/24",
"gateway": "10.0.2.1",
"includeIpAddressRanges": [{
"startIpAddress": "10.0.2.101",
"endIpAddress": "10.0.2.110"
}],
"VLANId": "0",
"mtu": "8940",
"activeUplinks": ["uplink1", "uplink2"],
"standbyUplinks": [],
"portGroupKey": "SDDC-DPortGroup-VSAN"
}, {
"networkType": "VMOTION",
"association": "m01-dc",
"subnet": "10.0.1.0/24",
"gateway": "10.0.1.1",
"includeIpAddressRanges": [{
"startIpAddress": "10.0.1.101",
"endIpAddress": "10.0.1.110"
}],
"VLANId": "0",
"mtu": "8940",
"activeUplinks": ["uplink1", "uplink2"],
"standbyUplinks": [],
"portGroupKey": "SDDC-DPortGroup-vMotion"
}],
"dnsSpec": {
"subdomain": "vcf.lab.local",
"domain": "vcf.lab.local",
"nameserver": "10.0.0.225"
},
"ntpSpec": {
"ntpServers": ["10.0.0.225"]
},
"sddcManagerSpec": {
"rootUserCredentials": {
"userName": "root",
"password": "VMware123!"
},
"hostname": "sddc-manager",
"secondUserCredentials": {
"userName": "vcf",
"password": "VMware123!"
},
"restApiCredentials": {
"userName": "admin",
"password": "VMware123!"
},
"ipAddress": "10.0.0.10",
"netmask": "255.255.255.0",
"vcenterId": "vcenter-1"
},
"pscSpecs": [{
"pscId": "psc-1",
"embeddedPsc": false,
"vcenterId": "vcenter-1",
"pscIp": "10.0.0.11",
"pscHostName": "psc-1",
"pscSsoSpec": {
"ssoDomain": "vsphere.local",
"isJoinSsoDomain": false,
"ssoSiteName": "SSO-Site1"
},
"rootPscPassword": "VMware123!",
"automationUserSsoUsername": "automation",
"automationUserSsoPassword": "VMware123!",
"adminUserSsoPassword": "VMware123!"
}, {
"pscId": "psc-2",
"embeddedPsc": false,
"vcenterId": "vcenter-1",
"pscIp": "10.0.0.14",
"pscHostName": "psc-2",
"pscSsoSpec": {
"ssoDomain": "vsphere.local",
"isJoinSsoDomain": false,
"ssoSiteName": "SSO-Site1",
"replicationPartner": "psc-1"
},
"rootPscPassword": "VMware123!",
"automationUserSsoUsername": "automation",
"automationUserSsoPassword": "VMware123!",
"adminUserSsoPassword": "VMware123!"
}],
"logInsightSpecs": [{
"vcenterId": "vcenter-1",
"adminPassword": "VMware123!",
"sshPassword": "VMware123!",
"loadBalancerHostname": "vrli",
"loadBalancerIpAddress": "10.0.0.15",
"license": "<Insert vRLI License>",
"logInsightNodeSpecs": [{
"ipAddress": "10.0.0.16",
"hostname": "vrli-1"
}, {
"ipAddress": "10.0.0.17",
"hostname": "vrli-2"
}, {
"ipAddress": "10.0.0.18",
"hostname": "vrli-3"
}],
"vmSize": "small"
}],
"managementPoolName": "NETPOOL-1",
"ceipEnabled": false,
"esxLicense": "<Insert ESXi License>",
"skipEsxThumbprintValidation": true,
"shouldCleanupVsan": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment