questions.yaml 21 KB

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