questions.yaml 16 KB

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