questions.yaml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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: Resources Configuration
  11. description: Configure Resources for Distribution
  12. questions:
  13. - variable: distributionConfig
  14. label: ""
  15. group: Distribution Configuration
  16. schema:
  17. type: dict
  18. attrs:
  19. - variable: basicAuthUsers
  20. label: Basic Auth Users
  21. description: |
  22. Configure basic auth users for Distribution.</br>
  23. Leave empty to disable basic auth.
  24. schema:
  25. type: list
  26. default: []
  27. items:
  28. - variable: userEntry
  29. label: User Entry
  30. schema:
  31. type: dict
  32. attrs:
  33. - variable: user
  34. label: Username
  35. schema:
  36. type: string
  37. required: true
  38. - variable: pass
  39. label: Password
  40. schema:
  41. type: string
  42. required: true
  43. private: true
  44. - variable: additionalEnvs
  45. label: Additional Environment Variables
  46. description: Configure additional environment variables for Distribution.
  47. schema:
  48. type: list
  49. default: []
  50. items:
  51. - variable: env
  52. label: Environment Variable
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: name
  57. label: Name
  58. schema:
  59. type: string
  60. required: true
  61. - variable: value
  62. label: Value
  63. schema:
  64. type: string
  65. required: true
  66. - variable: distributionRunAs
  67. label: ""
  68. group: User and Group Configuration
  69. schema:
  70. type: dict
  71. attrs:
  72. - variable: user
  73. label: User ID
  74. description: The user id that Distribution will run as.
  75. schema:
  76. type: int
  77. min: 2
  78. default: 568
  79. required: true
  80. - variable: group
  81. label: Group ID
  82. description: The group id that Distribution will run as.
  83. schema:
  84. type: int
  85. min: 2
  86. default: 568
  87. required: true
  88. - variable: distributionNetwork
  89. label: ""
  90. group: Network Configuration
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: apiPort
  95. label: API Port
  96. description: The port for the Distribution API.
  97. schema:
  98. type: int
  99. default: 30095
  100. min: 9000
  101. max: 65535
  102. required: true
  103. - variable: certificateID
  104. label: Certificate
  105. description: The certificate to use for Distribution.
  106. schema:
  107. type: int
  108. "null": true
  109. $ref:
  110. - "definitions/certificate"
  111. - variable: hostNetwork
  112. label: Host Network
  113. description: |
  114. Bind to the host network. It's recommended to keep this disabled.</br>
  115. schema:
  116. type: boolean
  117. default: false
  118. - variable: distributionStorage
  119. label: ""
  120. group: Storage Configuration
  121. schema:
  122. type: dict
  123. attrs:
  124. - variable: useFilesystemBackend
  125. label: Use Filesystem Backend
  126. description: |
  127. Use filesystem backend for Distribution.</br>
  128. If disabled, you will need to configure a backend for Distribution.</br>
  129. Either with environment variables or with a configuration file.
  130. schema:
  131. type: boolean
  132. default: true
  133. - variable: data
  134. label: Distribution Data Storage
  135. description: The path to store Distribution data.
  136. schema:
  137. type: dict
  138. show_if: [["useFilesystemBackend", "=", true]]
  139. attrs:
  140. - variable: type
  141. label: Type
  142. description: |
  143. ixVolume: Is dataset created automatically by the system.</br>
  144. Host Path: Is a path that already exists on the system.
  145. schema:
  146. type: string
  147. required: true
  148. default: ixVolume
  149. enum:
  150. - value: hostPath
  151. description: Host Path (Path that already exists on the system)
  152. - value: ixVolume
  153. description: ixVolume (Dataset created automatically by the system)
  154. - variable: datasetName
  155. label: Dataset Name
  156. schema:
  157. type: string
  158. show_if: [["type", "=", "ixVolume"]]
  159. required: true
  160. hidden: true
  161. immutable: true
  162. default: data
  163. $ref:
  164. - "normalize/ixVolume"
  165. - variable: hostPath
  166. label: Host Path
  167. schema:
  168. type: hostpath
  169. show_if: [["type", "=", "hostPath"]]
  170. immutable: true
  171. required: true
  172. - variable: additionalStorages
  173. label: Additional Storage
  174. description: Additional storage for Distribution.
  175. schema:
  176. type: list
  177. default: []
  178. items:
  179. - variable: storageEntry
  180. label: Storage Entry
  181. schema:
  182. type: dict
  183. attrs:
  184. - variable: type
  185. label: Type
  186. description: |
  187. ixVolume: Is dataset created automatically by the system.</br>
  188. Host Path: Is a path that already exists on the system.
  189. schema:
  190. type: string
  191. required: true
  192. default: "ixVolume"
  193. enum:
  194. - value: "hostPath"
  195. description: Host Path (Path that already exists on the system)
  196. - value: "ixVolume"
  197. description: ixVolume (Dataset created automatically by the system)
  198. - variable: mountPath
  199. label: Mount Path
  200. description: The path inside the container to mount the storage.
  201. schema:
  202. type: path
  203. required: true
  204. - variable: hostPath
  205. label: Host Path
  206. description: The host path to use for storage.
  207. schema:
  208. type: hostpath
  209. show_if: [["type", "=", "hostPath"]]
  210. required: true
  211. - variable: datasetName
  212. label: Dataset Name
  213. description: The name of the dataset to use for storage.
  214. schema:
  215. type: string
  216. show_if: [["type", "=", "ixVolume"]]
  217. required: true
  218. immutable: true
  219. default: "storage_entry"
  220. $ref:
  221. - "normalize/ixVolume"
  222. - variable: resources
  223. group: Resources Configuration
  224. label: ""
  225. schema:
  226. type: dict
  227. attrs:
  228. - variable: limits
  229. label: Limits
  230. schema:
  231. type: dict
  232. attrs:
  233. - variable: cpu
  234. label: CPU
  235. description: CPU limit for Distribution.
  236. schema:
  237. type: string
  238. max_length: 6
  239. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  240. valid_chars_error: |
  241. Valid CPU limit formats are</br>
  242. - Plain Integer - eg. 1</br>
  243. - Float - eg. 0.5</br>
  244. - Milicpu - eg. 500m
  245. default: "4000m"
  246. required: true
  247. - variable: memory
  248. label: Memory
  249. description: Memory limit for Distribution.
  250. schema:
  251. type: string
  252. max_length: 12
  253. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  254. valid_chars_error: |
  255. Valid Memory limit formats are</br>
  256. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  257. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  258. - Plain Integer in bytes - eg. 1024</br>
  259. - Exponent - eg. 134e6
  260. default: "8Gi"
  261. required: true