questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. groups:
  2. - name: Syncthing Configuration
  3. description: Configure Syncthing
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Syncthing
  6. - name: Network Configuration
  7. description: Configure Network for Syncthing
  8. - name: Storage Configuration
  9. description: Configure Storage for Syncthing
  10. - name: Resources Configuration
  11. description: Configure Resources for Syncthing
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: TZ
  23. group: Syncthing Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: syncthingConfig
  32. label: ""
  33. group: Syncthing Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. # Boolean flags are currently
  38. # not exposed to the user
  39. - variable: natTraversal
  40. label: NAT Traversal
  41. schema:
  42. type: boolean
  43. default: false
  44. hidden: true
  45. - variable: localDiscovery
  46. label: Local Discovery
  47. schema:
  48. type: boolean
  49. default: false
  50. hidden: true
  51. - variable: globalDiscovery
  52. label: Global Discovery
  53. schema:
  54. type: boolean
  55. default: false
  56. hidden: true
  57. - variable: telemetry
  58. label: Telemetry
  59. schema:
  60. type: boolean
  61. default: false
  62. hidden: true
  63. - variable: relaying
  64. label: Relaying
  65. schema:
  66. type: boolean
  67. default: false
  68. hidden: true
  69. - variable: announceLANAddresses
  70. label: Announce LAN Addresses
  71. schema:
  72. type: boolean
  73. default: false
  74. hidden: true
  75. - variable: additionalEnvs
  76. label: Additional Environment Variables
  77. description: Configure additional environment variables for Syncthing.
  78. schema:
  79. type: list
  80. default: []
  81. items:
  82. - variable: env
  83. label: Environment Variable
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: name
  88. label: Name
  89. schema:
  90. type: string
  91. required: true
  92. - variable: value
  93. label: Value
  94. schema:
  95. type: string
  96. required: true
  97. - variable: syncthingID
  98. label: ""
  99. group: User and Group Configuration
  100. schema:
  101. type: dict
  102. attrs:
  103. - variable: user
  104. label: User ID
  105. description: The user id that Syncthing files will be owned by.
  106. schema:
  107. type: int
  108. min: 568
  109. default: 568
  110. immutable: true
  111. required: true
  112. - variable: group
  113. label: Group ID
  114. description: The group id that Syncthing files will be owned by.
  115. schema:
  116. type: int
  117. min: 568
  118. default: 568
  119. immutable: true
  120. required: true
  121. - variable: syncthingNetwork
  122. label: ""
  123. group: Network Configuration
  124. schema:
  125. type: dict
  126. attrs:
  127. - variable: hostNetwork
  128. label: Host Network
  129. description: |
  130. Bind to the host network.</br></br>
  131. If this is disabled, you will need to add your local networks in CIDR format to the Syncthing WebUI.</br>
  132. In the Syncthing WebUI, go to Advanced Settings > Options > Always Local Nets</br>
  133. Separate each CIDR network with a comma.</br>
  134. Example: 192.168.0.0/24,192.168.1.0/24
  135. schema:
  136. type: boolean
  137. default: true
  138. - variable: webPort
  139. label: Web Port
  140. description: The port for the Syncthing WebUI.
  141. schema:
  142. type: int
  143. default: 31000
  144. min: 9000
  145. max: 65535
  146. required: true
  147. - variable: tcpPort
  148. label: TCP Port (File Transfers)
  149. description: The TCP port for Syncthing transfers.
  150. schema:
  151. type: int
  152. show_if: [["hostNetwork", "=", false]]
  153. default: 22000
  154. min: 9000
  155. max: 65535
  156. required: true
  157. - variable: quicPort
  158. label: QUIC (UDP) Port (File Transfers)
  159. description: The QUIC (UDP) port for Syncthing transfers.
  160. schema:
  161. type: int
  162. show_if: [["hostNetwork", "=", false]]
  163. default: 22000
  164. min: 9000
  165. max: 65535
  166. required: true
  167. - variable: certificateID
  168. label: Certificate
  169. description: The certificate to use for Syncthing GUI.
  170. schema:
  171. type: int
  172. "null": true
  173. $ref:
  174. - "definitions/certificate"
  175. - variable: syncthingStorage
  176. label: ""
  177. group: Storage Configuration
  178. schema:
  179. type: dict
  180. attrs:
  181. - variable: home
  182. label: Syncthing Home Storage
  183. description: The path to store Syncthing Home Directory.
  184. schema:
  185. type: dict
  186. attrs:
  187. - variable: type
  188. label: Type
  189. description: |
  190. ixVolume: Is dataset created automatically by the system.</br>
  191. Host Path: Is a path that already exists on the system.
  192. schema:
  193. type: string
  194. required: true
  195. immutable: true
  196. default: "ixVolume"
  197. enum:
  198. - value: "hostPath"
  199. description: Host Path (Path that already exists on the system)
  200. - value: "ixVolume"
  201. description: ixVolume (Dataset created automatically by the system)
  202. - variable: ixVolumeConfig
  203. label: ixVolume Configuration
  204. description: The configuration for the ixVolume dataset.
  205. schema:
  206. type: dict
  207. show_if: [["type", "=", "ixVolume"]]
  208. $ref:
  209. - "normalize/ixVolume"
  210. attrs:
  211. - variable: aclEnable
  212. label: Enable ACL
  213. description: Enable ACL for the dataset.
  214. schema:
  215. type: boolean
  216. hidden: true
  217. default: false
  218. - variable: datasetName
  219. label: Dataset Name
  220. description: The name of the dataset to use for storage.
  221. schema:
  222. type: string
  223. required: true
  224. immutable: true
  225. hidden: true
  226. default: "home"
  227. - variable: aclEntries
  228. label: ACL Configuration
  229. schema:
  230. type: dict
  231. show_if: [["aclEnable", "=", true]]
  232. attrs: []
  233. - variable: hostPathConfig
  234. label: Host Path Configuration
  235. schema:
  236. type: dict
  237. show_if: [["type", "=", "hostPath"]]
  238. attrs:
  239. - variable: aclEnable
  240. label: Enable ACL
  241. description: Enable ACL for the dataset.
  242. schema:
  243. type: boolean
  244. hidden: true
  245. default: false
  246. - variable: acl
  247. label: ACL Configuration
  248. schema:
  249. type: dict
  250. show_if: [["aclEnable", "=", true]]
  251. attrs: []
  252. $ref:
  253. - "normalize/acl"
  254. - variable: hostPath
  255. label: Host Path
  256. description: The host path to use for storage.
  257. schema:
  258. type: hostpath
  259. show_if: [["aclEnable", "=", false]]
  260. required: true
  261. - variable: additionalStorages
  262. label: Additional Storage
  263. description: Additional storage for Syncthing.
  264. schema:
  265. type: list
  266. required: true
  267. empty: false
  268. default:
  269. - type: "hostPath"
  270. mountPath: "/data1"
  271. hostPath": ""
  272. items:
  273. - variable: storageEntry
  274. label: Storage Entry
  275. schema:
  276. type: dict
  277. attrs:
  278. - variable: type
  279. label: Type
  280. description: |
  281. Host Path: Is a path that already exists on the system.</br>
  282. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  283. schema:
  284. type: string
  285. required: true
  286. default: "hostPath"
  287. immutable: true
  288. enum:
  289. - value: "hostPath"
  290. description: Host Path (Path that already exists on the system)
  291. - value: "smb-pv-pvc"
  292. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  293. - variable: readOnly
  294. label: Read Only
  295. description: Mount the volume as read only.
  296. schema:
  297. type: boolean
  298. hidden: true
  299. default: false
  300. - variable: mountPath
  301. label: Mount Path
  302. description: The path inside the container to mount the storage.
  303. schema:
  304. type: path
  305. required: true
  306. - variable: hostPathConfig
  307. label: Host Path Configuration
  308. schema:
  309. type: dict
  310. show_if: [["type", "=", "hostPath"]]
  311. attrs:
  312. - variable: aclEnable
  313. label: Enable ACL
  314. description: Enable ACL for the dataset.
  315. schema:
  316. type: boolean
  317. hidden: true
  318. default: false
  319. - variable: acl
  320. label: ACL Configuration
  321. schema:
  322. type: dict
  323. show_if: [["aclEnable", "=", true]]
  324. attrs: []
  325. $ref:
  326. - "normalize/acl"
  327. - variable: hostPath
  328. label: Host Path
  329. description: The host path to use for storage.
  330. schema:
  331. type: hostpath
  332. show_if: [["aclEnable", "=", false]]
  333. required: true
  334. - variable: smbConfig
  335. label: SMB Share Configuration
  336. description: The configuration for the SMB Share.
  337. schema:
  338. type: dict
  339. show_if: [["type", "=", "smb-pv-pvc"]]
  340. attrs:
  341. - variable: migrationMode
  342. label: Migration Mode
  343. description: |
  344. NOTE: This only works properly with TrueNAS SCALE 24.04.0 or newer.<br/>
  345. Enabling this will force the following:</br>
  346. - Read Only Mount, regardless of the value of the Read Only checkbox.</br>
  347. - SMB Mount Options will be set to "vers=3.0", "cifsacl", "noperm"</br>
  348. This option is used to migrate data from third party</br>
  349. NAS platforms onto TrueNAS SCALE.</br>
  350. Keep in mind that the ACL preservation is not guaranteed when:</br>
  351. - Non-AD environment</br>
  352. - ACL or remote server contains local users</br>
  353. schema:
  354. type: boolean
  355. default: false
  356. - variable: server
  357. label: Server
  358. description: The server for the SMB share.
  359. schema:
  360. type: string
  361. required: true
  362. - variable: share
  363. label: Share
  364. description: The share name for the SMB share.
  365. schema:
  366. type: string
  367. required: true
  368. - variable: domain
  369. label: Domain (Optional)
  370. description: The domain for the SMB share.
  371. schema:
  372. type: string
  373. - variable: username
  374. label: Username
  375. description: The username for the SMB share.
  376. schema:
  377. type: string
  378. required: true
  379. - variable: password
  380. label: Password
  381. description: The password for the SMB share.
  382. schema:
  383. type: string
  384. required: true
  385. private: true
  386. - variable: size
  387. label: Size (in Gi)
  388. description: The size of the volume quota.
  389. schema:
  390. type: int
  391. required: true
  392. min: 1
  393. default: 1
  394. - variable: resources
  395. group: Resources Configuration
  396. label: ""
  397. schema:
  398. type: dict
  399. attrs:
  400. - variable: limits
  401. label: Limits
  402. schema:
  403. type: dict
  404. attrs:
  405. - variable: cpu
  406. label: CPU
  407. description: CPU limit for Syncthing.
  408. schema:
  409. type: string
  410. max_length: 6
  411. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  412. valid_chars_error: |
  413. Valid CPU limit formats are</br>
  414. - Plain Integer - eg. 1</br>
  415. - Float - eg. 0.5</br>
  416. - Milicpu - eg. 500m
  417. default: "4000m"
  418. required: true
  419. - variable: memory
  420. label: Memory
  421. description: Memory limit for Syncthing.
  422. schema:
  423. type: string
  424. max_length: 12
  425. valid_chars: "^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$"
  426. valid_chars_error: |
  427. Valid Memory limit formats are</br>
  428. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  429. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  430. - Plain Integer in bytes - eg. 1024</br>
  431. - Exponent - eg. 134e6
  432. default: "8Gi"
  433. required: true