246 lines
9.8 KiB
JSON
246 lines
9.8 KiB
JSON
[{
|
|
"pk": 1,
|
|
"editable": {
|
|
"metadata": [
|
|
{
|
|
"fields": [
|
|
{
|
|
"type": "text",
|
|
"description": "Availability zone name",
|
|
"name": "az_name",
|
|
"label": "AZ name"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"description": "vCenter host or IP",
|
|
"name": "vcenter_host",
|
|
"label": "vCenter host"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"description": "vCenter username",
|
|
"name": "vcenter_username",
|
|
"label": "vCenter username"
|
|
},
|
|
{
|
|
"type": "password",
|
|
"description": "vCenter password",
|
|
"name": "vcenter_password",
|
|
"label": "vCenter password"
|
|
},
|
|
{
|
|
"type": "checkbox",
|
|
"name": "vcenter_security_disabled",
|
|
"label": "Bypass vCenter certificate verification"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"description": "File containing the trusted CA bundle that emitted vCenter server certificate. Even if CA bundle is not uploaded, certificate verification is turned on.",
|
|
"name": "vcenter_ca_file",
|
|
"label": "CA file",
|
|
"restrictions": [
|
|
{
|
|
"condition": "current_vcenter:vcenter_security_disabled == true",
|
|
"message": "Bypass vCenter certificate verification should be disabled."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"fields": [
|
|
{
|
|
"type": "text",
|
|
"description": "vSphere Cluster",
|
|
"name": "vsphere_cluster",
|
|
"label": "vSphere Cluster",
|
|
"regex": {
|
|
"source": "\\S",
|
|
"error": "Empty cluster"
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"description": "Service name",
|
|
"name": "service_name",
|
|
"label": "Service name"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"description": "Datastore regex",
|
|
"name": "datastore_regex",
|
|
"label": "Datastore regex"
|
|
},
|
|
{
|
|
"type": "select",
|
|
"description": "Target node for nova-compute service",
|
|
"name": "target_node",
|
|
"label": "Target node"
|
|
}
|
|
],
|
|
"type": "array",
|
|
"name": "nova_computes"
|
|
}
|
|
],
|
|
"type": "array",
|
|
"name": "availability_zones"
|
|
},
|
|
{
|
|
"fields": [
|
|
{
|
|
"type": "text",
|
|
"description": "VLAN interface",
|
|
"name": "esxi_vlan_interface",
|
|
"label": "VLAN interface"
|
|
}
|
|
],
|
|
"type": "object",
|
|
"name": "network"
|
|
},
|
|
{
|
|
"fields": [
|
|
{
|
|
"type": "text",
|
|
"description": "VCenter host or IP",
|
|
"name": "vcenter_host",
|
|
"label": "VCenter Host",
|
|
"regex": {
|
|
"source": "\\S",
|
|
"error": "Empty host"
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"description": "vCenter username",
|
|
"name": "vcenter_username",
|
|
"label": "vCenter username",
|
|
"regex": {
|
|
"source": "\\S",
|
|
"error": "Empty username"
|
|
}
|
|
},
|
|
{
|
|
"type": "password",
|
|
"description": "vCenter password",
|
|
"name": "vcenter_password",
|
|
"label": "vCenter password",
|
|
"regex": {
|
|
"source": "\\S",
|
|
"error": "Empty password"
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"description": "Datacenter",
|
|
"name": "datacenter",
|
|
"label": "Datacenter",
|
|
"regex": {
|
|
"source": "\\S",
|
|
"error": "Empty datacenter"
|
|
}
|
|
},
|
|
{
|
|
"type": "text",
|
|
"description": "Datastore",
|
|
"name": "datastore",
|
|
"label": "Datastore",
|
|
"regex": {
|
|
"source": "\\S",
|
|
"error": "Empty datastore"
|
|
}
|
|
},
|
|
{
|
|
"type": "checkbox",
|
|
"name": "vcenter_security_disabled",
|
|
"label": "Bypass vCenter certificate verification"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"description": "File containing the trusted CA bundle that emitted vCenter server certificate. Even if CA bundle is not uploaded, certificate verification is turned on.",
|
|
"name": "ca_file",
|
|
"label": "CA file",
|
|
"restrictions": [
|
|
{
|
|
"condition": "glance:vcenter_security_disabled == true",
|
|
"message": "Bypass vCenter certificate verification should be disabled."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"type": "object",
|
|
"name": "glance",
|
|
"restrictions": [
|
|
{
|
|
"action": "hide",
|
|
"condition": "settings:storage.images_vcenter.value == false or settings:common.use_vcenter.value == false"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"value": {
|
|
"availability_zones": [
|
|
{
|
|
"az_name": "Zone 1",
|
|
"vcenter_host": "1.2.3.4",
|
|
"vcenter_username": "admin",
|
|
"vcenter_password": "secret",
|
|
"vcenter_security_disabled": "true",
|
|
"vcenter_ca_file": "file_blob",
|
|
"nova_computes": [
|
|
{
|
|
"vsphere_cluster": "cluster1",
|
|
"service_name": "Compute 1",
|
|
"datastore_regex": "",
|
|
"target_node": {
|
|
"current": {
|
|
"id": "test_target_node"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"vsphere_cluster": "cluster2",
|
|
"service_name": "Compute 3",
|
|
"datastore_regex": "",
|
|
"target_node": {
|
|
"current": {
|
|
"id": "test_target_node"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"az_name": "Zone 2",
|
|
"vcenter_host": "1.2.3.6",
|
|
"vcenter_username": "user$",
|
|
"vcenter_password": "pass$word",
|
|
"vcenter_security_disabled": "true",
|
|
"vcenter_ca_file": "file_blob",
|
|
"nova_computes": [
|
|
{
|
|
"vsphere_cluster": "cluster1",
|
|
"service_name": "Compute 4",
|
|
"datastore_regex": "^openstack-[0-9]$"
|
|
},
|
|
{
|
|
"vsphere_cluster": "",
|
|
"service_name": "Compute 7",
|
|
"datastore_regex": ""
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"glance": {
|
|
"vcenter_host": "1.2.3.4",
|
|
"vcenter_username": "admin",
|
|
"vcenter_password": "secret",
|
|
"datacenter": "test_datacenter",
|
|
"datastore": "test_datastore",
|
|
"vcenter_security_disabled": "true",
|
|
"ca_file": "file_blob"
|
|
},
|
|
"network": {
|
|
"esxi_vlan_interface": "eth0"
|
|
}
|
|
}
|
|
}
|
|
}]
|