questions.yaml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. groups:
  2. - name: TFTP Configuration
  3. description: Configure TFTP
  4. - name: Network Configuration
  5. description: Configure Network for TFTP
  6. - name: Storage Configuration
  7. description: Configure Storage for TFTP
  8. - name: Resources Configuration
  9. description: Configure Resources for TFTP
  10. questions:
  11. - variable: TZ
  12. group: TFTP Configuration
  13. label: Timezone
  14. schema:
  15. type: string
  16. default: Etc/UTC
  17. required: true
  18. $ref:
  19. - definitions/timezone
  20. - variable: tftpConfig
  21. label: ""
  22. group: TFTP Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: allowCreate
  27. label: Allow Create
  28. description: |
  29. Allow new files to be created. This is disabled by default.</br>
  30. Enabling this will change the permissions of the tftpboot directory to 757.
  31. Disabling this will change the permissions of the tftpboot directory to 555.
  32. schema:
  33. type: boolean
  34. default: false
  35. - variable: additionalEnvs
  36. label: Additional Environment Variables
  37. description: Configure additional environment variables for TFTP.
  38. schema:
  39. type: list
  40. default: []
  41. items:
  42. - variable: env
  43. label: Environment Variable
  44. schema:
  45. type: dict
  46. attrs:
  47. - variable: name
  48. label: Name
  49. schema:
  50. type: string
  51. required: true
  52. - variable: value
  53. label: Value
  54. schema:
  55. type: string
  56. required: true
  57. - variable: tftpNetwork
  58. label: ""
  59. group: Network Configuration
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: hostNetwork
  64. label: Host Network
  65. description: |
  66. Bind to the host network. It's recommended to keep this disabled.</br>
  67. schema:
  68. type: boolean
  69. default: true
  70. - variable: tftpPort
  71. label: TFTP Port
  72. description: |
  73. The port for TFTP.
  74. When hostNetwork is enabled, the port tftp port will be 69.
  75. schema:
  76. type: int
  77. default: 30031
  78. show_if: [["hostNetwork", "=", false]]
  79. min: 9000
  80. max: 65535
  81. required: true
  82. - variable: tftpStorage
  83. label: ""
  84. group: Storage Configuration
  85. schema:
  86. type: dict
  87. attrs:
  88. - variable: tftpboot
  89. label: TFTP Boot Storage
  90. description: The path to store TFTP Boot files.
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: type
  95. label: Type
  96. description: |
  97. ixVolume: Is dataset created automatically by the system.</br>
  98. Host Path: Is a path that already exists on the system.
  99. schema:
  100. type: string
  101. required: true
  102. default: "ixVolume"
  103. enum:
  104. - value: "hostPath"
  105. description: Host Path (Path that already exists on the system)
  106. - value: "ixVolume"
  107. description: ixVolume (Dataset created automatically by the system)
  108. - variable: datasetName
  109. label: Dataset Name
  110. schema:
  111. type: string
  112. show_if: [["type", "=", "ixVolume"]]
  113. required: true
  114. hidden: true
  115. immutable: true
  116. default: "tftpboot"
  117. $ref:
  118. - "normalize/ixVolume"
  119. - variable: hostPath
  120. label: Host Path
  121. schema:
  122. type: hostpath
  123. show_if: [["type", "=", "hostPath"]]
  124. immutable: true
  125. required: true
  126. - variable: resources
  127. group: Resources Configuration
  128. label: ""
  129. schema:
  130. type: dict
  131. attrs:
  132. - variable: limits
  133. label: Limits
  134. schema:
  135. type: dict
  136. attrs:
  137. - variable: cpu
  138. label: CPU
  139. description: CPU limit for TFTP.
  140. schema:
  141. type: string
  142. max_length: 6
  143. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  144. valid_chars_error: |
  145. Valid CPU limit formats are</br>
  146. - Plain Integer - eg. 1</br>
  147. - Float - eg. 0.5</br>
  148. - Milicpu - eg. 500m
  149. default: "4000m"
  150. required: true
  151. - variable: memory
  152. label: Memory
  153. description: Memory limit for TFTP.
  154. schema:
  155. type: string
  156. max_length: 12
  157. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  158. valid_chars_error: |
  159. Valid Memory limit formats are</br>
  160. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  161. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  162. - Plain Integer in bytes - eg. 1024</br>
  163. - Exponent - eg. 134e6
  164. default: "8Gi"
  165. required: true