questions.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. groups:
  2. - name: Luanti Configuration
  3. description: Configure Luanti
  4. - name: Network Configuration
  5. description: Configure Network for Luanti
  6. - name: Storage Configuration
  7. description: Configure Storage for Luanti
  8. - name: Labels Configuration
  9. description: Configure Labels for Luanti
  10. - name: Resources Configuration
  11. description: Configure Resources for Luanti
  12. questions:
  13. - variable: luanti
  14. label: ""
  15. group: Luanti Configuration
  16. schema:
  17. type: dict
  18. attrs:
  19. - variable: author
  20. label: Author
  21. description: |
  22. Select any game from this list: https://content.luanti.org/packages/?type=game</br>
  23. Either from the URL or in the website, you can find the author of the game.</br>
  24. For example for https://content.luanti.org/packages/Luanti/minetest_game, the author is Luanti.
  25. schema:
  26. type: string
  27. default: "Luanti"
  28. required: true
  29. - variable: map_name
  30. label: Map Name
  31. description: |
  32. The name of the map to load in Luanti.</br>
  33. You can find the map name in the URL of the game page.</br>
  34. For example for https://content.luanti.org/packages/Luanti/minetest_game, the map name is minetest_game.
  35. schema:
  36. type: string
  37. default: "minetest_game"
  38. required: true
  39. - variable: release
  40. label: Release
  41. description: |
  42. If you want to use the latest release, leave this field empty. </br>
  43. The release of the game to use.</br>
  44. You can find the release in the URL of the game page.</br>
  45. Copy the URL of the release and get the release id</br>
  46. For example for https://content.luanti.org/packages/Luanti/minetest_game/releases/31703/download, the release id is 31703.
  47. schema:
  48. type: string
  49. default: ""
  50. - variable: additional_envs
  51. label: Additional Environment Variables
  52. schema:
  53. type: list
  54. default: []
  55. items:
  56. - variable: env
  57. label: Environment Variable
  58. schema:
  59. type: dict
  60. attrs:
  61. - variable: name
  62. label: Name
  63. schema:
  64. type: string
  65. required: true
  66. - variable: value
  67. label: Value
  68. schema:
  69. type: string
  70. - variable: network
  71. label: ""
  72. group: Network Configuration
  73. schema:
  74. type: dict
  75. attrs:
  76. - variable: game_port
  77. label: Game Port
  78. schema:
  79. type: dict
  80. attrs:
  81. - variable: bind_mode
  82. label: Port Bind Mode
  83. description: |
  84. The port bind mode.</br>
  85. - Publish: The port will be published on the host for external access.</br>
  86. - Expose: The port will be exposed for inter-container communication.</br>
  87. - None: The port will not be exposed or published.</br>
  88. Note: If the Dockerfile defines an EXPOSE directive,
  89. the port will still be exposed for inter-container communication regardless of this setting.
  90. schema:
  91. type: string
  92. default: "published"
  93. enum:
  94. - value: "published"
  95. description: Publish port on the host for external access
  96. - value: "exposed"
  97. description: Expose port for inter-container communication
  98. - value: ""
  99. description: None
  100. - variable: port_number
  101. label: Port Number
  102. schema:
  103. type: int
  104. default: 30205
  105. min: 1
  106. max: 65535
  107. required: true
  108. - variable: host_ips
  109. label: Host IPs
  110. description: IPs on the host to bind this port
  111. schema:
  112. type: list
  113. show_if: [["bind_mode", "=", "published"]]
  114. default: []
  115. items:
  116. - variable: host_ip
  117. label: Host IP
  118. schema:
  119. type: string
  120. required: true
  121. $ref:
  122. - definitions/node_bind_ip
  123. - variable: host_network
  124. label: Host Network
  125. description: Bind to the host network. It's recommended to keep this disabled.
  126. schema:
  127. type: boolean
  128. default: false
  129. - variable: storage
  130. label: ""
  131. group: Storage Configuration
  132. schema:
  133. type: dict
  134. attrs:
  135. - variable: config
  136. label: Config Storage
  137. schema:
  138. type: dict
  139. attrs:
  140. - variable: type
  141. label: Type
  142. description: |
  143. ixVolume: Is dataset created automatically by the system.</br>
  144. Host Path: Is a path that already exists on the system.
  145. schema:
  146. type: string
  147. required: true
  148. default: "ix_volume"
  149. enum:
  150. - value: "host_path"
  151. description: Host Path (Path that already exists on the system)
  152. - value: "ix_volume"
  153. description: ixVolume (Dataset created automatically by the system)
  154. - variable: ix_volume_config
  155. label: ixVolume Configuration
  156. description: The configuration for the ixVolume dataset.
  157. schema:
  158. type: dict
  159. show_if: [["type", "=", "ix_volume"]]
  160. $ref:
  161. - "normalize/ix_volume"
  162. attrs:
  163. - variable: acl_enable
  164. label: Enable ACL
  165. description: Enable ACL for the storage.
  166. schema:
  167. type: boolean
  168. default: false
  169. - variable: dataset_name
  170. label: Dataset Name
  171. description: The name of the dataset to use for storage.
  172. schema:
  173. type: string
  174. required: true
  175. hidden: true
  176. default: "config"
  177. - variable: acl_entries
  178. label: ACL Configuration
  179. schema:
  180. type: dict
  181. show_if: [["acl_enable", "=", true]]
  182. attrs: []
  183. - variable: host_path_config
  184. label: Host Path Configuration
  185. schema:
  186. type: dict
  187. show_if: [["type", "=", "host_path"]]
  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: acl
  196. label: ACL Configuration
  197. schema:
  198. type: dict
  199. show_if: [["acl_enable", "=", true]]
  200. attrs: []
  201. $ref:
  202. - "normalize/acl"
  203. - variable: path
  204. label: Host Path
  205. description: The host path to use for storage.
  206. schema:
  207. type: hostpath
  208. show_if: [["acl_enable", "=", false]]
  209. required: true
  210. - variable: data
  211. label: Data Storage
  212. schema:
  213. type: dict
  214. attrs:
  215. - variable: type
  216. label: Type
  217. description: |
  218. ixVolume: Is dataset created automatically by the system.</br>
  219. Host Path: Is a path that already exists on the system.
  220. schema:
  221. type: string
  222. required: true
  223. default: "ix_volume"
  224. enum:
  225. - value: "host_path"
  226. description: Host Path (Path that already exists on the system)
  227. - value: "ix_volume"
  228. description: ixVolume (Dataset created automatically by the system)
  229. - variable: ix_volume_config
  230. label: ixVolume Configuration
  231. description: The configuration for the ixVolume dataset.
  232. schema:
  233. type: dict
  234. show_if: [["type", "=", "ix_volume"]]
  235. $ref:
  236. - "normalize/ix_volume"
  237. attrs:
  238. - variable: acl_enable
  239. label: Enable ACL
  240. description: Enable ACL for the storage.
  241. schema:
  242. type: boolean
  243. default: false
  244. - variable: dataset_name
  245. label: Dataset Name
  246. description: The name of the dataset to use for storage.
  247. schema:
  248. type: string
  249. required: true
  250. hidden: true
  251. default: "data"
  252. - variable: acl_entries
  253. label: ACL Configuration
  254. schema:
  255. type: dict
  256. show_if: [["acl_enable", "=", true]]
  257. attrs: []
  258. - variable: host_path_config
  259. label: Host Path Configuration
  260. schema:
  261. type: dict
  262. show_if: [["type", "=", "host_path"]]
  263. attrs:
  264. - variable: acl_enable
  265. label: Enable ACL
  266. description: Enable ACL for the storage.
  267. schema:
  268. type: boolean
  269. default: false
  270. - variable: acl
  271. label: ACL Configuration
  272. schema:
  273. type: dict
  274. show_if: [["acl_enable", "=", true]]
  275. attrs: []
  276. $ref:
  277. - "normalize/acl"
  278. - variable: path
  279. label: Host Path
  280. description: The host path to use for storage.
  281. schema:
  282. type: hostpath
  283. show_if: [["acl_enable", "=", false]]
  284. required: true
  285. - variable: additional_storage
  286. label: Additional Storage
  287. schema:
  288. type: list
  289. default: []
  290. items:
  291. - variable: storageEntry
  292. label: Storage Entry
  293. schema:
  294. type: dict
  295. attrs:
  296. - variable: type
  297. label: Type
  298. description: |
  299. ixVolume: Is dataset created automatically by the system.</br>
  300. Host Path: Is a path that already exists on the system.</br>
  301. SMB Share: Is a SMB share that is mounted to as a volume.
  302. schema:
  303. type: string
  304. required: true
  305. default: "ix_volume"
  306. enum:
  307. - value: "host_path"
  308. description: Host Path (Path that already exists on the system)
  309. - value: "ix_volume"
  310. description: ixVolume (Dataset created automatically by the system)
  311. - value: "cifs"
  312. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  313. - variable: read_only
  314. label: Read Only
  315. description: Mount the volume as read only.
  316. schema:
  317. type: boolean
  318. default: false
  319. - variable: mount_path
  320. label: Mount Path
  321. description: The path inside the container to mount the storage.
  322. schema:
  323. type: path
  324. required: true
  325. - variable: host_path_config
  326. label: Host Path Configuration
  327. schema:
  328. type: dict
  329. show_if: [["type", "=", "host_path"]]
  330. attrs:
  331. - variable: acl_enable
  332. label: Enable ACL
  333. description: Enable ACL for the storage.
  334. schema:
  335. type: boolean
  336. default: false
  337. - variable: acl
  338. label: ACL Configuration
  339. schema:
  340. type: dict
  341. show_if: [["acl_enable", "=", true]]
  342. attrs: []
  343. $ref:
  344. - "normalize/acl"
  345. - variable: path
  346. label: Host Path
  347. description: The host path to use for storage.
  348. schema:
  349. type: hostpath
  350. show_if: [["acl_enable", "=", false]]
  351. required: true
  352. - variable: ix_volume_config
  353. label: ixVolume Configuration
  354. description: The configuration for the ixVolume dataset.
  355. schema:
  356. type: dict
  357. show_if: [["type", "=", "ix_volume"]]
  358. $ref:
  359. - "normalize/ix_volume"
  360. attrs:
  361. - variable: acl_enable
  362. label: Enable ACL
  363. description: Enable ACL for the storage.
  364. schema:
  365. type: boolean
  366. default: false
  367. - variable: dataset_name
  368. label: Dataset Name
  369. description: The name of the dataset to use for storage.
  370. schema:
  371. type: string
  372. required: true
  373. default: "storage_entry"
  374. - variable: acl_entries
  375. label: ACL Configuration
  376. schema:
  377. type: dict
  378. show_if: [["acl_enable", "=", true]]
  379. attrs: []
  380. $ref:
  381. - "normalize/acl"
  382. - variable: cifs_config
  383. label: SMB Configuration
  384. description: The configuration for the SMB dataset.
  385. schema:
  386. type: dict
  387. show_if: [["type", "=", "cifs"]]
  388. attrs:
  389. - variable: server
  390. label: Server
  391. description: The server to mount the SMB share.
  392. schema:
  393. type: string
  394. required: true
  395. - variable: path
  396. label: Path
  397. description: The path to mount the SMB share.
  398. schema:
  399. type: string
  400. required: true
  401. - variable: username
  402. label: Username
  403. description: The username to use for the SMB share.
  404. schema:
  405. type: string
  406. required: true
  407. - variable: password
  408. label: Password
  409. description: The password to use for the SMB share.
  410. schema:
  411. type: string
  412. required: true
  413. private: true
  414. - variable: domain
  415. label: Domain
  416. description: The domain to use for the SMB share.
  417. schema:
  418. type: string
  419. - variable: labels
  420. label: ""
  421. group: Labels Configuration
  422. schema:
  423. type: list
  424. default: []
  425. items:
  426. - variable: label
  427. label: Label
  428. schema:
  429. type: dict
  430. attrs:
  431. - variable: key
  432. label: Key
  433. schema:
  434. type: string
  435. required: true
  436. - variable: value
  437. label: Value
  438. schema:
  439. type: string
  440. required: true
  441. - variable: containers
  442. label: Containers
  443. description: Containers where the label should be applied
  444. schema:
  445. type: list
  446. items:
  447. - variable: container
  448. label: Container
  449. schema:
  450. type: string
  451. required: true
  452. enum:
  453. - value: luanti
  454. description: luanti
  455. - variable: resources
  456. label: ""
  457. group: Resources Configuration
  458. schema:
  459. type: dict
  460. attrs:
  461. - variable: limits
  462. label: Limits
  463. schema:
  464. type: dict
  465. attrs:
  466. - variable: cpus
  467. label: CPUs
  468. description: CPUs limit for Luanti.
  469. schema:
  470. type: int
  471. default: 2
  472. required: true
  473. - variable: memory
  474. label: Memory (in MB)
  475. description: Memory limit for Luanti.
  476. schema:
  477. type: int
  478. default: 4096
  479. required: true