questions.yaml 4.1 KB

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