questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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: ixVolumeConfig
  113. label: ixVolume Configuration
  114. description: The configuration for the ixVolume dataset.
  115. schema:
  116. type: dict
  117. show_if: [["type", "=", "ixVolume"]]
  118. $ref:
  119. - "normalize/ixVolume"
  120. attrs:
  121. - variable: aclEnable
  122. label: Enable ACL
  123. description: Enable ACL for the dataset.
  124. schema:
  125. type: boolean
  126. default: false
  127. - variable: datasetName
  128. label: Dataset Name
  129. description: The name of the dataset to use for storage.
  130. schema:
  131. type: string
  132. required: true
  133. immutable: true
  134. hidden: true
  135. default: "config"
  136. - variable: aclEntries
  137. label: ACL Configuration
  138. schema:
  139. type: dict
  140. show_if: [["aclEnable", "=", true]]
  141. attrs: []
  142. - variable: hostPathConfig
  143. label: Host Path Configuration
  144. schema:
  145. type: dict
  146. show_if: [["type", "=", "hostPath"]]
  147. attrs:
  148. - variable: aclEnable
  149. label: Enable ACL
  150. description: Enable ACL for the dataset.
  151. schema:
  152. type: boolean
  153. default: false
  154. - variable: acl
  155. label: ACL Configuration
  156. schema:
  157. type: dict
  158. show_if: [["aclEnable", "=", true]]
  159. attrs: []
  160. $ref:
  161. - "normalize/acl"
  162. - variable: hostPath
  163. label: Host Path
  164. description: The host path to use for storage.
  165. schema:
  166. type: hostpath
  167. show_if: [["aclEnable", "=", false]]
  168. required: true
  169. - variable: additionalStorages
  170. label: Additional Storage
  171. description: Additional storage for Plex Auto Language.
  172. schema:
  173. type: list
  174. default: []
  175. items:
  176. - variable: storageEntry
  177. label: Storage Entry
  178. schema:
  179. type: dict
  180. attrs:
  181. - variable: type
  182. label: Type
  183. description: |
  184. ixVolume: Is dataset created automatically by the system.</br>
  185. Host Path: Is a path that already exists on the system.</br>
  186. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  187. schema:
  188. type: string
  189. required: true
  190. default: "ixVolume"
  191. immutable: true
  192. enum:
  193. - value: "hostPath"
  194. description: Host Path (Path that already exists on the system)
  195. - value: "ixVolume"
  196. description: ixVolume (Dataset created automatically by the system)
  197. - value: "smb-pv-pvc"
  198. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  199. - variable: readOnly
  200. label: Read Only
  201. description: Mount the volume as read only.
  202. schema:
  203. type: boolean
  204. default: false
  205. - variable: mountPath
  206. label: Mount Path
  207. description: The path inside the container to mount the storage.
  208. schema:
  209. type: path
  210. required: true
  211. - variable: hostPathConfig
  212. label: Host Path Configuration
  213. schema:
  214. type: dict
  215. show_if: [["type", "=", "hostPath"]]
  216. attrs:
  217. - variable: aclEnable
  218. label: Enable ACL
  219. description: Enable ACL for the dataset.
  220. schema:
  221. type: boolean
  222. default: false
  223. - variable: acl
  224. label: ACL Configuration
  225. schema:
  226. type: dict
  227. show_if: [["aclEnable", "=", true]]
  228. attrs: []
  229. $ref:
  230. - "normalize/acl"
  231. - variable: hostPath
  232. label: Host Path
  233. description: The host path to use for storage.
  234. schema:
  235. type: hostpath
  236. show_if: [["aclEnable", "=", false]]
  237. required: true
  238. - variable: ixVolumeConfig
  239. label: ixVolume Configuration
  240. description: The configuration for the ixVolume dataset.
  241. schema:
  242. type: dict
  243. show_if: [["type", "=", "ixVolume"]]
  244. $ref:
  245. - "normalize/ixVolume"
  246. attrs:
  247. - variable: aclEnable
  248. label: Enable ACL
  249. description: Enable ACL for the dataset.
  250. schema:
  251. type: boolean
  252. default: false
  253. - variable: datasetName
  254. label: Dataset Name
  255. description: The name of the dataset to use for storage.
  256. schema:
  257. type: string
  258. required: true
  259. immutable: true
  260. default: "storage_entry"
  261. - variable: aclEntries
  262. label: ACL Configuration
  263. schema:
  264. type: dict
  265. show_if: [["aclEnable", "=", true]]
  266. attrs: []
  267. - variable: smbConfig
  268. label: SMB Share Configuration
  269. description: The configuration for the SMB Share.
  270. schema:
  271. type: dict
  272. show_if: [["type", "=", "smb-pv-pvc"]]
  273. attrs:
  274. - variable: server
  275. label: Server
  276. description: The server for the SMB share.
  277. schema:
  278. type: string
  279. required: true
  280. - variable: share
  281. label: Share
  282. description: The share name for the SMB share.
  283. schema:
  284. type: string
  285. required: true
  286. - variable: domain
  287. label: Domain (Optional)
  288. description: The domain for the SMB share.
  289. schema:
  290. type: string
  291. - variable: username
  292. label: Username
  293. description: The username for the SMB share.
  294. schema:
  295. type: string
  296. required: true
  297. - variable: password
  298. label: Password
  299. description: The password for the SMB share.
  300. schema:
  301. type: string
  302. required: true
  303. private: true
  304. - variable: size
  305. label: Size (in Gi)
  306. description: The size of the volume quota.
  307. schema:
  308. type: int
  309. required: true
  310. min: 1
  311. default: 1
  312. - variable: resources
  313. group: Resources Configuration
  314. label: ""
  315. schema:
  316. type: dict
  317. attrs:
  318. - variable: limits
  319. label: Limits
  320. schema:
  321. type: dict
  322. attrs:
  323. - variable: cpu
  324. label: CPU
  325. description: CPU limit for Plex Auto Language.
  326. schema:
  327. type: string
  328. max_length: 6
  329. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  330. valid_chars_error: |
  331. Valid CPU limit formats are</br>
  332. - Plain Integer - eg. 1</br>
  333. - Float - eg. 0.5</br>
  334. - Milicpu - eg. 500m
  335. default: "4000m"
  336. required: true
  337. - variable: memory
  338. label: Memory
  339. description: Memory limit for Plex Auto Language.
  340. schema:
  341. type: string
  342. max_length: 12
  343. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  344. valid_chars_error: |
  345. Valid Memory limit formats are</br>
  346. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  347. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  348. - Plain Integer in bytes - eg. 1024</br>
  349. - Exponent - eg. 134e6
  350. default: "8Gi"
  351. required: true