questions.yaml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. groups:
  2. - name: Unifi Controller Configuration
  3. description: Configure Unifi Controller
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Unifi Controller
  6. - name: Network Configuration
  7. description: Configure Network for Unifi Controller
  8. - name: Storage Configuration
  9. description: Configure Storage for Unifi Controller
  10. - name: Resources Configuration
  11. description: Configure Resources for Unifi 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: Unifi Controller Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: unifiConfig
  32. label: ""
  33. group: Unifi Controller Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: additionalEnvs
  38. label: Additional Environment Variables
  39. description: Configure additional environment variables for Unifi 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: unifiNetwork
  60. label: ""
  61. group: Network Configuration
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: webHttpsPort
  66. label: Web HTTPS Port
  67. description: The HTTPS port for the Unifi Controller Web UI.
  68. schema:
  69. type: int
  70. default: 30072
  71. min: 9000
  72. max: 65535
  73. required: true
  74. - variable: enableWebHttp
  75. label: Enable Web HTTP
  76. description: Enable HTTP for the Unifi Controller Web UI.
  77. schema:
  78. type: boolean
  79. default: false
  80. - variable: webHttpPort
  81. label: Web HTTP Port
  82. description: The HTTP port for the Unifi Controller Web UI.
  83. schema:
  84. type: int
  85. default: 30073
  86. show_if: [["enableWebHttp", "=", true]]
  87. min: 9000
  88. max: 65535
  89. required: true
  90. - variable: portalHttpsPort
  91. label: Portal HTTPS Port
  92. description: The HTTPS port for the Unifi Controller Portal.
  93. schema:
  94. type: int
  95. default: 30074
  96. min: 9000
  97. max: 65535
  98. required: true
  99. - variable: enablePortalHttp
  100. label: Enable Portal HTTP
  101. description: Enable HTTP for the Unifi Controller Portal.
  102. schema:
  103. type: boolean
  104. default: false
  105. - variable: portalHttpPort
  106. label: Portal HTTP Port
  107. description: The HTTP port for the Unifi Controller Portal.
  108. schema:
  109. type: int
  110. default: 30075
  111. show_if: [["enablePortalHttp", "=", true]]
  112. min: 9000
  113. max: 65535
  114. required: true
  115. - variable: certificateID
  116. label: Certificate
  117. description: |
  118. The certificate to use for Unifi Controller </br>
  119. Using the Rocket method for TLS setup is NOT recommended </br>
  120. Prefer a reverse proxy with a valid certificate </br>
  121. schema:
  122. type: int
  123. "null": true
  124. $ref:
  125. - "definitions/certificate"
  126. - variable: hostNetwork
  127. label: Host Network
  128. description: |
  129. Bind to the host network. </br>
  130. This might be required for specific features like STUN.
  131. schema:
  132. type: boolean
  133. default: false
  134. - variable: unifiStorage
  135. label: ""
  136. group: Storage Configuration
  137. schema:
  138. type: dict
  139. attrs:
  140. - variable: data
  141. label: Unifi Controller Data Storage
  142. description: The path to store Unifi Controller Data.
  143. schema:
  144. type: dict
  145. attrs:
  146. - variable: type
  147. label: Type
  148. description: |
  149. ixVolume: Is dataset created automatically by the system.</br>
  150. Host Path: Is a path that already exists on the system.
  151. schema:
  152. type: string
  153. required: true
  154. default: "ixVolume"
  155. enum:
  156. - value: "hostPath"
  157. description: Host Path (Path that already exists on the system)
  158. - value: "ixVolume"
  159. description: ixVolume (Dataset created automatically by the system)
  160. - variable: datasetName
  161. label: Dataset Name
  162. schema:
  163. type: string
  164. show_if: [["type", "=", "ixVolume"]]
  165. required: true
  166. hidden: true
  167. immutable: true
  168. default: "data"
  169. $ref:
  170. - "normalize/ixVolume"
  171. - variable: hostPath
  172. label: Host Path
  173. schema:
  174. type: hostpath
  175. show_if: [["type", "=", "hostPath"]]
  176. immutable: true
  177. required: true
  178. - variable: additionalStorages
  179. label: Additional Storage
  180. description: Additional storage for Unifi Controller.
  181. schema:
  182. type: list
  183. default: []
  184. items:
  185. - variable: storageEntry
  186. label: Storage Entry
  187. schema:
  188. type: dict
  189. attrs:
  190. - variable: type
  191. label: Type
  192. description: |
  193. ixVolume: Is dataset created automatically by the system.</br>
  194. Host Path: Is a path that already exists on the system.
  195. schema:
  196. type: string
  197. required: true
  198. default: "ixVolume"
  199. enum:
  200. - value: "hostPath"
  201. description: Host Path (Path that already exists on the system)
  202. - value: "ixVolume"
  203. description: ixVolume (Dataset created automatically by the system)
  204. - variable: mountPath
  205. label: Mount Path
  206. description: The path inside the container to mount the storage.
  207. schema:
  208. type: path
  209. required: true
  210. - variable: hostPath
  211. label: Host Path
  212. description: The host path to use for storage.
  213. schema:
  214. type: hostpath
  215. show_if: [["type", "=", "hostPath"]]
  216. required: true
  217. - variable: datasetName
  218. label: Dataset Name
  219. description: The name of the dataset to use for storage.
  220. schema:
  221. type: string
  222. show_if: [["type", "=", "ixVolume"]]
  223. required: true
  224. immutable: true
  225. default: "storage_entry"
  226. $ref:
  227. - "normalize/ixVolume"
  228. - variable: resources
  229. group: Resources Configuration
  230. label: ""
  231. schema:
  232. type: dict
  233. attrs:
  234. - variable: limits
  235. label: Limits
  236. schema:
  237. type: dict
  238. attrs:
  239. - variable: cpu
  240. label: CPU
  241. description: CPU limit for Unifi Controller.
  242. schema:
  243. type: string
  244. max_length: 6
  245. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  246. valid_chars_error: |
  247. Valid CPU limit formats are</br>
  248. - Plain Integer - eg. 1</br>
  249. - Float - eg. 0.5</br>
  250. - Milicpu - eg. 500m
  251. default: "4000m"
  252. required: true
  253. - variable: memory
  254. label: Memory
  255. description: Memory limit for Unifi Controller.
  256. schema:
  257. type: string
  258. max_length: 12
  259. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  260. valid_chars_error: |
  261. Valid Memory limit formats are</br>
  262. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  263. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  264. - Plain Integer in bytes - eg. 1024</br>
  265. - Exponent - eg. 134e6
  266. default: "8Gi"
  267. required: true