questions.yaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. groups:
  2. - name: Netboot.xyz Configuration
  3. description: Configure Netboot.xyz
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Netboot.xyz
  6. - name: Network Configuration
  7. description: Configure Network for Netboot.xyz
  8. - name: Storage Configuration
  9. description: Configure Storage for Netboot.xyz
  10. - name: Labels Configuration
  11. description: Configure Labels for Netboot.xyz
  12. - name: Resources Configuration
  13. description: Configure Resources for Netboot.xyz
  14. questions:
  15. - variable: TZ
  16. group: Netboot.xyz Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: netbootxyz
  25. label: ""
  26. group: Netboot.xyz Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: tftpd_opts
  31. label: TFTPD Options
  32. description: Additional options for the TFTPD service.
  33. schema:
  34. type: list
  35. default: []
  36. items:
  37. - variable: opt
  38. label: Option
  39. schema:
  40. type: string
  41. required: true
  42. - variable: additional_envs
  43. label: Additional Environment Variables
  44. schema:
  45. type: list
  46. default: []
  47. items:
  48. - variable: env
  49. label: Environment Variable
  50. schema:
  51. type: dict
  52. attrs:
  53. - variable: name
  54. label: Name
  55. schema:
  56. type: string
  57. required: true
  58. - variable: value
  59. label: Value
  60. schema:
  61. type: string
  62. - variable: run_as
  63. label: ""
  64. group: User and Group Configuration
  65. schema:
  66. type: dict
  67. attrs:
  68. - variable: user
  69. label: User ID
  70. description: The user id that Netboot.xyz files will be owned by.
  71. schema:
  72. type: int
  73. min: 568
  74. default: 568
  75. required: true
  76. - variable: group
  77. label: Group ID
  78. description: The group id that Netboot.xyz files will be owned by.
  79. schema:
  80. type: int
  81. min: 568
  82. default: 568
  83. required: true
  84. - variable: network
  85. label: ""
  86. group: Network Configuration
  87. schema:
  88. type: dict
  89. attrs:
  90. - variable: tftp_port
  91. label: TFTP Port
  92. description: The TFTP port for netboot.xyz.
  93. schema:
  94. type: dict
  95. show_if: [["host_network", "=", false]]
  96. attrs:
  97. - variable: bind_mode
  98. label: Port Bind Mode
  99. description: |
  100. The port bind mode.</br>
  101. - Publish: The port will be published on the host for external access.</br>
  102. - Expose: The port will be exposed for inter-container communication.</br>
  103. - None: The port will not be exposed or published.</br>
  104. Note: If the Dockerfile defines an EXPOSE directive,
  105. the port will still be exposed for inter-container communication regardless of this setting.
  106. schema:
  107. type: string
  108. default: "published"
  109. enum:
  110. - value: "published"
  111. description: Publish port on the host for external access
  112. - value: "exposed"
  113. description: Expose port for inter-container communication
  114. - value: ""
  115. description: None
  116. - variable: port_number
  117. label: Port Number
  118. schema:
  119. type: int
  120. show_if: [["bind_mode", "=", "published"]]
  121. default: 31009
  122. min: 1
  123. max: 65535
  124. required: true
  125. - variable: host_ips
  126. label: Host IPs
  127. description: IPs on the host to bind this port
  128. schema:
  129. type: list
  130. show_if: [["bind_mode", "=", "published"]]
  131. default: []
  132. items:
  133. - variable: host_ip
  134. label: Host IP
  135. schema:
  136. type: string
  137. required: true
  138. $ref:
  139. - definitions/node_bind_ip
  140. - variable: web_http_port
  141. label: Web HTTP Port
  142. description: The HTTP port for the netboot.xyz Portal.
  143. schema:
  144. type: dict
  145. attrs:
  146. - variable: bind_mode
  147. label: Port Bind Mode
  148. description: |
  149. The port bind mode.</br>
  150. - Publish: The port will be published on the host for external access.</br>
  151. - Expose: The port will be exposed for inter-container communication.</br>
  152. - None: The port will not be exposed or published.</br>
  153. Note: If the Dockerfile defines an EXPOSE directive,
  154. the port will still be exposed for inter-container communication regardless of this setting.
  155. schema:
  156. type: string
  157. default: "published"
  158. enum:
  159. - value: "published"
  160. description: Publish port on the host for external access
  161. - value: "exposed"
  162. description: Expose port for inter-container communication
  163. - value: ""
  164. description: None
  165. - variable: port_number
  166. label: Port Number
  167. schema:
  168. type: int
  169. default: 31010
  170. min: 1
  171. max: 65535
  172. required: true
  173. - variable: host_ips
  174. label: Host IPs
  175. description: IPs on the host to bind this port
  176. schema:
  177. type: list
  178. show_if: [["bind_mode", "=", "published"]]
  179. default: []
  180. items:
  181. - variable: host_ip
  182. label: Host IP
  183. schema:
  184. type: string
  185. required: true
  186. $ref:
  187. - definitions/node_bind_ip
  188. - variable: web_assets_port
  189. label: Web Assets Port
  190. description: The Assets port for the netboot.xyz, configures the NGINX_PORT variable on the container.
  191. schema:
  192. type: dict
  193. attrs:
  194. - variable: bind_mode
  195. label: Port Bind Mode
  196. description: |
  197. The port bind mode.</br>
  198. - Publish: The port will be published on the host for external access.</br>
  199. - Expose: The port will be exposed for inter-container communication.</br>
  200. - None: The port will not be exposed or published.</br>
  201. Note: If the Dockerfile defines an EXPOSE directive,
  202. the port will still be exposed for inter-container communication regardless of this setting.
  203. schema:
  204. type: string
  205. default: "published"
  206. enum:
  207. - value: "published"
  208. description: Publish port on the host for external access
  209. - value: "exposed"
  210. description: Expose port for inter-container communication
  211. - value: ""
  212. description: None
  213. - variable: port_number
  214. label: Port Number
  215. schema:
  216. type: int
  217. default: 31011
  218. min: 1
  219. max: 65535
  220. required: true
  221. - variable: host_ips
  222. label: Host IPs
  223. description: IPs on the host to bind this port
  224. schema:
  225. type: list
  226. show_if: [["bind_mode", "=", "published"]]
  227. default: []
  228. items:
  229. - variable: host_ip
  230. label: Host IP
  231. schema:
  232. type: string
  233. required: true
  234. $ref:
  235. - definitions/node_bind_ip
  236. - variable: host_network
  237. label: Host Network
  238. description: |
  239. Bind to the host network. It's recommended to keep this disabled.
  240. schema:
  241. type: boolean
  242. default: true
  243. - variable: storage
  244. label: ""
  245. group: Storage Configuration
  246. schema:
  247. type: dict
  248. attrs:
  249. - variable: config
  250. label: Netboot.xyz Config Storage
  251. description: The path to store Netboot.xyz Config.
  252. schema:
  253. type: dict
  254. attrs:
  255. - variable: type
  256. label: Type
  257. description: |
  258. ixVolume: Is dataset created automatically by the system.</br>
  259. Host Path: Is a path that already exists on the system.
  260. schema:
  261. type: string
  262. required: true
  263. default: "ix_volume"
  264. enum:
  265. - value: "host_path"
  266. description: Host Path (Path that already exists on the system)
  267. - value: "ix_volume"
  268. description: ixVolume (Dataset created automatically by the system)
  269. - variable: ix_volume_config
  270. label: ixVolume Configuration
  271. description: The configuration for the ixVolume dataset.
  272. schema:
  273. type: dict
  274. show_if: [["type", "=", "ix_volume"]]
  275. $ref:
  276. - "normalize/ix_volume"
  277. attrs:
  278. - variable: acl_enable
  279. label: Enable ACL
  280. description: Enable ACL for the storage.
  281. schema:
  282. type: boolean
  283. default: false
  284. - variable: dataset_name
  285. label: Dataset Name
  286. description: The name of the dataset to use for storage.
  287. schema:
  288. type: string
  289. required: true
  290. hidden: true
  291. default: "config"
  292. - variable: acl_entries
  293. label: ACL Configuration
  294. schema:
  295. type: dict
  296. show_if: [["acl_enable", "=", true]]
  297. attrs: []
  298. - variable: host_path_config
  299. label: Host Path Configuration
  300. schema:
  301. type: dict
  302. show_if: [["type", "=", "host_path"]]
  303. attrs:
  304. - variable: acl_enable
  305. label: Enable ACL
  306. description: Enable ACL for the storage.
  307. schema:
  308. type: boolean
  309. default: false
  310. - variable: acl
  311. label: ACL Configuration
  312. schema:
  313. type: dict
  314. show_if: [["acl_enable", "=", true]]
  315. attrs: []
  316. $ref:
  317. - "normalize/acl"
  318. - variable: path
  319. label: Host Path
  320. description: The host path to use for storage.
  321. schema:
  322. type: hostpath
  323. show_if: [["acl_enable", "=", false]]
  324. required: true
  325. - variable: assets
  326. label: Netboot.xyz Assets Storage
  327. description: The path to store Netboot.xyz Assets.
  328. schema:
  329. type: dict
  330. attrs:
  331. - variable: type
  332. label: Type
  333. description: |
  334. ixVolume: Is dataset created automatically by the system.</br>
  335. Host Path: Is a path that already exists on the system.
  336. schema:
  337. type: string
  338. required: true
  339. default: "ix_volume"
  340. enum:
  341. - value: "host_path"
  342. description: Host Path (Path that already exists on the system)
  343. - value: "ix_volume"
  344. description: ixVolume (Dataset created automatically by the system)
  345. - variable: ix_volume_config
  346. label: ixVolume Configuration
  347. description: The configuration for the ixVolume dataset.
  348. schema:
  349. type: dict
  350. show_if: [["type", "=", "ix_volume"]]
  351. $ref:
  352. - "normalize/ix_volume"
  353. attrs:
  354. - variable: acl_enable
  355. label: Enable ACL
  356. description: Enable ACL for the storage.
  357. schema:
  358. type: boolean
  359. default: false
  360. - variable: dataset_name
  361. label: Dataset Name
  362. description: The name of the dataset to use for storage.
  363. schema:
  364. type: string
  365. required: true
  366. hidden: true
  367. default: "assets"
  368. - variable: acl_entries
  369. label: ACL Configuration
  370. schema:
  371. type: dict
  372. show_if: [["acl_enable", "=", true]]
  373. attrs: []
  374. - variable: host_path_config
  375. label: Host Path Configuration
  376. schema:
  377. type: dict
  378. show_if: [["type", "=", "host_path"]]
  379. attrs:
  380. - variable: acl_enable
  381. label: Enable ACL
  382. description: Enable ACL for the storage.
  383. schema:
  384. type: boolean
  385. default: false
  386. - variable: acl
  387. label: ACL Configuration
  388. schema:
  389. type: dict
  390. show_if: [["acl_enable", "=", true]]
  391. attrs: []
  392. $ref:
  393. - "normalize/acl"
  394. - variable: path
  395. label: Host Path
  396. description: The host path to use for storage.
  397. schema:
  398. type: hostpath
  399. show_if: [["acl_enable", "=", false]]
  400. required: true
  401. - variable: additional_storage
  402. label: Additional Storage
  403. schema:
  404. type: list
  405. default: []
  406. items:
  407. - variable: storageEntry
  408. label: Storage Entry
  409. schema:
  410. type: dict
  411. attrs:
  412. - variable: type
  413. label: Type
  414. description: |
  415. ixVolume: Is dataset created automatically by the system.</br>
  416. Host Path: Is a path that already exists on the system.</br>
  417. SMB Share: Is a SMB share that is mounted to as a volume.
  418. schema:
  419. type: string
  420. required: true
  421. default: "ix_volume"
  422. enum:
  423. - value: "host_path"
  424. description: Host Path (Path that already exists on the system)
  425. - value: "ix_volume"
  426. description: ixVolume (Dataset created automatically by the system)
  427. - value: "cifs"
  428. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  429. - variable: read_only
  430. label: Read Only
  431. description: Mount the volume as read only.
  432. schema:
  433. type: boolean
  434. default: false
  435. - variable: mount_path
  436. label: Mount Path
  437. description: The path inside the container to mount the storage.
  438. schema:
  439. type: path
  440. required: true
  441. - variable: host_path_config
  442. label: Host Path Configuration
  443. schema:
  444. type: dict
  445. show_if: [["type", "=", "host_path"]]
  446. attrs:
  447. - variable: acl_enable
  448. label: Enable ACL
  449. description: Enable ACL for the storage.
  450. schema:
  451. type: boolean
  452. default: false
  453. - variable: acl
  454. label: ACL Configuration
  455. schema:
  456. type: dict
  457. show_if: [["acl_enable", "=", true]]
  458. attrs: []
  459. $ref:
  460. - "normalize/acl"
  461. - variable: path
  462. label: Host Path
  463. description: The host path to use for storage.
  464. schema:
  465. type: hostpath
  466. show_if: [["acl_enable", "=", false]]
  467. required: true
  468. - variable: ix_volume_config
  469. label: ixVolume Configuration
  470. description: The configuration for the ixVolume dataset.
  471. schema:
  472. type: dict
  473. show_if: [["type", "=", "ix_volume"]]
  474. $ref:
  475. - "normalize/ix_volume"
  476. attrs:
  477. - variable: acl_enable
  478. label: Enable ACL
  479. description: Enable ACL for the storage.
  480. schema:
  481. type: boolean
  482. default: false
  483. - variable: dataset_name
  484. label: Dataset Name
  485. description: The name of the dataset to use for storage.
  486. schema:
  487. type: string
  488. required: true
  489. default: "storage_entry"
  490. - variable: acl_entries
  491. label: ACL Configuration
  492. schema:
  493. type: dict
  494. show_if: [["acl_enable", "=", true]]
  495. attrs: []
  496. - variable: cifs_config
  497. label: SMB Configuration
  498. description: The configuration for the SMB dataset.
  499. schema:
  500. type: dict
  501. show_if: [["type", "=", "cifs"]]
  502. attrs:
  503. - variable: server
  504. label: Server
  505. description: The server to mount the SMB share.
  506. schema:
  507. type: string
  508. required: true
  509. - variable: path
  510. label: Path
  511. description: The path to mount the SMB share.
  512. schema:
  513. type: string
  514. required: true
  515. - variable: username
  516. label: Username
  517. description: The username to use for the SMB share.
  518. schema:
  519. type: string
  520. required: true
  521. - variable: password
  522. label: Password
  523. description: The password to use for the SMB share.
  524. schema:
  525. type: string
  526. required: true
  527. private: true
  528. - variable: domain
  529. label: Domain
  530. description: The domain to use for the SMB share.
  531. schema:
  532. type: string
  533. - variable: labels
  534. label: ""
  535. group: Labels Configuration
  536. schema:
  537. type: list
  538. default: []
  539. items:
  540. - variable: label
  541. label: Label
  542. schema:
  543. type: dict
  544. attrs:
  545. - variable: key
  546. label: Key
  547. schema:
  548. type: string
  549. required: true
  550. - variable: value
  551. label: Value
  552. schema:
  553. type: string
  554. required: true
  555. - variable: containers
  556. label: Containers
  557. description: Containers where the label should be applied
  558. schema:
  559. type: list
  560. items:
  561. - variable: container
  562. label: Container
  563. schema:
  564. type: string
  565. required: true
  566. enum:
  567. - value: netboot
  568. description: netboot
  569. - variable: resources
  570. label: ""
  571. group: Resources Configuration
  572. schema:
  573. type: dict
  574. attrs:
  575. - variable: limits
  576. label: Limits
  577. schema:
  578. type: dict
  579. attrs:
  580. - variable: cpus
  581. label: CPUs
  582. description: CPUs limit for Netboot.xyz.
  583. schema:
  584. type: int
  585. default: 2
  586. required: true
  587. - variable: memory
  588. label: Memory (in MB)
  589. description: Memory limit for Netboot.xyz.
  590. schema:
  591. type: int
  592. default: 4096
  593. required: true