questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. groups:
  2. - name: MariaDB Configuration
  3. description: Configure MariaDB
  4. - name: Network Configuration
  5. description: Configure Network for MariaDB
  6. - name: Storage Configuration
  7. description: Configure Storage for MariaDB
  8. - name: Labels Configuration
  9. description: Configure Labels for MariaDB
  10. - name: Resources Configuration
  11. description: Configure Resources for MariaDB
  12. questions:
  13. - variable: mariadb
  14. label: ""
  15. group: MariaDB Configuration
  16. schema:
  17. type: dict
  18. attrs:
  19. - variable: image_selector
  20. label: Image Selector
  21. description: The image to use for MariaDB.
  22. schema:
  23. type: string
  24. default: "image"
  25. required: true
  26. enum:
  27. - value: "image"
  28. description: MariaDB 11.7 Image
  29. - value: "v10_image"
  30. description: MariaDB 10.11 Image
  31. - variable: user
  32. label: User
  33. description: The database user.
  34. schema:
  35. type: string
  36. default: ""
  37. required: true
  38. - variable: password
  39. label: Password
  40. description: The database password.
  41. schema:
  42. type: string
  43. default: ""
  44. required: true
  45. private: true
  46. - variable: database
  47. label: Database
  48. description: The database name.
  49. schema:
  50. type: string
  51. default: ""
  52. required: true
  53. - variable: root_password
  54. label: Root Password
  55. description: The root database password.
  56. schema:
  57. type: string
  58. default: ""
  59. required: true
  60. private: true
  61. - variable: auto_upgrade
  62. label: Auto Upgrade
  63. description: |
  64. With this selected, the database will perform the upgrade automatically
  65. when a newer (major) version of MariaDB is selected.
  66. schema:
  67. type: boolean
  68. default: true
  69. - variable: additional_envs
  70. label: Additional Environment Variables
  71. schema:
  72. type: list
  73. default: []
  74. items:
  75. - variable: env
  76. label: Environment Variable
  77. schema:
  78. type: dict
  79. attrs:
  80. - variable: name
  81. label: Name
  82. schema:
  83. type: string
  84. required: true
  85. - variable: value
  86. label: Value
  87. schema:
  88. type: string
  89. - variable: network
  90. label: ""
  91. group: Network Configuration
  92. schema:
  93. type: dict
  94. attrs:
  95. - variable: tcp_port
  96. label: TCP Port
  97. schema:
  98. type: dict
  99. attrs:
  100. - variable: bind_mode
  101. label: Port Bind Mode
  102. description: |
  103. The port bind mode.</br>
  104. - Publish: The port will be published on the host for external access.</br>
  105. - Expose: The port will be exposed for inter-container communication.</br>
  106. - None: The port will not be exposed or published.</br>
  107. Note: If the Dockerfile defines an EXPOSE directive,
  108. the port will still be exposed for inter-container communication regardless of this setting.
  109. schema:
  110. type: string
  111. default: "published"
  112. enum:
  113. - value: "published"
  114. description: Publish port on the host for external access
  115. - value: "exposed"
  116. description: Expose port for inter-container communication
  117. - value: ""
  118. description: None
  119. - variable: port_number
  120. label: Port Number
  121. schema:
  122. type: int
  123. default: 3306
  124. min: 1
  125. max: 65535
  126. required: true
  127. - variable: host_ips
  128. label: Host IPs
  129. description: IPs on the host to bind this port
  130. schema:
  131. type: list
  132. show_if: [["bind_mode", "=", "published"]]
  133. default: []
  134. items:
  135. - variable: host_ip
  136. label: Host IP
  137. schema:
  138. type: string
  139. required: true
  140. $ref:
  141. - definitions/node_bind_ip
  142. - variable: storage
  143. label: ""
  144. group: Storage Configuration
  145. schema:
  146. type: dict
  147. attrs:
  148. - variable: data
  149. label: MariaDB Data Storage
  150. description: The path to store MariaDB Data.
  151. schema:
  152. type: dict
  153. attrs:
  154. - variable: type
  155. label: Type
  156. description: |
  157. ixVolume: Is dataset created automatically by the system.</br>
  158. Host Path: Is a path that already exists on the system.
  159. schema:
  160. type: string
  161. required: true
  162. default: "ix_volume"
  163. enum:
  164. - value: "host_path"
  165. description: Host Path (Path that already exists on the system)
  166. - value: "ix_volume"
  167. description: ixVolume (Dataset created automatically by the system)
  168. - variable: ix_volume_config
  169. label: ixVolume Configuration
  170. description: The configuration for the ixVolume dataset.
  171. schema:
  172. type: dict
  173. show_if: [["type", "=", "ix_volume"]]
  174. $ref:
  175. - "normalize/ix_volume"
  176. attrs:
  177. - variable: acl_enable
  178. label: Enable ACL
  179. description: Enable ACL for the storage.
  180. schema:
  181. type: boolean
  182. default: false
  183. - variable: dataset_name
  184. label: Dataset Name
  185. description: The name of the dataset to use for storage.
  186. schema:
  187. type: string
  188. required: true
  189. hidden: true
  190. default: "data"
  191. - variable: acl_entries
  192. label: ACL Configuration
  193. schema:
  194. type: dict
  195. show_if: [["acl_enable", "=", true]]
  196. attrs: []
  197. - variable: host_path_config
  198. label: Host Path Configuration
  199. schema:
  200. type: dict
  201. show_if: [["type", "=", "host_path"]]
  202. attrs:
  203. - variable: acl_enable
  204. label: Enable ACL
  205. description: Enable ACL for the storage.
  206. schema:
  207. type: boolean
  208. default: false
  209. - variable: acl
  210. label: ACL Configuration
  211. schema:
  212. type: dict
  213. show_if: [["acl_enable", "=", true]]
  214. attrs: []
  215. $ref:
  216. - "normalize/acl"
  217. - variable: path
  218. label: Host Path
  219. description: The host path to use for storage.
  220. schema:
  221. type: hostpath
  222. show_if: [["acl_enable", "=", false]]
  223. required: true
  224. - variable: additional_storage
  225. label: Additional Storage
  226. schema:
  227. type: list
  228. default: []
  229. items:
  230. - variable: storageEntry
  231. label: Storage Entry
  232. schema:
  233. type: dict
  234. attrs:
  235. - variable: type
  236. label: Type
  237. description: |
  238. ixVolume: Is dataset created automatically by the system.</br>
  239. Host Path: Is a path that already exists on the system.</br>
  240. SMB Share: Is a SMB share that is mounted to as a volume.
  241. schema:
  242. type: string
  243. required: true
  244. default: "ix_volume"
  245. enum:
  246. - value: "host_path"
  247. description: Host Path (Path that already exists on the system)
  248. - value: "ix_volume"
  249. description: ixVolume (Dataset created automatically by the system)
  250. - value: "cifs"
  251. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  252. - variable: read_only
  253. label: Read Only
  254. description: Mount the volume as read only.
  255. schema:
  256. type: boolean
  257. default: false
  258. - variable: mount_path
  259. label: Mount Path
  260. description: The path inside the container to mount the storage.
  261. schema:
  262. type: path
  263. required: true
  264. - variable: host_path_config
  265. label: Host Path Configuration
  266. schema:
  267. type: dict
  268. show_if: [["type", "=", "host_path"]]
  269. attrs:
  270. - variable: acl_enable
  271. label: Enable ACL
  272. description: Enable ACL for the storage.
  273. schema:
  274. type: boolean
  275. default: false
  276. - variable: acl
  277. label: ACL Configuration
  278. schema:
  279. type: dict
  280. show_if: [["acl_enable", "=", true]]
  281. attrs: []
  282. $ref:
  283. - "normalize/acl"
  284. - variable: path
  285. label: Host Path
  286. description: The host path to use for storage.
  287. schema:
  288. type: hostpath
  289. show_if: [["acl_enable", "=", false]]
  290. required: true
  291. - variable: ix_volume_config
  292. label: ixVolume Configuration
  293. description: The configuration for the ixVolume dataset.
  294. schema:
  295. type: dict
  296. show_if: [["type", "=", "ix_volume"]]
  297. $ref:
  298. - "normalize/ix_volume"
  299. attrs:
  300. - variable: acl_enable
  301. label: Enable ACL
  302. description: Enable ACL for the storage.
  303. schema:
  304. type: boolean
  305. default: false
  306. - variable: dataset_name
  307. label: Dataset Name
  308. description: The name of the dataset to use for storage.
  309. schema:
  310. type: string
  311. required: true
  312. default: "storage_entry"
  313. - variable: acl_entries
  314. label: ACL Configuration
  315. schema:
  316. type: dict
  317. show_if: [["acl_enable", "=", true]]
  318. attrs: []
  319. $ref:
  320. - "normalize/acl"
  321. - variable: cifs_config
  322. label: SMB Configuration
  323. description: The configuration for the SMB dataset.
  324. schema:
  325. type: dict
  326. show_if: [["type", "=", "cifs"]]
  327. attrs:
  328. - variable: server
  329. label: Server
  330. description: The server to mount the SMB share.
  331. schema:
  332. type: string
  333. required: true
  334. - variable: path
  335. label: Path
  336. description: The path to mount the SMB share.
  337. schema:
  338. type: string
  339. required: true
  340. - variable: username
  341. label: Username
  342. description: The username to use for the SMB share.
  343. schema:
  344. type: string
  345. required: true
  346. - variable: password
  347. label: Password
  348. description: The password to use for the SMB share.
  349. schema:
  350. type: string
  351. required: true
  352. private: true
  353. - variable: domain
  354. label: Domain
  355. description: The domain to use for the SMB share.
  356. schema:
  357. type: string
  358. - variable: labels
  359. label: ""
  360. group: Labels Configuration
  361. schema:
  362. type: list
  363. default: []
  364. items:
  365. - variable: label
  366. label: Label
  367. schema:
  368. type: dict
  369. attrs:
  370. - variable: key
  371. label: Key
  372. schema:
  373. type: string
  374. required: true
  375. - variable: value
  376. label: Value
  377. schema:
  378. type: string
  379. required: true
  380. - variable: containers
  381. label: Containers
  382. description: Containers where the label should be applied
  383. schema:
  384. type: list
  385. items:
  386. - variable: container
  387. label: Container
  388. schema:
  389. type: string
  390. required: true
  391. enum:
  392. - value: mariadb
  393. description: mariadb
  394. - variable: resources
  395. label: ""
  396. group: Resources Configuration
  397. schema:
  398. type: dict
  399. attrs:
  400. - variable: limits
  401. label: Limits
  402. schema:
  403. type: dict
  404. attrs:
  405. - variable: cpus
  406. label: CPUs
  407. description: CPUs limit for MariaDB.
  408. schema:
  409. type: int
  410. default: 2
  411. required: true
  412. - variable: memory
  413. label: Memory (in MB)
  414. description: Memory limit for MariaDB.
  415. schema:
  416. type: int
  417. default: 4096
  418. required: true