questions.yaml 18 KB

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