Fuel UI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vmware_attributes.json 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. [{
  2. "pk": 1,
  3. "editable": {
  4. "metadata": [
  5. {
  6. "fields": [
  7. {
  8. "type": "text",
  9. "description": "Availability zone name",
  10. "name": "az_name",
  11. "label": "AZ name"
  12. },
  13. {
  14. "type": "text",
  15. "description": "vCenter host or IP",
  16. "name": "vcenter_host",
  17. "label": "vCenter host"
  18. },
  19. {
  20. "type": "text",
  21. "description": "vCenter username",
  22. "name": "vcenter_username",
  23. "label": "vCenter username"
  24. },
  25. {
  26. "type": "password",
  27. "description": "vCenter password",
  28. "name": "vcenter_password",
  29. "label": "vCenter password"
  30. },
  31. {
  32. "type": "checkbox",
  33. "name": "vcenter_security_disabled",
  34. "label": "Bypass vCenter certificate verification"
  35. },
  36. {
  37. "type": "file",
  38. "description": "File containing the trusted CA bundle that emitted vCenter server certificate. Even if CA bundle is not uploaded, certificate verification is turned on.",
  39. "name": "vcenter_ca_file",
  40. "label": "CA file",
  41. "restrictions": [
  42. {
  43. "condition": "current_vcenter:vcenter_security_disabled == true",
  44. "message": "Bypass vCenter certificate verification should be disabled."
  45. }
  46. ]
  47. },
  48. {
  49. "fields": [
  50. {
  51. "type": "text",
  52. "description": "vSphere Cluster",
  53. "name": "vsphere_cluster",
  54. "label": "vSphere Cluster",
  55. "regex": {
  56. "source": "\\S",
  57. "error": "Empty cluster"
  58. }
  59. },
  60. {
  61. "type": "text",
  62. "description": "Service name",
  63. "name": "service_name",
  64. "label": "Service name"
  65. },
  66. {
  67. "type": "text",
  68. "description": "Datastore regex",
  69. "name": "datastore_regex",
  70. "label": "Datastore regex"
  71. },
  72. {
  73. "type": "select",
  74. "description": "Target node for nova-compute service",
  75. "name": "target_node",
  76. "label": "Target node"
  77. }
  78. ],
  79. "type": "array",
  80. "name": "nova_computes"
  81. }
  82. ],
  83. "type": "array",
  84. "name": "availability_zones"
  85. },
  86. {
  87. "fields": [
  88. {
  89. "type": "text",
  90. "description": "VLAN interface",
  91. "name": "esxi_vlan_interface",
  92. "label": "VLAN interface"
  93. }
  94. ],
  95. "type": "object",
  96. "name": "network"
  97. },
  98. {
  99. "fields": [
  100. {
  101. "type": "text",
  102. "description": "VCenter host or IP",
  103. "name": "vcenter_host",
  104. "label": "VCenter Host",
  105. "regex": {
  106. "source": "\\S",
  107. "error": "Empty host"
  108. }
  109. },
  110. {
  111. "type": "text",
  112. "description": "vCenter username",
  113. "name": "vcenter_username",
  114. "label": "vCenter username",
  115. "regex": {
  116. "source": "\\S",
  117. "error": "Empty username"
  118. }
  119. },
  120. {
  121. "type": "password",
  122. "description": "vCenter password",
  123. "name": "vcenter_password",
  124. "label": "vCenter password",
  125. "regex": {
  126. "source": "\\S",
  127. "error": "Empty password"
  128. }
  129. },
  130. {
  131. "type": "text",
  132. "description": "Datacenter",
  133. "name": "datacenter",
  134. "label": "Datacenter",
  135. "regex": {
  136. "source": "\\S",
  137. "error": "Empty datacenter"
  138. }
  139. },
  140. {
  141. "type": "text",
  142. "description": "Datastore",
  143. "name": "datastore",
  144. "label": "Datastore",
  145. "regex": {
  146. "source": "\\S",
  147. "error": "Empty datastore"
  148. }
  149. },
  150. {
  151. "type": "checkbox",
  152. "name": "vcenter_security_disabled",
  153. "label": "Bypass vCenter certificate verification"
  154. },
  155. {
  156. "type": "file",
  157. "description": "File containing the trusted CA bundle that emitted vCenter server certificate. Even if CA bundle is not uploaded, certificate verification is turned on.",
  158. "name": "ca_file",
  159. "label": "CA file",
  160. "restrictions": [
  161. {
  162. "condition": "glance:vcenter_security_disabled == true",
  163. "message": "Bypass vCenter certificate verification should be disabled."
  164. }
  165. ]
  166. }
  167. ],
  168. "type": "object",
  169. "name": "glance",
  170. "restrictions": [
  171. {
  172. "action": "hide",
  173. "condition": "settings:storage.images_vcenter.value == false or settings:common.use_vcenter.value == false"
  174. }
  175. ]
  176. }
  177. ],
  178. "value": {
  179. "availability_zones": [
  180. {
  181. "az_name": "Zone 1",
  182. "vcenter_host": "1.2.3.4",
  183. "vcenter_username": "admin",
  184. "vcenter_password": "secret",
  185. "vcenter_security_disabled": "true",
  186. "vcenter_ca_file": "file_blob",
  187. "nova_computes": [
  188. {
  189. "vsphere_cluster": "cluster1",
  190. "service_name": "Compute 1",
  191. "datastore_regex": "",
  192. "target_node": {
  193. "current": {
  194. "id": "test_target_node"
  195. }
  196. }
  197. },
  198. {
  199. "vsphere_cluster": "cluster2",
  200. "service_name": "Compute 3",
  201. "datastore_regex": "",
  202. "target_node": {
  203. "current": {
  204. "id": "test_target_node"
  205. }
  206. }
  207. }
  208. ]
  209. },
  210. {
  211. "az_name": "Zone 2",
  212. "vcenter_host": "1.2.3.6",
  213. "vcenter_username": "user$",
  214. "vcenter_password": "pass$word",
  215. "vcenter_security_disabled": "true",
  216. "vcenter_ca_file": "file_blob",
  217. "nova_computes": [
  218. {
  219. "vsphere_cluster": "cluster1",
  220. "service_name": "Compute 4",
  221. "datastore_regex": "^openstack-[0-9]$"
  222. },
  223. {
  224. "vsphere_cluster": "",
  225. "service_name": "Compute 7",
  226. "datastore_regex": ""
  227. }
  228. ]
  229. }
  230. ],
  231. "glance": {
  232. "vcenter_host": "1.2.3.4",
  233. "vcenter_username": "admin",
  234. "vcenter_password": "secret",
  235. "datacenter": "test_datacenter",
  236. "datastore": "test_datastore",
  237. "vcenter_security_disabled": "true",
  238. "ca_file": "file_blob"
  239. },
  240. "network": {
  241. "esxi_vlan_interface": "eth0"
  242. }
  243. }
  244. }
  245. }]