questions.yaml 11 KB

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