questions.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. groups:
  2. - name: Omada Controller Configuration
  3. description: Configure Omada Controller
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Omada Controller
  6. - name: Network Configuration
  7. description: Configure Network for Omada Controller
  8. - name: Storage Configuration
  9. description: Configure Storage for Omada Controller
  10. - name: Resources Configuration
  11. description: Configure Resources for Omada Controller
  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: TZ
  23. group: Omada Controller Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: omadaConfig
  32. label: ""
  33. group: Omada Controller Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: additionalEnvs
  38. label: Additional Environment Variables
  39. description: Configure additional environment variables for Omada Controller.
  40. schema:
  41. type: list
  42. default: []
  43. items:
  44. - variable: env
  45. label: Environment Variable
  46. schema:
  47. type: dict
  48. attrs:
  49. - variable: name
  50. label: Name
  51. schema:
  52. type: string
  53. required: true
  54. - variable: value
  55. label: Value
  56. schema:
  57. type: string
  58. required: true
  59. - variable: omadaID
  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 Omada Controller 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 Omada Controller files will be owned by.
  76. schema:
  77. type: int
  78. min: 568
  79. default: 568
  80. required: true
  81. - variable: omadaNetwork
  82. label: ""
  83. group: Network Configuration
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: manageHttpPort
  88. label: Manage HTTP Port
  89. description: The port to use for Omada Controller HTTP management.
  90. schema:
  91. type: int
  92. default: 30076
  93. min: 9000
  94. max: 65535
  95. required: true
  96. - variable: manageHttpsPort
  97. label: Manage HTTPS Port
  98. description: The port to use for Omada Controller HTTPS management.
  99. schema:
  100. type: int
  101. default: 30077
  102. min: 9000
  103. max: 65535
  104. required: true
  105. - variable: portalHttpPort
  106. label: Portal HTTP Port
  107. description: The port to use for Omada Controller HTTP portal.
  108. schema:
  109. type: int
  110. default: 30078
  111. min: 9000
  112. max: 65535
  113. required: true
  114. - variable: portalHttpsPort
  115. label: Portal HTTPS Port
  116. description: The port to use for Omada Controller HTTPS portal.
  117. schema:
  118. type: int
  119. default: 30079
  120. min: 9000
  121. max: 65535
  122. required: true
  123. - variable: appDiscoveryPort
  124. label: App Discovery Port
  125. description: The port to use for Omada Controller App Discovery.
  126. schema:
  127. type: int
  128. default: 27001
  129. min: 9000
  130. max: 65535
  131. required: true
  132. - variable: discoveryPort
  133. label: Discovery Port
  134. description: The port to use for Omada Controller Discovery.
  135. schema:
  136. type: int
  137. default: 29810
  138. min: 9000
  139. max: 65535
  140. required: true
  141. - variable: managerV1Port
  142. label: Manager v1 Port
  143. description: The port to use for Omada Controller Manager v1.
  144. schema:
  145. type: int
  146. default: 29811
  147. min: 9000
  148. max: 65535
  149. required: true
  150. - variable: adoptV1Port
  151. label: Adopt v1 Port
  152. description: The port to use for Omada Controller Adopt v1.
  153. schema:
  154. type: int
  155. default: 29812
  156. min: 9000
  157. max: 65535
  158. required: true
  159. - variable: upgradeV1Port
  160. label: Upgrade v1 Port
  161. description: The port to use for Omada Controller Upgrade v1.
  162. schema:
  163. type: int
  164. default: 29813
  165. min: 9000
  166. max: 65535
  167. required: true
  168. - variable: managerV2Port
  169. label: Manager v2 Port
  170. description: The port to use for Omada Controller Manager v2.
  171. schema:
  172. type: int
  173. default: 29814
  174. min: 9000
  175. max: 65535
  176. required: true
  177. - variable: certificateID
  178. label: Certificate
  179. description: The certificate to use for Omada Controller </br>
  180. schema:
  181. type: int
  182. "null": true
  183. $ref:
  184. - "definitions/certificate"
  185. - variable: hostNetwork
  186. label: Host Network
  187. description: |
  188. Bind to the host network. </br>s
  189. This might be required for specific features to work.
  190. schema:
  191. type: boolean
  192. default: false
  193. - variable: omadaStorage
  194. label: ""
  195. group: Storage Configuration
  196. schema:
  197. type: dict
  198. attrs:
  199. - variable: data
  200. label: Omada Controller Data Storage
  201. description: The path to store Omada Controller Data.
  202. schema:
  203. type: dict
  204. attrs:
  205. - variable: type
  206. label: Type
  207. description: |
  208. ixVolume: Is dataset created automatically by the system.</br>
  209. Host Path: Is a path that already exists on the system.
  210. schema:
  211. type: string
  212. required: true
  213. immutable: true
  214. default: "ixVolume"
  215. enum:
  216. - value: "hostPath"
  217. description: Host Path (Path that already exists on the system)
  218. - value: "ixVolume"
  219. description: ixVolume (Dataset created automatically by the system)
  220. - variable: datasetName
  221. label: Dataset Name
  222. schema:
  223. type: string
  224. show_if: [["type", "=", "ixVolume"]]
  225. required: true
  226. hidden: true
  227. immutable: true
  228. default: "data"
  229. $ref:
  230. - "normalize/ixVolume"
  231. - variable: hostPath
  232. label: Host Path
  233. schema:
  234. type: hostpath
  235. show_if: [["type", "=", "hostPath"]]
  236. required: true
  237. - variable: logs
  238. label: Omada Controller Logs Storage
  239. description: The path to store Omada Controller Logs.
  240. schema:
  241. type: dict
  242. attrs:
  243. - variable: type
  244. label: Type
  245. description: |
  246. ixVolume: Is dataset created automatically by the system.</br>
  247. Host Path: Is a path that already exists on the system.
  248. schema:
  249. type: string
  250. required: true
  251. immutable: true
  252. default: "ixVolume"
  253. enum:
  254. - value: "hostPath"
  255. description: Host Path (Path that already exists on the system)
  256. - value: "ixVolume"
  257. description: ixVolume (Dataset created automatically by the system)
  258. - variable: datasetName
  259. label: Dataset Name
  260. schema:
  261. type: string
  262. show_if: [["type", "=", "ixVolume"]]
  263. required: true
  264. hidden: true
  265. immutable: true
  266. default: "logs"
  267. $ref:
  268. - "normalize/ixVolume"
  269. - variable: hostPath
  270. label: Host Path
  271. schema:
  272. type: hostpath
  273. show_if: [["type", "=", "hostPath"]]
  274. required: true
  275. - variable: additionalStorages
  276. label: Additional Storage
  277. description: Additional storage for Omada Controller.
  278. schema:
  279. type: list
  280. default: []
  281. items:
  282. - variable: storageEntry
  283. label: Storage Entry
  284. schema:
  285. type: dict
  286. attrs:
  287. - variable: type
  288. label: Type
  289. description: |
  290. ixVolume: Is dataset created automatically by the system.</br>
  291. Host Path: Is a path that already exists on the system.</br>
  292. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  293. schema:
  294. type: string
  295. required: true
  296. default: "ixVolume"
  297. immutable: true
  298. enum:
  299. - value: "hostPath"
  300. description: Host Path (Path that already exists on the system)
  301. - value: "ixVolume"
  302. description: ixVolume (Dataset created automatically by the system)
  303. - value: "smb-pv-pvc"
  304. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  305. - variable: mountPath
  306. label: Mount Path
  307. description: The path inside the container to mount the storage.
  308. schema:
  309. type: path
  310. required: true
  311. - variable: hostPath
  312. label: Host Path
  313. description: The host path to use for storage.
  314. schema:
  315. type: hostpath
  316. show_if: [["type", "=", "hostPath"]]
  317. required: true
  318. - variable: datasetName
  319. label: Dataset Name
  320. description: The name of the dataset to use for storage.
  321. schema:
  322. type: string
  323. show_if: [["type", "=", "ixVolume"]]
  324. required: true
  325. immutable: true
  326. default: "storage_entry"
  327. $ref:
  328. - "normalize/ixVolume"
  329. - variable: server
  330. label: Server
  331. description: The server for the SMB share.
  332. schema:
  333. type: string
  334. show_if: [["type", "=", "smb-pv-pvc"]]
  335. required: true
  336. - variable: share
  337. label: Share
  338. description: The share name for the SMB share.
  339. schema:
  340. type: string
  341. show_if: [["type", "=", "smb-pv-pvc"]]
  342. required: true
  343. - variable: domain
  344. label: Domain (Optional)
  345. description: The domain for the SMB share.
  346. schema:
  347. type: string
  348. show_if: [["type", "=", "smb-pv-pvc"]]
  349. - variable: username
  350. label: Username
  351. description: The username for the SMB share.
  352. schema:
  353. type: string
  354. show_if: [["type", "=", "smb-pv-pvc"]]
  355. required: true
  356. - variable: password
  357. label: Password
  358. description: The password for the SMB share.
  359. schema:
  360. type: string
  361. show_if: [["type", "=", "smb-pv-pvc"]]
  362. required: true
  363. private: true
  364. - variable: size
  365. label: Size (in Gi)
  366. description: The size of the volume quota.
  367. schema:
  368. type: int
  369. show_if: [["type", "=", "smb-pv-pvc"]]
  370. required: true
  371. min: 1
  372. default: 1
  373. - variable: resources
  374. group: Resources Configuration
  375. label: ""
  376. schema:
  377. type: dict
  378. attrs:
  379. - variable: limits
  380. label: Limits
  381. schema:
  382. type: dict
  383. attrs:
  384. - variable: cpu
  385. label: CPU
  386. description: CPU limit for Omada Controller.
  387. schema:
  388. type: string
  389. max_length: 6
  390. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  391. valid_chars_error: |
  392. Valid CPU limit formats are</br>
  393. - Plain Integer - eg. 1</br>
  394. - Float - eg. 0.5</br>
  395. - Milicpu - eg. 500m
  396. default: "4000m"
  397. required: true
  398. - variable: memory
  399. label: Memory
  400. description: Memory limit for Omada Controller.
  401. schema:
  402. type: string
  403. max_length: 12
  404. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  405. valid_chars_error: |
  406. Valid Memory limit formats are</br>
  407. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  408. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  409. - Plain Integer in bytes - eg. 1024</br>
  410. - Exponent - eg. 134e6
  411. default: "8Gi"
  412. required: true