questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. groups:
  2. - name: Collabora Configuration
  3. description: Configure Collabora
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Collabora
  6. - name: Network Configuration
  7. description: Configure Network for Collabora
  8. - name: Storage Configuration
  9. description: Configure Storage for Collabora
  10. - name: Resources Configuration
  11. description: Configure Resources for Collabora
  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: Collabora Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: collaboraConfig
  32. label: ""
  33. group: Collabora Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: enableWebUI
  38. label: Enable WebUI
  39. description: |
  40. Enable WebUI for Collabora
  41. If you enable this, you will need to set a username and password</br>
  42. schema:
  43. type: boolean
  44. default: true
  45. - variable: username
  46. label: Username for WebUI
  47. schema:
  48. type: string
  49. required: true
  50. show_if: [[enableWebUI, "=", true]]
  51. default: ""
  52. - variable: password
  53. label: Password for WebUI
  54. schema:
  55. type: string
  56. default: ""
  57. private: true
  58. required: true
  59. show_if: [[enableWebUI, "=", true]]
  60. valid_chars: "^[a-zA-Z0-9!@#$%^&*?]{8,}$|^$"
  61. valid_chars_error: |
  62. Password must be at least 8 characters long and contain at least one of the following:</br>
  63. - Uppercase letter</br>
  64. - Lowercase letter</br>
  65. - Number</br>
  66. - Special character (!@#$%^&*?)</br>
  67. - variable: serverName
  68. label: Server Name
  69. description: The server name for Collabora.
  70. schema:
  71. type: string
  72. default: ""
  73. $ref:
  74. - "definitions/nodeIP"
  75. - variable: aliasGroup1
  76. label: Alias Group 1
  77. description: |
  78. List of domains that will be allowed to access the Collabora server
  79. Type one domain per line
  80. schema:
  81. type: list
  82. default: []
  83. items:
  84. - variable: alias
  85. label: Alias
  86. schema:
  87. type: string
  88. - variable: dictionaries
  89. label: Dictionaries
  90. description: Dictionaries to be used by Collabora.
  91. schema:
  92. type: list
  93. default:
  94. - de_DE
  95. - en_GB
  96. - en_US
  97. - es_ES
  98. - fr_FR
  99. - it
  100. - nl
  101. - pt_BR
  102. - pt_PT
  103. - ru
  104. items:
  105. - variable: dictionary
  106. label: Dictionary
  107. schema:
  108. type: string
  109. default: ""
  110. required: true
  111. - variable: extraParams
  112. label: Extra Parameters
  113. description: Extra parameters to be passed to Collabora.
  114. schema:
  115. type: list
  116. default:
  117. - --o:welcome.enable=false
  118. - --o:user_interface.mode=notebookbar
  119. - --o:ssl.termination=true
  120. - --o:ssl.enable=false
  121. - --o:net.proto=IPv4
  122. - --o:logging.level=warning
  123. - --o:logging.level_startup=warning
  124. - --o:mount_jail_tree=false
  125. items:
  126. - variable: extraParam
  127. label: Extra Parameter
  128. schema:
  129. type: string
  130. default: ""
  131. required: true
  132. - variable: additionalEnvs
  133. label: Additional Environment Variables
  134. description: Configure additional environment variables forCollabora.
  135. schema:
  136. type: list
  137. default: []
  138. items:
  139. - variable: env
  140. label: Environment Variable
  141. schema:
  142. type: dict
  143. attrs:
  144. - variable: name
  145. label: Name
  146. schema:
  147. type: string
  148. required: true
  149. - variable: value
  150. label: Value
  151. schema:
  152. type: string
  153. required: true
  154. - variable: collaboraNetwork
  155. label: ""
  156. group: Network Configuration
  157. schema:
  158. type: dict
  159. attrs:
  160. - variable: webPort
  161. label: Web Port
  162. description: The port for the Collabora Web UI.
  163. schema:
  164. type: int
  165. default: 9980
  166. min: 9000
  167. max: 65535
  168. required: true
  169. - variable: certificateID
  170. label: Certificate
  171. description: The certificate for Collabora.
  172. schema:
  173. type: int
  174. "null": true
  175. $ref:
  176. - "definitions/certificate"
  177. - variable: collaboraStorage
  178. label: ""
  179. group: Storage Configuration
  180. schema:
  181. type: dict
  182. attrs:
  183. - variable: additionalStorages
  184. label: Additional Storage
  185. description: Additional storage for Collabora.
  186. schema:
  187. type: list
  188. default: []
  189. items:
  190. - variable: storageEntry
  191. label: Storage Entry
  192. schema:
  193. type: dict
  194. attrs:
  195. - variable: type
  196. label: Type
  197. description: |
  198. ixVolume: Is dataset created automatically by the system.</br>
  199. Host Path: Is a path that already exists on the system.</br>
  200. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  201. schema:
  202. type: string
  203. required: true
  204. default: "ixVolume"
  205. immutable: true
  206. enum:
  207. - value: "hostPath"
  208. description: Host Path (Path that already exists on the system)
  209. - value: "ixVolume"
  210. description: ixVolume (Dataset created automatically by the system)
  211. - value: "smb-pv-pvc"
  212. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  213. - variable: readOnly
  214. label: Read Only
  215. description: Mount the volume as read only.
  216. schema:
  217. type: boolean
  218. default: false
  219. - variable: mountPath
  220. label: Mount Path
  221. description: The path inside the container to mount the storage.
  222. schema:
  223. type: path
  224. required: true
  225. - variable: hostPathConfig
  226. label: Host Path Configuration
  227. schema:
  228. type: dict
  229. show_if: [["type", "=", "hostPath"]]
  230. attrs:
  231. - variable: aclEnable
  232. label: Enable ACL
  233. description: Enable ACL for the dataset.
  234. schema:
  235. type: boolean
  236. default: false
  237. - variable: acl
  238. label: ACL Configuration
  239. schema:
  240. type: dict
  241. show_if: [["aclEnable", "=", true]]
  242. attrs: []
  243. $ref:
  244. - "normalize/acl"
  245. - variable: hostPath
  246. label: Host Path
  247. description: The host path to use for storage.
  248. schema:
  249. type: hostpath
  250. show_if: [["aclEnable", "=", false]]
  251. required: true
  252. - variable: ixVolumeConfig
  253. label: ixVolume Configuration
  254. description: The configuration for the ixVolume dataset.
  255. schema:
  256. type: dict
  257. show_if: [["type", "=", "ixVolume"]]
  258. $ref:
  259. - "normalize/ixVolume"
  260. attrs:
  261. - variable: aclEnable
  262. label: Enable ACL
  263. description: Enable ACL for the dataset.
  264. schema:
  265. type: boolean
  266. default: false
  267. - variable: datasetName
  268. label: Dataset Name
  269. description: The name of the dataset to use for storage.
  270. schema:
  271. type: string
  272. required: true
  273. immutable: true
  274. default: "storage_entry"
  275. - variable: aclEntries
  276. label: ACL Configuration
  277. schema:
  278. type: dict
  279. show_if: [["aclEnable", "=", true]]
  280. attrs: []
  281. - variable: smbConfig
  282. label: SMB Share Configuration
  283. description: The configuration for the SMB Share.
  284. schema:
  285. type: dict
  286. show_if: [["type", "=", "smb-pv-pvc"]]
  287. attrs:
  288. - variable: server
  289. label: Server
  290. description: The server for the SMB share.
  291. schema:
  292. type: string
  293. required: true
  294. - variable: share
  295. label: Share
  296. description: The share name for the SMB share.
  297. schema:
  298. type: string
  299. required: true
  300. - variable: domain
  301. label: Domain (Optional)
  302. description: The domain for the SMB share.
  303. schema:
  304. type: string
  305. - variable: username
  306. label: Username
  307. description: The username for the SMB share.
  308. schema:
  309. type: string
  310. required: true
  311. - variable: password
  312. label: Password
  313. description: The password for the SMB share.
  314. schema:
  315. type: string
  316. required: true
  317. private: true
  318. - variable: size
  319. label: Size (in Gi)
  320. description: The size of the volume quota.
  321. schema:
  322. type: int
  323. required: true
  324. min: 1
  325. default: 1
  326. - variable: resources
  327. group: Resources Configuration
  328. label: ""
  329. schema:
  330. type: dict
  331. attrs:
  332. - variable: limits
  333. label: Limits
  334. schema:
  335. type: dict
  336. attrs:
  337. - variable: cpu
  338. label: CPU
  339. description: CPU limit for WG-Easy.
  340. schema:
  341. type: string
  342. max_length: 6
  343. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  344. valid_chars_error: |
  345. Valid CPU limit formats are</br>
  346. - Plain Integer - eg. 1</br>
  347. - Float - eg. 0.5</br>
  348. - Milicpu - eg. 500m
  349. default: "4000m"
  350. required: true
  351. - variable: memory
  352. label: Memory
  353. description: Memory limit for WG-Easy.
  354. schema:
  355. type: string
  356. max_length: 12
  357. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  358. valid_chars_error: |
  359. Valid Memory limit formats are</br>
  360. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  361. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  362. - Plain Integer in bytes - eg. 1024</br>
  363. - Exponent - eg. 134e6
  364. default: "8Gi"
  365. required: true