questions.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. groups:
  2. - name: Gitea Act Runner Configuration
  3. description: Configure Gitea Act Runner
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Gitea Act Runner
  6. - name: Network Configuration
  7. description: Configure Network for Gitea Act Runner
  8. - name: Storage Configuration
  9. description: Configure Storage for Gitea Act Runner
  10. - name: Labels Configuration
  11. description: Configure Labels for Gitea Act Runner
  12. - name: Resources Configuration
  13. description: Configure Resources for Gitea Act Runner
  14. questions:
  15. - variable: TZ
  16. group: Gitea Act Runner Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: gitea_act_runner
  25. label: ""
  26. group: Gitea Act Runner Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: instance_url
  31. label: Instance URL
  32. description: The URL of the Gitea instance to use.
  33. schema:
  34. type: string
  35. default: ""
  36. required: true
  37. - variable: runner_name
  38. label: Runner Name
  39. description: The name of the runner to use.
  40. schema:
  41. type: string
  42. default: ""
  43. required: true
  44. - variable: runner_registration_token
  45. label: Runner Registration Token
  46. description: The registration token for the runner.
  47. schema:
  48. type: string
  49. default: ""
  50. required: true
  51. private: true
  52. - variable: additional_envs
  53. label: Additional Environment Variables
  54. schema:
  55. type: list
  56. default: []
  57. items:
  58. - variable: env
  59. label: Environment Variable
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: name
  64. label: Name
  65. schema:
  66. type: string
  67. required: true
  68. - variable: value
  69. label: Value
  70. schema:
  71. type: string
  72. - variable: run_as
  73. label: ""
  74. group: User and Group Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: user
  79. label: User ID
  80. description: The user id that Gitea Act Runner files will be owned by.
  81. schema:
  82. type: int
  83. min: 568
  84. default: 568
  85. required: true
  86. - variable: group
  87. label: Group ID
  88. description: The group id that Gitea Act Runner files will be owned by.
  89. schema:
  90. type: int
  91. min: 568
  92. default: 568
  93. required: true
  94. - variable: network
  95. label: ""
  96. group: Network Configuration
  97. schema:
  98. type: dict
  99. attrs:
  100. - variable: host_network
  101. label: Host Network
  102. description: |
  103. Bind to the host network. It's recommended to keep this disabled.
  104. schema:
  105. type: boolean
  106. show_if: [["dhcp_enabled", "=", false]]
  107. default: false
  108. - variable: additional_ports
  109. label: Additional Ports
  110. schema:
  111. type: list
  112. show_if: [["host_network", "=", false]]
  113. items:
  114. - variable: port
  115. label: Port
  116. schema:
  117. type: dict
  118. attrs:
  119. - variable: bind_mode
  120. label: Port Bind Mode
  121. description: |
  122. The port bind mode.</br>
  123. - Publish: The port will be published on the host for external access.</br>
  124. - Expose: The port will be exposed for inter-container communication.</br>
  125. schema:
  126. type: string
  127. default: "published"
  128. enum:
  129. - value: "published"
  130. description: Publish port on the host for external access
  131. - value: "exposed"
  132. description: Expose port for inter-container communication
  133. - variable: port_number
  134. label: Port Number
  135. schema:
  136. type: int
  137. min: 1
  138. max: 65535
  139. required: true
  140. - variable: container_port
  141. label: Container Port
  142. schema:
  143. type: int
  144. min: 1
  145. max: 65535
  146. required: true
  147. - variable: protocol
  148. label: Protocol
  149. schema:
  150. type: string
  151. required: true
  152. default: "tcp"
  153. enum:
  154. - value: "tcp"
  155. description: TCP
  156. - value: "udp"
  157. description: UDP
  158. - variable: host_ips
  159. label: Host IPs
  160. description: IPs on the host to bind this port
  161. schema:
  162. type: list
  163. show_if: [["bind_mode", "=", "published"]]
  164. default: []
  165. items:
  166. - variable: host_ip
  167. label: Host IP
  168. schema:
  169. type: string
  170. required: true
  171. $ref:
  172. - definitions/node_bind_ip
  173. - variable: storage
  174. label: ""
  175. group: Storage Configuration
  176. schema:
  177. type: dict
  178. attrs:
  179. - variable: data
  180. label: Gitea Act Runner Data Storage
  181. description: The path to store Gitea Act Runner Data.
  182. schema:
  183. type: dict
  184. attrs:
  185. - variable: type
  186. label: Type
  187. description: |
  188. ixVolume: Is dataset created automatically by the system.</br>
  189. Host Path: Is a path that already exists on the system.
  190. schema:
  191. type: string
  192. required: true
  193. default: "ix_volume"
  194. enum:
  195. - value: "host_path"
  196. description: Host Path (Path that already exists on the system)
  197. - value: "ix_volume"
  198. description: ixVolume (Dataset created automatically by the system)
  199. - variable: ix_volume_config
  200. label: ixVolume Configuration
  201. description: The configuration for the ixVolume dataset.
  202. schema:
  203. type: dict
  204. show_if: [["type", "=", "ix_volume"]]
  205. $ref:
  206. - "normalize/ix_volume"
  207. attrs:
  208. - variable: acl_enable
  209. label: Enable ACL
  210. description: Enable ACL for the storage.
  211. schema:
  212. type: boolean
  213. default: false
  214. - variable: dataset_name
  215. label: Dataset Name
  216. description: The name of the dataset to use for storage.
  217. schema:
  218. type: string
  219. required: true
  220. hidden: true
  221. default: "data"
  222. - variable: acl_entries
  223. label: ACL Configuration
  224. schema:
  225. type: dict
  226. show_if: [["acl_enable", "=", true]]
  227. attrs: []
  228. - variable: host_path_config
  229. label: Host Path Configuration
  230. schema:
  231. type: dict
  232. show_if: [["type", "=", "host_path"]]
  233. attrs:
  234. - variable: acl_enable
  235. label: Enable ACL
  236. description: Enable ACL for the storage.
  237. schema:
  238. type: boolean
  239. default: false
  240. - variable: acl
  241. label: ACL Configuration
  242. schema:
  243. type: dict
  244. show_if: [["acl_enable", "=", true]]
  245. attrs: []
  246. $ref:
  247. - "normalize/acl"
  248. - variable: path
  249. label: Host Path
  250. description: The host path to use for storage.
  251. schema:
  252. type: hostpath
  253. show_if: [["acl_enable", "=", false]]
  254. required: true
  255. - variable: additional_storage
  256. label: Additional Storage
  257. schema:
  258. type: list
  259. default: []
  260. items:
  261. - variable: storageEntry
  262. label: Storage Entry
  263. schema:
  264. type: dict
  265. attrs:
  266. - variable: type
  267. label: Type
  268. description: |
  269. ixVolume: Is dataset created automatically by the system.</br>
  270. Host Path: Is a path that already exists on the system.</br>
  271. SMB Share: Is a SMB share that is mounted to as a volume.
  272. schema:
  273. type: string
  274. required: true
  275. default: "ix_volume"
  276. enum:
  277. - value: "host_path"
  278. description: Host Path (Path that already exists on the system)
  279. - value: "ix_volume"
  280. description: ixVolume (Dataset created automatically by the system)
  281. - value: "cifs"
  282. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  283. - variable: read_only
  284. label: Read Only
  285. description: Mount the volume as read only.
  286. schema:
  287. type: boolean
  288. default: false
  289. - variable: mount_path
  290. label: Mount Path
  291. description: The path inside the container to mount the storage.
  292. schema:
  293. type: path
  294. required: true
  295. - variable: host_path_config
  296. label: Host Path Configuration
  297. schema:
  298. type: dict
  299. show_if: [["type", "=", "host_path"]]
  300. attrs:
  301. - variable: acl_enable
  302. label: Enable ACL
  303. description: Enable ACL for the storage.
  304. schema:
  305. type: boolean
  306. default: false
  307. - variable: acl
  308. label: ACL Configuration
  309. schema:
  310. type: dict
  311. show_if: [["acl_enable", "=", true]]
  312. attrs: []
  313. $ref:
  314. - "normalize/acl"
  315. - variable: path
  316. label: Host Path
  317. description: The host path to use for storage.
  318. schema:
  319. type: hostpath
  320. show_if: [["acl_enable", "=", false]]
  321. required: true
  322. - variable: ix_volume_config
  323. label: ixVolume Configuration
  324. description: The configuration for the ixVolume dataset.
  325. schema:
  326. type: dict
  327. show_if: [["type", "=", "ix_volume"]]
  328. $ref:
  329. - "normalize/ix_volume"
  330. attrs:
  331. - variable: acl_enable
  332. label: Enable ACL
  333. description: Enable ACL for the storage.
  334. schema:
  335. type: boolean
  336. default: false
  337. - variable: dataset_name
  338. label: Dataset Name
  339. description: The name of the dataset to use for storage.
  340. schema:
  341. type: string
  342. required: true
  343. default: "storage_entry"
  344. - variable: acl_entries
  345. label: ACL Configuration
  346. schema:
  347. type: dict
  348. show_if: [["acl_enable", "=", true]]
  349. attrs: []
  350. $ref:
  351. - "normalize/acl"
  352. - variable: cifs_config
  353. label: SMB Configuration
  354. description: The configuration for the SMB dataset.
  355. schema:
  356. type: dict
  357. show_if: [["type", "=", "cifs"]]
  358. attrs:
  359. - variable: server
  360. label: Server
  361. description: The server to mount the SMB share.
  362. schema:
  363. type: string
  364. required: true
  365. - variable: path
  366. label: Path
  367. description: The path to mount the SMB share.
  368. schema:
  369. type: string
  370. required: true
  371. - variable: username
  372. label: Username
  373. description: The username to use for the SMB share.
  374. schema:
  375. type: string
  376. required: true
  377. - variable: password
  378. label: Password
  379. description: The password to use for the SMB share.
  380. schema:
  381. type: string
  382. required: true
  383. private: true
  384. - variable: domain
  385. label: Domain
  386. description: The domain to use for the SMB share.
  387. schema:
  388. type: string
  389. - variable: labels
  390. label: ""
  391. group: Labels Configuration
  392. schema:
  393. type: list
  394. default: []
  395. items:
  396. - variable: label
  397. label: Label
  398. schema:
  399. type: dict
  400. attrs:
  401. - variable: key
  402. label: Key
  403. schema:
  404. type: string
  405. required: true
  406. - variable: value
  407. label: Value
  408. schema:
  409. type: string
  410. required: true
  411. - variable: containers
  412. label: Containers
  413. description: Containers where the label should be applied
  414. schema:
  415. type: list
  416. items:
  417. - variable: container
  418. label: Container
  419. schema:
  420. type: string
  421. required: true
  422. enum:
  423. - value: gitea-act-runner
  424. description: gitea-act-runner
  425. - variable: resources
  426. label: ""
  427. group: Resources Configuration
  428. schema:
  429. type: dict
  430. attrs:
  431. - variable: limits
  432. label: Limits
  433. schema:
  434. type: dict
  435. attrs:
  436. - variable: cpus
  437. label: CPUs
  438. description: CPUs limit for Gitea Act Runner.
  439. schema:
  440. type: int
  441. default: 2
  442. required: true
  443. - variable: memory
  444. label: Memory (in MB)
  445. description: Memory limit for Gitea Act Runner.
  446. schema:
  447. type: int
  448. default: 4096
  449. required: true