questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. groups:
  2. - name: Tailscale Configuration
  3. description: Configure Tailscale
  4. - name: Network Configuration
  5. description: Configure Network for Tailscale
  6. - name: Storage Configuration
  7. description: Configure Storage for Tailscale
  8. - name: Labels Configuration
  9. description: Configure Labels for Tailscale
  10. - name: Resources Configuration
  11. description: Configure Resources for Tailscale
  12. questions:
  13. - variable: TZ
  14. label: Timezone
  15. description: Timezone
  16. group: Tailscale Configuration
  17. schema:
  18. type: string
  19. default: Etc/UTC
  20. $ref:
  21. - "definitions/timezone"
  22. - variable: tailscale
  23. label: ""
  24. group: Tailscale Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: hostname
  29. label: Hostname
  30. description: |
  31. The hostname for Tailscale Node.</br>
  32. Only lowercase letters, numbers, and hyphens are allowed.</br>
  33. Same as `--hostname` flag.
  34. schema:
  35. type: string
  36. default: "truenas-scale"
  37. valid_chars: "^[a-z0-9-]+$"
  38. valid_chars_error: |
  39. Only lowercase letters, numbers, and hyphens are allowed.
  40. required: true
  41. - variable: auth_key
  42. label: Auth Key
  43. description: |
  44. The auth key for Tailscale Node.</br>
  45. Same as `--authkey` flag.</br>
  46. To generate one: https://login.tailscale.com/admin/settings/keys
  47. schema:
  48. type: string
  49. default: ""
  50. required: true
  51. private: true
  52. - variable: auth_once
  53. label: Auth Once
  54. description: Attempt to log in only if not already logged in.
  55. schema:
  56. type: boolean
  57. default: true
  58. - variable: reset
  59. label: Reset
  60. description: |
  61. Reset unspecified settings to default values.</br>
  62. Same as `--reset` flag.
  63. schema:
  64. type: boolean
  65. default: false
  66. - variable: accept_dns
  67. label: Accept DNS
  68. description: |
  69. Accept DNS</br>
  70. Same as `--accept-dns` flag.
  71. schema:
  72. type: boolean
  73. default: false
  74. - variable: userspace
  75. label: Userspace
  76. description: |
  77. Run Tailscale in userspace</br>
  78. Same as `--userspace` flag.
  79. schema:
  80. type: boolean
  81. default: false
  82. - variable: advertise_exit_node
  83. label: Advertise Exit Node
  84. description: |
  85. Advertise exit node</br>
  86. Same as `--advertise-exit-node` flag.</br>
  87. Needs enabled IP forwarding on the host via System > Advanced Settings > Sysctls.</br>
  88. Please make sure you read and understand the warnings displayed when adding Sysctls</br>
  89. See also https://tailscale.com/kb/1019/subnets?tab=linux#enable-ip-forwarding
  90. schema:
  91. type: boolean
  92. default: false
  93. - variable: advertise_routes
  94. label: Advertise Routes
  95. description: |
  96. Advertise routes</br>
  97. Same as `--advertise-routes` flag.</br>
  98. Needs enabled IP forwarding on the host via System > Advanced Settings > Sysctls.</br>
  99. Please make sure you read and understand the warnings displayed when adding Sysctls</br>
  100. See also https://tailscale.com/kb/1019/subnets?tab=linux#enable-ip-forwarding
  101. schema:
  102. type: list
  103. default: []
  104. items:
  105. - variable: route
  106. label: Route
  107. schema:
  108. type: string
  109. required: true
  110. - variable: extra_args
  111. label: Extra Arguments
  112. description: |
  113. Extra arguments</br>
  114. Flags to pass to tailscale CLI in a tailscale set command.
  115. schema:
  116. type: list
  117. default: []
  118. items:
  119. - variable: arg
  120. label: Argument
  121. schema:
  122. type: string
  123. required: true
  124. - variable: tailscaled_args
  125. label: Tailscale Daemon Arguments
  126. description: |
  127. Tailscaled arguments</br>
  128. Flags to pass to the tailscaled daemon.
  129. schema:
  130. type: list
  131. default: []
  132. items:
  133. - variable: arg
  134. label: Argument
  135. schema:
  136. type: string
  137. required: true
  138. - variable: additional_envs
  139. label: Additional Environment Variables
  140. schema:
  141. type: list
  142. default: []
  143. items:
  144. - variable: env
  145. label: Environment Variable
  146. schema:
  147. type: dict
  148. attrs:
  149. - variable: name
  150. label: Name
  151. schema:
  152. type: string
  153. required: true
  154. - variable: value
  155. label: Value
  156. schema:
  157. type: string
  158. - variable: network
  159. label: ""
  160. group: Network Configuration
  161. schema:
  162. type: dict
  163. attrs:
  164. - variable: host_network
  165. label: Host Network
  166. description: |
  167. Bind to the host network.</br>
  168. Needed in most cases in order to communicate with the host.
  169. schema:
  170. type: boolean
  171. default: true
  172. - variable: storage
  173. label: ""
  174. group: Storage Configuration
  175. schema:
  176. type: dict
  177. attrs:
  178. - variable: state
  179. label: Tailscale State Storage
  180. description: The path to store Tailscale State.
  181. schema:
  182. type: dict
  183. attrs:
  184. - variable: type
  185. label: Type
  186. description: |
  187. ixVolume: Is dataset created automatically by the system.</br>
  188. Host Path: Is a path that already exists on the system.
  189. schema:
  190. type: string
  191. required: true
  192. default: "ix_volume"
  193. enum:
  194. - value: "host_path"
  195. description: Host Path (Path that already exists on the system)
  196. - value: "ix_volume"
  197. description: ixVolume (Dataset created automatically by the system)
  198. - variable: ix_volume_config
  199. label: ixVolume Configuration
  200. description: The configuration for the ixVolume dataset.
  201. schema:
  202. type: dict
  203. show_if: [["type", "=", "ix_volume"]]
  204. $ref:
  205. - "normalize/ix_volume"
  206. attrs:
  207. - variable: acl_enable
  208. label: Enable ACL
  209. description: Enable ACL for the storage.
  210. schema:
  211. type: boolean
  212. default: false
  213. - variable: dataset_name
  214. label: Dataset Name
  215. description: The name of the dataset to use for storage.
  216. schema:
  217. type: string
  218. required: true
  219. hidden: true
  220. default: "state"
  221. - variable: acl_entries
  222. label: ACL Configuration
  223. schema:
  224. type: dict
  225. show_if: [["acl_enable", "=", true]]
  226. attrs: []
  227. - variable: host_path_config
  228. label: Host Path Configuration
  229. schema:
  230. type: dict
  231. show_if: [["type", "=", "host_path"]]
  232. attrs:
  233. - variable: acl_enable
  234. label: Enable ACL
  235. description: Enable ACL for the storage.
  236. schema:
  237. type: boolean
  238. default: false
  239. - variable: acl
  240. label: ACL Configuration
  241. schema:
  242. type: dict
  243. show_if: [["acl_enable", "=", true]]
  244. attrs: []
  245. $ref:
  246. - "normalize/acl"
  247. - variable: path
  248. label: Host Path
  249. description: The host path to use for storage.
  250. schema:
  251. type: hostpath
  252. show_if: [["acl_enable", "=", false]]
  253. required: true
  254. - variable: additional_storage
  255. label: Additional Storage
  256. schema:
  257. type: list
  258. default: []
  259. items:
  260. - variable: storageEntry
  261. label: Storage Entry
  262. schema:
  263. type: dict
  264. attrs:
  265. - variable: type
  266. label: Type
  267. description: |
  268. ixVolume: Is dataset created automatically by the system.</br>
  269. Host Path: Is a path that already exists on the system.</br>
  270. SMB Share: Is a SMB share that is mounted to as a volume.
  271. schema:
  272. type: string
  273. required: true
  274. default: "ix_volume"
  275. enum:
  276. - value: "host_path"
  277. description: Host Path (Path that already exists on the system)
  278. - value: "ix_volume"
  279. description: ixVolume (Dataset created automatically by the system)
  280. - value: "cifs"
  281. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  282. - variable: read_only
  283. label: Read Only
  284. description: Mount the volume as read only.
  285. schema:
  286. type: boolean
  287. default: false
  288. - variable: mount_path
  289. label: Mount Path
  290. description: The path inside the container to mount the storage.
  291. schema:
  292. type: path
  293. required: true
  294. - variable: host_path_config
  295. label: Host Path Configuration
  296. schema:
  297. type: dict
  298. show_if: [["type", "=", "host_path"]]
  299. attrs:
  300. - variable: acl_enable
  301. label: Enable ACL
  302. description: Enable ACL for the storage.
  303. schema:
  304. type: boolean
  305. default: false
  306. - variable: acl
  307. label: ACL Configuration
  308. schema:
  309. type: dict
  310. show_if: [["acl_enable", "=", true]]
  311. attrs: []
  312. $ref:
  313. - "normalize/acl"
  314. - variable: path
  315. label: Host Path
  316. description: The host path to use for storage.
  317. schema:
  318. type: hostpath
  319. show_if: [["acl_enable", "=", false]]
  320. required: true
  321. - variable: ix_volume_config
  322. label: ixVolume Configuration
  323. description: The configuration for the ixVolume dataset.
  324. schema:
  325. type: dict
  326. show_if: [["type", "=", "ix_volume"]]
  327. $ref:
  328. - "normalize/ix_volume"
  329. attrs:
  330. - variable: acl_enable
  331. label: Enable ACL
  332. description: Enable ACL for the storage.
  333. schema:
  334. type: boolean
  335. default: false
  336. - variable: dataset_name
  337. label: Dataset Name
  338. description: The name of the dataset to use for storage.
  339. schema:
  340. type: string
  341. required: true
  342. default: "storage_entry"
  343. - variable: acl_entries
  344. label: ACL Configuration
  345. schema:
  346. type: dict
  347. show_if: [["acl_enable", "=", true]]
  348. attrs: []
  349. - variable: cifs_config
  350. label: SMB Configuration
  351. description: The configuration for the SMB dataset.
  352. schema:
  353. type: dict
  354. show_if: [["type", "=", "cifs"]]
  355. attrs:
  356. - variable: server
  357. label: Server
  358. description: The server to mount the SMB share.
  359. schema:
  360. type: string
  361. required: true
  362. - variable: path
  363. label: Path
  364. description: The path to mount the SMB share.
  365. schema:
  366. type: string
  367. required: true
  368. - variable: username
  369. label: Username
  370. description: The username to use for the SMB share.
  371. schema:
  372. type: string
  373. required: true
  374. - variable: password
  375. label: Password
  376. description: The password to use for the SMB share.
  377. schema:
  378. type: string
  379. required: true
  380. private: true
  381. - variable: domain
  382. label: Domain
  383. description: The domain to use for the SMB share.
  384. schema:
  385. type: string
  386. - variable: labels
  387. label: ""
  388. group: Labels Configuration
  389. schema:
  390. type: list
  391. default: []
  392. items:
  393. - variable: label
  394. label: Label
  395. schema:
  396. type: dict
  397. attrs:
  398. - variable: key
  399. label: Key
  400. schema:
  401. type: string
  402. required: true
  403. - variable: value
  404. label: Value
  405. schema:
  406. type: string
  407. required: true
  408. - variable: containers
  409. label: Containers
  410. description: Containers where the label should be applied
  411. schema:
  412. type: list
  413. items:
  414. - variable: container
  415. label: Container
  416. schema:
  417. type: string
  418. required: true
  419. enum:
  420. - value: tailscale
  421. description: tailscale
  422. - variable: resources
  423. label: ""
  424. group: Resources Configuration
  425. schema:
  426. type: dict
  427. attrs:
  428. - variable: limits
  429. label: Limits
  430. schema:
  431. type: dict
  432. attrs:
  433. - variable: cpus
  434. label: CPUs
  435. description: CPUs limit for Tailscale.
  436. schema:
  437. type: int
  438. default: 2
  439. required: true
  440. - variable: memory
  441. label: Memory (in MB)
  442. description: Memory limit for Tailscale.
  443. schema:
  444. type: int
  445. default: 4096
  446. required: true