questions.yaml 5.0 KB

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