questions.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. groups:
  2. - name: Cockpit WS Configuration
  3. description: Configure Cockpit WS
  4. - name: Network Configuration
  5. description: Configure Network for Cockpit WS
  6. - name: Storage Configuration
  7. description: Configure Storage for Cockpit WS
  8. - name: Labels Configuration
  9. description: Configure Labels for Cockpit WS
  10. - name: Resources Configuration
  11. description: Configure Resources for Cockpit WS
  12. questions:
  13. - variable: TZ
  14. group: Cockpit WS Configuration
  15. label: Timezone
  16. schema:
  17. type: string
  18. default: Etc/UTC
  19. required: true
  20. $ref:
  21. - definitions/timezone
  22. - variable: cockpit
  23. label: ""
  24. group: Cockpit WS Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: additional_envs
  29. label: Additional Environment Variables
  30. schema:
  31. type: list
  32. default: []
  33. items:
  34. - variable: env
  35. label: Environment Variable
  36. schema:
  37. type: dict
  38. attrs:
  39. - variable: name
  40. label: Name
  41. schema:
  42. type: string
  43. required: true
  44. - variable: value
  45. label: Value
  46. schema:
  47. type: string
  48. - variable: network
  49. label: ""
  50. group: Network Configuration
  51. schema:
  52. type: dict
  53. attrs:
  54. - variable: web_port
  55. label: WebUI Port
  56. schema:
  57. type: dict
  58. attrs:
  59. - variable: bind_mode
  60. label: Port Bind Mode
  61. description: |
  62. The port bind mode.</br>
  63. - Publish: The port will be published on the host for external access.</br>
  64. - Expose: The port will be exposed for inter-container communication.</br>
  65. - None: The port will not be exposed or published.</br>
  66. Note: If the Dockerfile defines an EXPOSE directive,
  67. the port will still be exposed for inter-container communication regardless of this setting.
  68. schema:
  69. type: string
  70. default: "published"
  71. enum:
  72. - value: "published"
  73. description: Publish port on the host for external access
  74. - value: "exposed"
  75. description: Expose port for inter-container communication
  76. - value: ""
  77. description: None
  78. - variable: port_number
  79. label: Port Number
  80. schema:
  81. type: int
  82. default: 30137
  83. min: 1
  84. max: 65535
  85. required: true
  86. - variable: host_ips
  87. label: Host IPs
  88. description: IPs on the host to bind this port
  89. schema:
  90. type: list
  91. show_if: [["bind_mode", "=", "published"]]
  92. default: []
  93. items:
  94. - variable: host_ip
  95. label: Host IP
  96. schema:
  97. type: string
  98. required: true
  99. $ref:
  100. - definitions/node_bind_ip
  101. - variable: host_network
  102. label: Host Network
  103. description: |
  104. Bind to the host network. It's recommended to keep this disabled.
  105. schema:
  106. type: boolean
  107. default: false
  108. - variable: storage
  109. label: ""
  110. group: Storage Configuration
  111. schema:
  112. type: dict
  113. attrs:
  114. - variable: additional_storage
  115. label: Additional Storage
  116. schema:
  117. type: list
  118. default: []
  119. items:
  120. - variable: storageEntry
  121. label: Storage Entry
  122. schema:
  123. type: dict
  124. attrs:
  125. - variable: type
  126. label: Type
  127. description: |
  128. ixVolume: Is dataset created automatically by the system.</br>
  129. Host Path: Is a path that already exists on the system.</br>
  130. SMB Share: Is a SMB share that is mounted to as a volume.
  131. schema:
  132. type: string
  133. required: true
  134. default: "ix_volume"
  135. enum:
  136. - value: "host_path"
  137. description: Host Path (Path that already exists on the system)
  138. - value: "ix_volume"
  139. description: ixVolume (Dataset created automatically by the system)
  140. - value: "cifs"
  141. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  142. - variable: read_only
  143. label: Read Only
  144. description: Mount the volume as read only.
  145. schema:
  146. type: boolean
  147. default: false
  148. - variable: mount_path
  149. label: Mount Path
  150. description: The path inside the container to mount the storage.
  151. schema:
  152. type: path
  153. required: true
  154. - variable: host_path_config
  155. label: Host Path Configuration
  156. schema:
  157. type: dict
  158. show_if: [["type", "=", "host_path"]]
  159. attrs:
  160. - variable: acl_enable
  161. label: Enable ACL
  162. description: Enable ACL for the storage.
  163. schema:
  164. type: boolean
  165. default: false
  166. - variable: acl
  167. label: ACL Configuration
  168. schema:
  169. type: dict
  170. show_if: [["acl_enable", "=", true]]
  171. attrs: []
  172. $ref:
  173. - "normalize/acl"
  174. - variable: path
  175. label: Host Path
  176. description: The host path to use for storage.
  177. schema:
  178. type: hostpath
  179. show_if: [["acl_enable", "=", false]]
  180. required: true
  181. - variable: ix_volume_config
  182. label: ixVolume Configuration
  183. description: The configuration for the ixVolume dataset.
  184. schema:
  185. type: dict
  186. show_if: [["type", "=", "ix_volume"]]
  187. $ref:
  188. - "normalize/ix_volume"
  189. attrs:
  190. - variable: acl_enable
  191. label: Enable ACL
  192. description: Enable ACL for the storage.
  193. schema:
  194. type: boolean
  195. default: false
  196. - variable: dataset_name
  197. label: Dataset Name
  198. description: The name of the dataset to use for storage.
  199. schema:
  200. type: string
  201. required: true
  202. default: "storage_entry"
  203. - variable: acl_entries
  204. label: ACL Configuration
  205. schema:
  206. type: dict
  207. show_if: [["acl_enable", "=", true]]
  208. attrs: []
  209. $ref:
  210. - "normalize/acl"
  211. - variable: cifs_config
  212. label: SMB Configuration
  213. description: The configuration for the SMB dataset.
  214. schema:
  215. type: dict
  216. show_if: [["type", "=", "cifs"]]
  217. attrs:
  218. - variable: server
  219. label: Server
  220. description: The server to mount the SMB share.
  221. schema:
  222. type: string
  223. required: true
  224. - variable: path
  225. label: Path
  226. description: The path to mount the SMB share.
  227. schema:
  228. type: string
  229. required: true
  230. - variable: username
  231. label: Username
  232. description: The username to use for the SMB share.
  233. schema:
  234. type: string
  235. required: true
  236. - variable: password
  237. label: Password
  238. description: The password to use for the SMB share.
  239. schema:
  240. type: string
  241. required: true
  242. private: true
  243. - variable: domain
  244. label: Domain
  245. description: The domain to use for the SMB share.
  246. schema:
  247. type: string
  248. - variable: labels
  249. label: ""
  250. group: Labels Configuration
  251. schema:
  252. type: list
  253. default: []
  254. items:
  255. - variable: label
  256. label: Label
  257. schema:
  258. type: dict
  259. attrs:
  260. - variable: key
  261. label: Key
  262. schema:
  263. type: string
  264. required: true
  265. - variable: value
  266. label: Value
  267. schema:
  268. type: string
  269. required: true
  270. - variable: containers
  271. label: Containers
  272. description: Containers where the label should be applied
  273. schema:
  274. type: list
  275. items:
  276. - variable: container
  277. label: Container
  278. schema:
  279. type: string
  280. required: true
  281. enum:
  282. - value: cockpit
  283. description: cockpit
  284. - variable: resources
  285. label: ""
  286. group: Resources Configuration
  287. schema:
  288. type: dict
  289. attrs:
  290. - variable: limits
  291. label: Limits
  292. schema:
  293. type: dict
  294. attrs:
  295. - variable: cpus
  296. label: CPUs
  297. description: CPUs limit for Cockpit WS.
  298. schema:
  299. type: int
  300. default: 2
  301. required: true
  302. - variable: memory
  303. label: Memory (in MB)
  304. description: Memory limit for Cockpit WS.
  305. schema:
  306. type: int
  307. default: 4096
  308. required: true