questions.yaml 17 KB

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