questions.yaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. groups:
  2. - name: Plex Auto Language Configuration
  3. description: Configure Plex Auto Language
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Plex Auto Language
  6. - name: Storage Configuration
  7. description: Configure Storage for Plex Auto Language
  8. - name: Resources Configuration
  9. description: Configure Resources for Plex Auto Language
  10. questions:
  11. - variable: TZ
  12. group: Plex Auto Language Configuration
  13. label: Timezone
  14. schema:
  15. type: string
  16. default: Etc/UTC
  17. required: true
  18. $ref:
  19. - definitions/timezone
  20. - variable: palConfig
  21. label: ""
  22. group: Plex Auto Language Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: plexURL
  27. label: Plex URL
  28. description: The URL to your Plex server.
  29. schema:
  30. type: string
  31. required: true
  32. - variable: plexToken
  33. label: Plex Token
  34. description: |
  35. The token to your Plex server.</br>
  36. More information on how to get your
  37. token can be found here https://github.com/RemiRigal/Plex-Auto-Languages#getting-started
  38. schema:
  39. type: string
  40. required: true
  41. - variable: additionalEnvs
  42. label: Additional Environment Variables
  43. description: Configure additional environment variables for Plex Auto Language.
  44. schema:
  45. type: list
  46. default: []
  47. items:
  48. - variable: env
  49. label: Environment Variable
  50. schema:
  51. type: dict
  52. attrs:
  53. - variable: name
  54. label: Name
  55. schema:
  56. type: string
  57. required: true
  58. - variable: value
  59. label: Value
  60. schema:
  61. type: string
  62. required: true
  63. - variable: palRunAs
  64. label: ""
  65. group: User and Group Configuration
  66. schema:
  67. type: dict
  68. attrs:
  69. - variable: user
  70. label: User ID
  71. description: The user id that Plex Auto Language will run as.
  72. schema:
  73. type: int
  74. min: 2
  75. default: 568
  76. required: true
  77. - variable: group
  78. label: Group ID
  79. description: The group id that Plex Auto Language will run as.
  80. schema:
  81. type: int
  82. min: 2
  83. default: 568
  84. required: true
  85. - variable: palStorage
  86. label: ""
  87. group: Storage Configuration
  88. schema:
  89. type: dict
  90. attrs:
  91. - variable: config
  92. label: Plex Auto Language Config Storage
  93. description: The path to store Plex Auto Language Configuration.
  94. schema:
  95. type: dict
  96. attrs:
  97. - variable: type
  98. label: Type
  99. description: |
  100. ixVolume: Is dataset created automatically by the system.</br>
  101. Host Path: Is a path that already exists on the system.
  102. schema:
  103. type: string
  104. required: true
  105. default: "ixVolume"
  106. enum:
  107. - value: "hostPath"
  108. description: Host Path (Path that already exists on the system)
  109. - value: "ixVolume"
  110. description: ixVolume (Dataset created automatically by the system)
  111. - variable: datasetName
  112. label: Dataset Name
  113. schema:
  114. type: string
  115. show_if: [["type", "=", "ixVolume"]]
  116. required: true
  117. hidden: true
  118. immutable: true
  119. default: "config"
  120. $ref:
  121. - "normalize/ixVolume"
  122. - variable: hostPath
  123. label: Host Path
  124. schema:
  125. type: hostpath
  126. show_if: [["type", "=", "hostPath"]]
  127. immutable: true
  128. required: true
  129. - variable: additionalStorages
  130. label: Additional Storage
  131. description: Additional storage for Plex Auto Language.
  132. schema:
  133. type: list
  134. default: []
  135. items:
  136. - variable: storageEntry
  137. label: Storage Entry
  138. schema:
  139. type: dict
  140. attrs:
  141. - variable: type
  142. label: Type
  143. description: |
  144. ixVolume: Is dataset created automatically by the system.</br>
  145. Host Path: Is a path that already exists on the system.
  146. schema:
  147. type: string
  148. required: true
  149. default: "ixVolume"
  150. enum:
  151. - value: "hostPath"
  152. description: Host Path (Path that already exists on the system)
  153. - value: "ixVolume"
  154. description: ixVolume (Dataset created automatically by the system)
  155. - variable: mountPath
  156. label: Mount Path
  157. description: The path inside the container to mount the storage.
  158. schema:
  159. type: path
  160. required: true
  161. - variable: hostPath
  162. label: Host Path
  163. description: The host path to use for storage.
  164. schema:
  165. type: hostpath
  166. show_if: [["type", "=", "hostPath"]]
  167. required: true
  168. - variable: datasetName
  169. label: Dataset Name
  170. description: The name of the dataset to use for storage.
  171. schema:
  172. type: string
  173. show_if: [["type", "=", "ixVolume"]]
  174. required: true
  175. immutable: true
  176. default: "storage_entry"
  177. $ref:
  178. - "normalize/ixVolume"
  179. - variable: resources
  180. group: Resources Configuration
  181. label: ""
  182. schema:
  183. type: dict
  184. attrs:
  185. - variable: limits
  186. label: Limits
  187. schema:
  188. type: dict
  189. attrs:
  190. - variable: cpu
  191. label: CPU
  192. description: CPU limit for Plex Auto Language.
  193. schema:
  194. type: string
  195. max_length: 6
  196. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  197. valid_chars_error: |
  198. Valid CPU limit formats are</br>
  199. - Plain Integer - eg. 1</br>
  200. - Float - eg. 0.5</br>
  201. - Milicpu - eg. 500m
  202. default: "4000m"
  203. required: true
  204. - variable: memory
  205. label: Memory
  206. description: Memory limit for Plex Auto Language.
  207. schema:
  208. type: string
  209. max_length: 12
  210. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  211. valid_chars_error: |
  212. Valid Memory limit formats are</br>
  213. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  214. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  215. - Plain Integer in bytes - eg. 1024</br>
  216. - Exponent - eg. 134e6
  217. default: "8Gi"
  218. required: true