questions.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. groups:
  2. - name: "Storage"
  3. description: "Configure Storage for Chia"
  4. - name: "Farmr.net Configuration"
  5. description: "Configure farmr.net support"
  6. - name: "Chia Environment Variables"
  7. description: "Set the environment that will be visible to the container"
  8. portals:
  9. web_portal:
  10. protocols:
  11. - "https"
  12. host:
  13. - "www.truepool.io"
  14. ports:
  15. - "443"
  16. path: "/kb/truepool-docker-image/"
  17. questions:
  18. - variable: farmr_env
  19. label: "Enable 'farmr.net' support"
  20. group: "Farmr.net Configuration"
  21. description: "Configure 'farmr.net' support for chia"
  22. schema:
  23. type: string
  24. default: "off"
  25. enum:
  26. - value: "off"
  27. description: "OFF"
  28. - value: "farmer"
  29. description: "FARMER"
  30. - value: "harvester"
  31. description: "HARVESTER"
  32. - variable: appVolumeMounts
  33. label: "Chia Storage"
  34. group: "Storage"
  35. schema:
  36. type: dict
  37. attrs:
  38. - variable: config
  39. label: "Configuration Volume"
  40. schema:
  41. type: dict
  42. attrs:
  43. - variable: datasetName
  44. label: "Configuration Volume Dataset Name"
  45. schema:
  46. type: string
  47. hidden: true
  48. $ref:
  49. - "normalize/ixVolume"
  50. show_if: [["hostPathEnabled", "=", false]]
  51. default: "config"
  52. editable: false
  53. - variable: mountPath
  54. label: "Configuration Mount Path"
  55. description: "Path where the volume will be mounted inside the pod"
  56. schema:
  57. type: path
  58. hidden: true
  59. editable: true
  60. default: "/data"
  61. - variable: hostPathEnabled
  62. label: "Enable Custom Host Path for Chia Configuration Volume"
  63. schema:
  64. type: boolean
  65. default: false
  66. show_subquestions_if: true
  67. subquestions:
  68. - variable: hostPath
  69. label: "Host Path for Chia Configuration Volume"
  70. schema:
  71. type: hostpath
  72. required: true
  73. - variable: plots
  74. label: "Plot Volume"
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: datasetName
  79. label: "Plots Volume Name"
  80. schema:
  81. type: string
  82. hidden: true
  83. $ref:
  84. - "normalize/ixVolume"
  85. show_if: [["hostPathEnabled", "=", false]]
  86. default: "plots"
  87. editable: false
  88. - variable: mountPath
  89. label: "Plots Mount Path"
  90. description: "Path where the volume will be mounted inside the pod"
  91. schema:
  92. type: path
  93. hidden: true
  94. editable: false
  95. default: "/plots"
  96. - variable: hostPathEnabled
  97. label: "Enable Custom Host Path for Chia Plots Volume"
  98. schema:
  99. type: boolean
  100. default: false
  101. show_subquestions_if: true
  102. subquestions:
  103. - variable: hostPath
  104. label: "Host Path for Chia Plots Volume"
  105. schema:
  106. type: hostpath
  107. required: true
  108. - variable: extraAppVolumeMounts
  109. label: "Chia Extra Host Path Volumes"
  110. group: "Storage"
  111. schema:
  112. type: list
  113. items:
  114. - variable: extraAppVolume
  115. label: "Chia Host Path Volume"
  116. description: "Add an extra host path volume for chia application"
  117. schema:
  118. type: dict
  119. attrs:
  120. - variable: mountPath
  121. label: "Mount Path in Pod"
  122. description: "Path where the volume will be mounted inside the pod"
  123. schema:
  124. type: path
  125. required: true
  126. - variable: hostPath
  127. label: "Host Path"
  128. description: "Host path"
  129. schema:
  130. type: hostpath
  131. required: true
  132. - variable: environmentVariables
  133. label: "Environment Variables for Chia"
  134. group: "Chia Environment Variables"
  135. schema:
  136. type: list
  137. default: []
  138. items:
  139. - variable: environmentVariable
  140. label: "Environment Variable"
  141. schema:
  142. type: dict
  143. attrs:
  144. - variable: name
  145. label: "Name"
  146. schema:
  147. type: string
  148. - variable: value
  149. label: "Value"
  150. schema:
  151. type: string