questions.yaml 14 KB

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