questions.yaml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. immutable: true
  106. default: "ixVolume"
  107. enum:
  108. - value: "hostPath"
  109. description: Host Path (Path that already exists on the system)
  110. - value: "ixVolume"
  111. description: ixVolume (Dataset created automatically by the system)
  112. - variable: datasetName
  113. label: Dataset Name
  114. schema:
  115. type: string
  116. show_if: [["type", "=", "ixVolume"]]
  117. required: true
  118. hidden: true
  119. immutable: true
  120. default: "config"
  121. $ref:
  122. - "normalize/ixVolume"
  123. - variable: hostPath
  124. label: Host Path
  125. schema:
  126. type: hostpath
  127. show_if: [["type", "=", "hostPath"]]
  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.</br>
  146. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  147. schema:
  148. type: string
  149. required: true
  150. default: "ixVolume"
  151. immutable: true
  152. enum:
  153. - value: "hostPath"
  154. description: Host Path (Path that already exists on the system)
  155. - value: "ixVolume"
  156. description: ixVolume (Dataset created automatically by the system)
  157. - value: "smb-pv-pvc"
  158. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  159. - variable: mountPath
  160. label: Mount Path
  161. description: The path inside the container to mount the storage.
  162. schema:
  163. type: path
  164. required: true
  165. - variable: hostPath
  166. label: Host Path
  167. description: The host path to use for storage.
  168. schema:
  169. type: hostpath
  170. show_if: [["type", "=", "hostPath"]]
  171. required: true
  172. - variable: datasetName
  173. label: Dataset Name
  174. description: The name of the dataset to use for storage.
  175. schema:
  176. type: string
  177. show_if: [["type", "=", "ixVolume"]]
  178. required: true
  179. immutable: true
  180. default: "storage_entry"
  181. $ref:
  182. - "normalize/ixVolume"
  183. - variable: server
  184. label: Server
  185. description: The server for the SMB share.
  186. schema:
  187. type: string
  188. show_if: [["type", "=", "smb-pv-pvc"]]
  189. required: true
  190. - variable: share
  191. label: Share
  192. description: The share name for the SMB share.
  193. schema:
  194. type: string
  195. show_if: [["type", "=", "smb-pv-pvc"]]
  196. required: true
  197. - variable: domain
  198. label: Domain (Optional)
  199. description: The domain for the SMB share.
  200. schema:
  201. type: string
  202. show_if: [["type", "=", "smb-pv-pvc"]]
  203. - variable: username
  204. label: Username
  205. description: The username for the SMB share.
  206. schema:
  207. type: string
  208. show_if: [["type", "=", "smb-pv-pvc"]]
  209. required: true
  210. - variable: password
  211. label: Password
  212. description: The password for the SMB share.
  213. schema:
  214. type: string
  215. show_if: [["type", "=", "smb-pv-pvc"]]
  216. required: true
  217. private: true
  218. - variable: size
  219. label: Size (in Gi)
  220. description: The size of the volume quota.
  221. schema:
  222. type: int
  223. show_if: [["type", "=", "smb-pv-pvc"]]
  224. required: true
  225. min: 1
  226. default: 1
  227. - variable: resources
  228. group: Resources Configuration
  229. label: ""
  230. schema:
  231. type: dict
  232. attrs:
  233. - variable: limits
  234. label: Limits
  235. schema:
  236. type: dict
  237. attrs:
  238. - variable: cpu
  239. label: CPU
  240. description: CPU limit for Plex Auto Language.
  241. schema:
  242. type: string
  243. max_length: 6
  244. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  245. valid_chars_error: |
  246. Valid CPU limit formats are</br>
  247. - Plain Integer - eg. 1</br>
  248. - Float - eg. 0.5</br>
  249. - Milicpu - eg. 500m
  250. default: "4000m"
  251. required: true
  252. - variable: memory
  253. label: Memory
  254. description: Memory limit for Plex Auto Language.
  255. schema:
  256. type: string
  257. max_length: 12
  258. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  259. valid_chars_error: |
  260. Valid Memory limit formats are</br>
  261. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  262. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  263. - Plain Integer in bytes - eg. 1024</br>
  264. - Exponent - eg. 134e6
  265. default: "8Gi"
  266. required: true