questions.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. groups:
  2. - name: Zerotier Configuration
  3. description: Configure Zerotier
  4. - name: Network Configuration
  5. description: Configure Network for Zerotier
  6. - name: Resources Configuration
  7. description: Configure Resources for Zerotier
  8. questions:
  9. - variable: zerotierConfig
  10. label: ""
  11. group: Zerotier Configuration
  12. schema:
  13. type: dict
  14. attrs:
  15. - variable: networks
  16. label: Networks
  17. description: The network(s) to join
  18. schema:
  19. type: list
  20. empty: false
  21. required: true
  22. min: 1
  23. default: []
  24. items:
  25. - variable: networkEntry
  26. label: Network
  27. schema:
  28. type: string
  29. required: true
  30. - variable: authToken
  31. label: Auth Token (API Key)
  32. description: |
  33. (Optional) The auth token for Zerotier.</br>
  34. Same as authtoken.secret.
  35. schema:
  36. type: string
  37. default: ""
  38. private: true
  39. - variable: identitySecret
  40. label: Identity Secret
  41. description: |
  42. (Optional) The identity secret for Zerotier.</br>
  43. Same as identity.secret.
  44. schema:
  45. type: string
  46. default: ""
  47. private: true
  48. - variable: identityPublic
  49. label: Identity Public
  50. description: |
  51. (Optional) The identity public for Zerotier.</br>
  52. Same as identity.public.
  53. schema:
  54. type: string
  55. default: ""
  56. private: true
  57. - variable: additionalEnvs
  58. label: Additional Environment Variables
  59. description: Configure additional environment variables for Zerotier.
  60. schema:
  61. type: list
  62. default: []
  63. items:
  64. - variable: env
  65. label: Environment Variable
  66. schema:
  67. type: dict
  68. attrs:
  69. - variable: name
  70. label: Name
  71. schema:
  72. type: string
  73. required: true
  74. - variable: value
  75. label: Value
  76. schema:
  77. type: string
  78. required: true
  79. - variable: zerotierNetwork
  80. label: ""
  81. group: Network Configuration
  82. schema:
  83. type: dict
  84. attrs:
  85. - variable: hostNetwork
  86. label: Host Network
  87. description: |
  88. Bind to the host network. It's recommended to keep this disabled.</br>
  89. schema:
  90. type: boolean
  91. default: false
  92. - variable: resources
  93. group: Resources Configuration
  94. label: ""
  95. schema:
  96. type: dict
  97. attrs:
  98. - variable: limits
  99. label: Limits
  100. schema:
  101. type: dict
  102. attrs:
  103. - variable: cpu
  104. label: CPU
  105. description: CPU limit for Zerotier.
  106. schema:
  107. type: string
  108. max_length: 6
  109. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  110. valid_chars_error: |
  111. Valid CPU limit formats are</br>
  112. - Plain Integer - eg. 1</br>
  113. - Float - eg. 0.5</br>
  114. - Milicpu - eg. 500m
  115. default: "4000m"
  116. required: true
  117. - variable: memory
  118. label: Memory
  119. description: Memory limit for Zerotier.
  120. schema:
  121. type: string
  122. max_length: 12
  123. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  124. valid_chars_error: |
  125. Valid Memory limit formats are</br>
  126. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  127. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  128. - Plain Integer in bytes - eg. 1024</br>
  129. - Exponent - eg. 134e6
  130. default: "8Gi"
  131. required: true