questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. groups:
  2. - name: Homer Configuration
  3. description: Configure Homer
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Homer
  6. - name: Network Configuration
  7. description: Configure Network for Homer
  8. - name: Storage Configuration
  9. description: Configure Storage for Homer
  10. - name: Resources Configuration
  11. description: Configure Resources for Homer
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: homerConfig
  23. label: ""
  24. group: Homer Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: initAssets
  29. label: Init Assets
  30. description: Install example configuration file & assets to help you get started.
  31. schema:
  32. type: boolean
  33. default: false
  34. - variable: additionalEnvs
  35. label: Additional Environment Variables
  36. description: Configure additional environment variables for Homer.
  37. schema:
  38. type: list
  39. default: []
  40. items:
  41. - variable: env
  42. label: Environment Variable
  43. schema:
  44. type: dict
  45. attrs:
  46. - variable: name
  47. label: Name
  48. schema:
  49. type: string
  50. required: true
  51. - variable: value
  52. label: Value
  53. schema:
  54. type: string
  55. required: true
  56. - variable: homerRunAs
  57. label: ""
  58. group: User and Group Configuration
  59. schema:
  60. type: dict
  61. attrs:
  62. - variable: user
  63. label: User ID
  64. description: The user id that Homer will run as.
  65. schema:
  66. type: int
  67. min: 2
  68. default: 568
  69. required: true
  70. - variable: group
  71. label: Group ID
  72. description: The group id that Homer will run as.
  73. schema:
  74. type: int
  75. min: 2
  76. default: 568
  77. required: true
  78. - variable: homerNetwork
  79. label: ""
  80. group: Network Configuration
  81. schema:
  82. type: dict
  83. attrs:
  84. - variable: webPort
  85. label: Web Port
  86. description: The port for the Homer Web UI.
  87. schema:
  88. type: int
  89. default: 30092
  90. min: 9000
  91. max: 65535
  92. required: true
  93. - variable: hostNetwork
  94. label: Host Network
  95. description: |
  96. Bind to the host network. It's recommended to keep this disabled.</br>
  97. schema:
  98. type: boolean
  99. default: false
  100. - variable: homerStorage
  101. label: ""
  102. group: Storage Configuration
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: assets
  107. label: Homer Assets Storage
  108. description: The path to store Homer Assets.
  109. schema:
  110. type: dict
  111. attrs:
  112. - variable: type
  113. label: Type
  114. description: |
  115. ixVolume: Is dataset created automatically by the system.</br>
  116. Host Path: Is a path that already exists on the system.
  117. schema:
  118. type: string
  119. required: true
  120. immutable: true
  121. default: "ixVolume"
  122. enum:
  123. - value: "hostPath"
  124. description: Host Path (Path that already exists on the system)
  125. - value: "ixVolume"
  126. description: ixVolume (Dataset created automatically by the system)
  127. - variable: ixVolumeConfig
  128. label: ixVolume Configuration
  129. description: The configuration for the ixVolume dataset.
  130. schema:
  131. type: dict
  132. show_if: [["type", "=", "ixVolume"]]
  133. $ref:
  134. - "normalize/ixVolume"
  135. attrs:
  136. - variable: aclEnable
  137. label: Enable ACL
  138. description: Enable ACL for the dataset.
  139. schema:
  140. type: boolean
  141. default: false
  142. - variable: datasetName
  143. label: Dataset Name
  144. description: The name of the dataset to use for storage.
  145. schema:
  146. type: string
  147. required: true
  148. immutable: true
  149. hidden: true
  150. default: "assets"
  151. - variable: aclEntries
  152. label: ACL Configuration
  153. schema:
  154. type: dict
  155. show_if: [["aclEnable", "=", true]]
  156. attrs: []
  157. - variable: hostPathConfig
  158. label: Host Path Configuration
  159. schema:
  160. type: dict
  161. show_if: [["type", "=", "hostPath"]]
  162. attrs:
  163. - variable: aclEnable
  164. label: Enable ACL
  165. description: Enable ACL for the dataset.
  166. schema:
  167. type: boolean
  168. default: false
  169. - variable: acl
  170. label: ACL Configuration
  171. schema:
  172. type: dict
  173. show_if: [["aclEnable", "=", true]]
  174. attrs: []
  175. $ref:
  176. - "normalize/acl"
  177. - variable: hostPath
  178. label: Host Path
  179. description: The host path to use for storage.
  180. schema:
  181. type: hostpath
  182. show_if: [["aclEnable", "=", false]]
  183. required: true
  184. - variable: additionalStorages
  185. label: Additional Storage
  186. description: Additional storage for Homer.
  187. schema:
  188. type: list
  189. default: []
  190. items:
  191. - variable: storageEntry
  192. label: Storage Entry
  193. schema:
  194. type: dict
  195. attrs:
  196. - variable: type
  197. label: Type
  198. description: |
  199. ixVolume: Is dataset created automatically by the system.</br>
  200. Host Path: Is a path that already exists on the system.</br>
  201. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  202. schema:
  203. type: string
  204. required: true
  205. default: "ixVolume"
  206. immutable: true
  207. enum:
  208. - value: "hostPath"
  209. description: Host Path (Path that already exists on the system)
  210. - value: "ixVolume"
  211. description: ixVolume (Dataset created automatically by the system)
  212. - value: "smb-pv-pvc"
  213. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  214. - variable: readOnly
  215. label: Read Only
  216. description: Mount the volume as read only.
  217. schema:
  218. type: boolean
  219. default: false
  220. - variable: mountPath
  221. label: Mount Path
  222. description: The path inside the container to mount the storage.
  223. schema:
  224. type: path
  225. required: true
  226. - variable: hostPathConfig
  227. label: Host Path Configuration
  228. schema:
  229. type: dict
  230. show_if: [["type", "=", "hostPath"]]
  231. attrs:
  232. - variable: aclEnable
  233. label: Enable ACL
  234. description: Enable ACL for the dataset.
  235. schema:
  236. type: boolean
  237. default: false
  238. - variable: acl
  239. label: ACL Configuration
  240. schema:
  241. type: dict
  242. show_if: [["aclEnable", "=", true]]
  243. attrs: []
  244. $ref:
  245. - "normalize/acl"
  246. - variable: hostPath
  247. label: Host Path
  248. description: The host path to use for storage.
  249. schema:
  250. type: hostpath
  251. show_if: [["aclEnable", "=", false]]
  252. required: true
  253. - variable: ixVolumeConfig
  254. label: ixVolume Configuration
  255. description: The configuration for the ixVolume dataset.
  256. schema:
  257. type: dict
  258. show_if: [["type", "=", "ixVolume"]]
  259. $ref:
  260. - "normalize/ixVolume"
  261. attrs:
  262. - variable: aclEnable
  263. label: Enable ACL
  264. description: Enable ACL for the dataset.
  265. schema:
  266. type: boolean
  267. default: false
  268. - variable: datasetName
  269. label: Dataset Name
  270. description: The name of the dataset to use for storage.
  271. schema:
  272. type: string
  273. required: true
  274. immutable: true
  275. default: "storage_entry"
  276. - variable: aclEntries
  277. label: ACL Configuration
  278. schema:
  279. type: dict
  280. show_if: [["aclEnable", "=", true]]
  281. attrs: []
  282. - variable: smbConfig
  283. label: SMB Share Configuration
  284. description: The configuration for the SMB Share.
  285. schema:
  286. type: dict
  287. show_if: [["type", "=", "smb-pv-pvc"]]
  288. attrs:
  289. - variable: server
  290. label: Server
  291. description: The server for the SMB share.
  292. schema:
  293. type: string
  294. required: true
  295. - variable: share
  296. label: Share
  297. description: The share name for the SMB share.
  298. schema:
  299. type: string
  300. required: true
  301. - variable: domain
  302. label: Domain (Optional)
  303. description: The domain for the SMB share.
  304. schema:
  305. type: string
  306. - variable: username
  307. label: Username
  308. description: The username for the SMB share.
  309. schema:
  310. type: string
  311. required: true
  312. - variable: password
  313. label: Password
  314. description: The password for the SMB share.
  315. schema:
  316. type: string
  317. required: true
  318. private: true
  319. - variable: size
  320. label: Size (in Gi)
  321. description: The size of the volume quota.
  322. schema:
  323. type: int
  324. required: true
  325. min: 1
  326. default: 1
  327. - variable: resources
  328. group: Resources Configuration
  329. label: ""
  330. schema:
  331. type: dict
  332. attrs:
  333. - variable: limits
  334. label: Limits
  335. schema:
  336. type: dict
  337. attrs:
  338. - variable: cpu
  339. label: CPU
  340. description: CPU limit for Homer.
  341. schema:
  342. type: string
  343. max_length: 6
  344. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  345. valid_chars_error: |
  346. Valid CPU limit formats are</br>
  347. - Plain Integer - eg. 1</br>
  348. - Float - eg. 0.5</br>
  349. - Milicpu - eg. 500m
  350. default: "4000m"
  351. required: true
  352. - variable: memory
  353. label: Memory
  354. description: Memory limit for Homer.
  355. schema:
  356. type: string
  357. max_length: 12
  358. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  359. valid_chars_error: |
  360. Valid Memory limit formats are</br>
  361. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  362. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  363. - Plain Integer in bytes - eg. 1024</br>
  364. - Exponent - eg. 134e6
  365. default: "8Gi"
  366. required: true