openstack-connection-schema.json 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. {
  2. "schemas": {
  3. "connection_info_schema": {
  4. "$schema": "http://cloudbase.it/coriolis/schemas/openstack_connection#",
  5. "oneOf": [
  6. {
  7. "type": "object",
  8. "properties": {
  9. "identity_api_version": {
  10. "type": "integer",
  11. "title": "Identity API Version",
  12. "description": "Version of the Identity API to use.",
  13. "minimum": 2,
  14. "maximum": 3,
  15. "default": 2
  16. },
  17. "username": {
  18. "type": "string",
  19. "title": "Username",
  20. "description": "The OpenStack user."
  21. },
  22. "password": {
  23. "type": "string",
  24. "title": "Password",
  25. "description": "The password for the OpenStack user."
  26. },
  27. "project_name": {
  28. "type": "string",
  29. "title": "Project Name",
  30. "description": "Name of the project/tenant for the OpenStack user."
  31. },
  32. "user_domain_name": {
  33. "type": "string",
  34. "title": "User Domain Name",
  35. "description": "The name of the user domain."
  36. },
  37. "user_domain_id": {
  38. "type": "string",
  39. "title": "User Domain ID",
  40. "description": "The ID of the user domain."
  41. },
  42. "project_domain_name": {
  43. "type": "string",
  44. "title": "Project Domain Name",
  45. "description": "The name of the project domain."
  46. },
  47. "project_domain_id": {
  48. "type": "string",
  49. "title": "Project Domain ID",
  50. "description": "The ID of the project domain."
  51. },
  52. "auth_url": {
  53. "type": "string",
  54. "title": "Authentication URL",
  55. "description": "The full URL of the public endpoint of the authentication service (Keystone) for the OpenStack platform. Must include the port number as well as the API version path element. ('/v2.0' for Keystone v2 and '/v3' for Keystone v3)"
  56. },
  57. "glance_api_version": {
  58. "type": "integer",
  59. "title": "Glance API Version",
  60. "description": "The API used by the OpenStack Image Service.(Glance)",
  61. "minimum": 1,
  62. "maximum": 2,
  63. "default": 2
  64. },
  65. "allow_untrusted": {
  66. "type": "boolean",
  67. "title": "Allow Untrusted",
  68. "description": "Whether or not to accept HTTPS connections with self-signed or untrusted certificates when interacting with the APIs of both the authentication service (Keystone) as well the other non-Swift services.",
  69. "default": false
  70. },
  71. "allow_untrusted_swift": {
  72. "type": "boolean",
  73. "title": "Allow Untrusted Swift",
  74. "description": "Whether or not to accept HTTPS connections with self-signed or untrusted certificates when interacting with the API of the OpenStack's Object Storage Service. (Swift or RADOS Gateway) Only used when Replicating from a source OpenStack which has Cinder-backup configured to use Swift.",
  75. "default": false
  76. },
  77. "region_name": {
  78. "type": "string",
  79. "title": "Region Name",
  80. "description": "The name of the OpenStack region to use."
  81. },
  82. "nova_region_name": {
  83. "type": "string",
  84. "title": "Nova Region Name",
  85. "description": "The region name of the Openstack Compute Service (Nova)."
  86. },
  87. "neutron_region_name": {
  88. "type": "string",
  89. "title": "Neutron Region Name",
  90. "description": "The region name of the OpenStack Networking Service (Neutron)."
  91. },
  92. "glance_region_name": {
  93. "type": "string",
  94. "title": "Glance Region Name",
  95. "description": "The region name of the OpenStack Image Service (Glance)."
  96. },
  97. "cinder_region_name": {
  98. "type": "string",
  99. "title": "Cinder Region Name",
  100. "description": "The region name of the OpenStack Block Storage Service (Cinder)."
  101. },
  102. "swift_region_name": {
  103. "type": "string",
  104. "title": "Swift Region Name",
  105. "description": "The region name of the Openstack Object Storage Service(Swift or RADOS Gateway) Only used when Replicating from a source OpenStack which has Cinder-backup configured to use Swift/RADOS."
  106. },
  107. "interface_name": {
  108. "type": "string",
  109. "title": "Interface Name",
  110. "description": "The name of the interface to use for all services. If a specific interface is required for different services, please use the option afferent to each service."
  111. },
  112. "nova_interface_name": {
  113. "type": "string",
  114. "title": "Nova Interface Name",
  115. "description": "The interface name for the Openstack Compute Service (Nova)."
  116. },
  117. "neutron_interface_name": {
  118. "type": "string",
  119. "title": "Neutron Interface Name",
  120. "description": "The interface name of the OpenStack Networking Service (Neutron)."
  121. },
  122. "glance_interface_name": {
  123. "type": "string",
  124. "title": "Glance Interface Name",
  125. "description": "The interface name of the OpenStack Image Service (Glance)."
  126. },
  127. "cinder_interface_name": {
  128. "type": "string",
  129. "title": "Cinder Interface Name",
  130. "description": "The interface name of the OpenStack Block Storage Service (Cinder)."
  131. },
  132. "swift_interface_name": {
  133. "type": "string",
  134. "title": "Swift Interface Name",
  135. "description": "The interface name of the Openstack Object Storage Service(Swift or RADOS Gateway) Only used when Replicating from a source OpenStack which has Cinder-backup configured to use Swift/RADOS."
  136. },
  137. "ceph_options": {
  138. "type": "object",
  139. "title": "Cinder Ceph Options",
  140. "descriptions": "If performing Ceph-based Replicas from a source OpenStack, the Ceph configuration file and credentials for a user with read-only access to the Ceph pool used by Cinder backups/snapshots must be provided. Coriolis must be able to connect to the source OpenStack's Ceph RADOS cluster by being able to reach at least one Ceph-monitor host. For the easiest setup possible, simply using the same credentials used by the Cinder service(s) will work.",
  141. "properties": {
  142. "ceph_conf_file": {
  143. "type": "string",
  144. "title": "Ceph Configuration File",
  145. "description": "Contents of the ceph.conf configuration file containing the list of monitor hosts to connect to. Ideally, this should be the same ceph.conf as used by the Cinder volume/backup service(s). The '[mon] keyring' path options are irrelevant, as the keyring which is passed through the 'Ceph Keyring File' option will be used."
  146. },
  147. "ceph_username": {
  148. "type": "string",
  149. "title": "Ceph Username",
  150. "description": "Ceph user to use when connecting to the source OpenStack's Ceph cluster. The user must have read-only access to the Ceph pool(s) used by the Cinder-backup and Cinder-volume service(s). Ideally, this should be the same user which the Cinder services themselves are using."
  151. },
  152. "ceph_keyring_file": {
  153. "type": "string",
  154. "title": "Ceph Keyring File",
  155. "description": "Ceph keyring file with access key(s) for the user given as the 'Ceph Username' for the cluster described in the given 'Ceph Configuration File'. Ideally, this should be the same keyring file as used by the Cinder service(s)."
  156. },
  157. "ceph_pool_name": {
  158. "type": "string",
  159. "title": "Ceph Pool Name",
  160. "description": "Name of the Ceph pool in which Cinder volume snapshots/backups are stored."
  161. },
  162. "ceph_cluster_name": {
  163. "type": "string",
  164. "title": "Ceph Cluster Name",
  165. "description": "Name of the Ceph cluster in which Cinder volume snapshots/backups are stored."
  166. },
  167. "ceph_connection_timeout": {
  168. "type": "integer",
  169. "title": "Ceph Connection Timeout",
  170. "description": "Integer number of seconds to wait on Ceph connections before timing out."
  171. }
  172. },
  173. "additionalProperties": false,
  174. "required": [
  175. "ceph_conf_file",
  176. "ceph_username",
  177. "ceph_keyring_file",
  178. "ceph_pool_name",
  179. "ceph_cluster_name"
  180. ]
  181. }
  182. },
  183. "required": [
  184. "identity_api_version",
  185. "username",
  186. "password",
  187. "project_name",
  188. "auth_url"
  189. ],
  190. "additionalProperties": false
  191. },
  192. {
  193. "type": "object",
  194. "properties": {
  195. "secret_ref": {
  196. "type": "string",
  197. "format": "uri"
  198. }
  199. },
  200. "required": ["secret_ref"],
  201. "additionalProperties": false
  202. },
  203. {
  204. "type": "object",
  205. "properties": {},
  206. "additionalProperties": false
  207. },
  208. {
  209. "type": "null"
  210. }
  211. ]
  212. }
  213. }
  214. }