questions.yaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. groups:
  2. - name: Tailscale Configuration
  3. description: Configure Tailscale
  4. - name: Network Configuration
  5. description: Configure Network for Tailscale
  6. - name: Resources Configuration
  7. description: Configure Resources for Tailscale
  8. questions:
  9. - variable: tailscaleConfig
  10. label: ""
  11. group: Tailscale Configuration
  12. schema:
  13. type: dict
  14. attrs:
  15. - variable: authkey
  16. label: Auth Key
  17. description: |
  18. The auth key for Tailscale.</br>
  19. Same as `--authkey` flag.
  20. schema:
  21. type: string
  22. default: ""
  23. required: true
  24. private: true
  25. - variable: hostname
  26. label: Hostname
  27. description: |
  28. The hostname for Tailscale Node.</br>
  29. Only lowercase letters, numbers, and hyphens are allowed.</br>
  30. Same as `--hostname` flag.
  31. schema:
  32. type: string
  33. default: "truenas-scale"
  34. required: true
  35. - variable: advertiseRoutes
  36. label: Advertise Routes
  37. description: |
  38. The routes to advertise.</br>
  39. Same as `--advertise-routes` flag.
  40. schema:
  41. type: list
  42. default: []
  43. items:
  44. - variable: routeEntry
  45. label: Route
  46. schema:
  47. type: string
  48. required: true
  49. - variable: advertiseExitNode
  50. label: Advertise Exit Node
  51. description: |
  52. Advertise as Exit Node.</br>
  53. Same as `--advertise-exit-node` flag.
  54. schema:
  55. type: boolean
  56. default: false
  57. - variable: userspace
  58. label: Userspace
  59. description: Userspace for Tailscale.
  60. schema:
  61. type: boolean
  62. default: true
  63. - variable: acceptDns
  64. label: Accept DNS
  65. description: |
  66. Accept DNS.</br>
  67. Same as `--accept-dns` flag.
  68. schema:
  69. type: boolean
  70. default: false
  71. - variable: extraArgs
  72. label: Extra Arguments
  73. description: Extra arguments for Tailscale.
  74. schema:
  75. type: list
  76. default: []
  77. items:
  78. - variable: argEntry
  79. label: Argument
  80. schema:
  81. type: string
  82. required: true
  83. - variable: extraDaemonArgs
  84. label: Extra Daemon Arguments
  85. description: Extra arguments for Tailscale daemon.
  86. schema:
  87. type: list
  88. default: []
  89. items:
  90. - variable: DaemonArgEntry
  91. label: Daemon Argument
  92. schema:
  93. type: string
  94. required: true
  95. - variable: additionalEnvs
  96. label: Additional Environment Variables
  97. description: Configure additional environment variables for Tailscale.
  98. schema:
  99. type: list
  100. default: []
  101. items:
  102. - variable: env
  103. label: Environment Variable
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: name
  108. label: Name
  109. schema:
  110. type: string
  111. required: true
  112. - variable: value
  113. label: Value
  114. schema:
  115. type: string
  116. required: true
  117. - variable: tailscaleNetwork
  118. label: ""
  119. group: Network Configuration
  120. schema:
  121. type: dict
  122. attrs:
  123. - variable: hostNetwork
  124. label: Host Network
  125. description: |
  126. Bind to the host network. It's recommended to keep this disabled.</br>
  127. schema:
  128. type: boolean
  129. default: false
  130. - variable: resources
  131. group: Resources Configuration
  132. label: ""
  133. schema:
  134. type: dict
  135. attrs:
  136. - variable: limits
  137. label: Limits
  138. schema:
  139. type: dict
  140. attrs:
  141. - variable: cpu
  142. label: CPU
  143. description: CPU limit for Tailscale.
  144. schema:
  145. type: string
  146. max_length: 6
  147. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  148. valid_chars_error: |
  149. Valid CPU limit formats are</br>
  150. - Plain Integer - eg. 1</br>
  151. - Float - eg. 0.5</br>
  152. - Milicpu - eg. 500m
  153. default: "4000m"
  154. required: true
  155. - variable: memory
  156. label: Memory
  157. description: Memory limit for Tailscale.
  158. schema:
  159. type: string
  160. max_length: 12
  161. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  162. valid_chars_error: |
  163. Valid Memory limit formats are</br>
  164. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  165. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  166. - Plain Integer in bytes - eg. 1024</br>
  167. - Exponent - eg. 134e6
  168. default: "8Gi"
  169. required: true