questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. groups:
  2. - name: Playwright Configuration
  3. description: Configure Playwright
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Playwright
  6. - name: Network Configuration
  7. description: Configure Network for Playwright
  8. - name: Storage Configuration
  9. description: Configure Storage for Playwright
  10. - name: Labels Configuration
  11. description: Configure Labels for Playwright
  12. - name: Resources Configuration
  13. description: Configure Resources for Playwright
  14. questions:
  15. - variable: TZ
  16. group: Playwright Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: playwright
  25. label: ""
  26. group: Playwright Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: image_selector
  31. label: Image
  32. schema:
  33. type: string
  34. default: "noble_image"
  35. required: true
  36. enum:
  37. - value: noble_image
  38. description: Noble Numbat (based on Ubuntu 24.04 LTS)
  39. - value: jammy_image
  40. description: Jammy Jellyfish (based on Ubuntu 22.04 LTS)
  41. - variable: mode
  42. label: Mode
  43. schema:
  44. type: string
  45. default: "ui"
  46. required: true
  47. enum:
  48. - value: "ui"
  49. description: UI Mode (Playwright Test Runner with Web UI)
  50. - value: "server"
  51. description: Server (Playwright Test Runner without Web UI)
  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 Playwright 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 Playwright 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: web_port
  101. label: WebUI Port
  102. schema:
  103. type: dict
  104. attrs:
  105. - variable: bind_mode
  106. label: Port Bind Mode
  107. description: |
  108. The port bind mode.</br>
  109. - Publish: The port will be published on the host for external access.</br>
  110. - Expose: The port will be exposed for inter-container communication.</br>
  111. - None: The port will not be exposed or published.</br>
  112. Note: If the Dockerfile defines an EXPOSE directive,
  113. the port will still be exposed for inter-container communication regardless of this setting.
  114. schema:
  115. type: string
  116. default: "published"
  117. enum:
  118. - value: "published"
  119. description: Publish port on the host for external access
  120. - value: "exposed"
  121. description: Expose port for inter-container communication
  122. - value: ""
  123. description: None
  124. - variable: port_number
  125. label: Port Number
  126. schema:
  127. type: int
  128. default: 30150
  129. min: 1
  130. max: 65535
  131. required: true
  132. - variable: host_ips
  133. label: Host IPs
  134. description: IPs on the host to bind this port
  135. schema:
  136. type: list
  137. show_if: [["bind_mode", "=", "published"]]
  138. default: []
  139. items:
  140. - variable: host_ip
  141. label: Host IP
  142. schema:
  143. type: string
  144. required: true
  145. $ref:
  146. - definitions/node_bind_ip
  147. - variable: storage
  148. label: ""
  149. group: Storage Configuration
  150. schema:
  151. type: dict
  152. attrs:
  153. - variable: pwuser_home
  154. label: Playwright Working Directory
  155. description: The path to store the Playwright test files.
  156. schema:
  157. type: dict
  158. attrs:
  159. - variable: type
  160. label: Type
  161. description: |
  162. ixVolume: Is dataset created automatically by the system.</br>
  163. Host Path: Is a path that already exists on the system.
  164. schema:
  165. type: string
  166. required: true
  167. default: "ix_volume"
  168. enum:
  169. - value: "host_path"
  170. description: Host Path (Path that already exists on the system)
  171. - value: "ix_volume"
  172. description: ixVolume (Dataset created automatically by the system)
  173. - variable: ix_volume_config
  174. label: ixVolume Configuration
  175. description: The configuration for the ixVolume dataset.
  176. schema:
  177. type: dict
  178. show_if: [["type", "=", "ix_volume"]]
  179. $ref:
  180. - "normalize/ix_volume"
  181. attrs:
  182. - variable: acl_enable
  183. label: Enable ACL
  184. description: Enable ACL for the storage.
  185. schema:
  186. type: boolean
  187. default: false
  188. - variable: dataset_name
  189. label: Dataset Name
  190. description: The name of the dataset to use for storage.
  191. schema:
  192. type: string
  193. required: true
  194. hidden: true
  195. default: "pwuser_home"
  196. - variable: acl_entries
  197. label: ACL Configuration
  198. schema:
  199. type: dict
  200. show_if: [["acl_enable", "=", true]]
  201. attrs: []
  202. - variable: host_path_config
  203. label: Host Path Configuration
  204. schema:
  205. type: dict
  206. show_if: [["type", "=", "host_path"]]
  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: acl
  215. label: ACL Configuration
  216. schema:
  217. type: dict
  218. show_if: [["acl_enable", "=", true]]
  219. attrs: []
  220. $ref:
  221. - "normalize/acl"
  222. - variable: path
  223. label: Host Path
  224. description: The host path to use for storage.
  225. schema:
  226. type: hostpath
  227. show_if: [["acl_enable", "=", false]]
  228. required: true
  229. - variable: additional_storage
  230. label: Additional Storage
  231. schema:
  232. type: list
  233. default: []
  234. items:
  235. - variable: storageEntry
  236. label: Storage Entry
  237. schema:
  238. type: dict
  239. attrs:
  240. - variable: type
  241. label: Type
  242. description: |
  243. ixVolume: Is dataset created automatically by the system.</br>
  244. Host Path: Is a path that already exists on the system.</br>
  245. SMB Share: Is a SMB share that is mounted to as a volume.
  246. schema:
  247. type: string
  248. required: true
  249. default: "ix_volume"
  250. enum:
  251. - value: "host_path"
  252. description: Host Path (Path that already exists on the system)
  253. - value: "ix_volume"
  254. description: ixVolume (Dataset created automatically by the system)
  255. - value: "cifs"
  256. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  257. - variable: read_only
  258. label: Read Only
  259. description: Mount the volume as read only.
  260. schema:
  261. type: boolean
  262. default: false
  263. - variable: mount_path
  264. label: Mount Path
  265. description: The path inside the container to mount the storage.
  266. schema:
  267. type: path
  268. required: true
  269. - variable: host_path_config
  270. label: Host Path Configuration
  271. schema:
  272. type: dict
  273. show_if: [["type", "=", "host_path"]]
  274. attrs:
  275. - variable: acl_enable
  276. label: Enable ACL
  277. description: Enable ACL for the storage.
  278. schema:
  279. type: boolean
  280. default: false
  281. - variable: acl
  282. label: ACL Configuration
  283. schema:
  284. type: dict
  285. show_if: [["acl_enable", "=", true]]
  286. attrs: []
  287. $ref:
  288. - "normalize/acl"
  289. - variable: path
  290. label: Host Path
  291. description: The host path to use for storage.
  292. schema:
  293. type: hostpath
  294. show_if: [["acl_enable", "=", false]]
  295. required: true
  296. - variable: ix_volume_config
  297. label: ixVolume Configuration
  298. description: The configuration for the ixVolume dataset.
  299. schema:
  300. type: dict
  301. show_if: [["type", "=", "ix_volume"]]
  302. $ref:
  303. - "normalize/ix_volume"
  304. attrs:
  305. - variable: acl_enable
  306. label: Enable ACL
  307. description: Enable ACL for the storage.
  308. schema:
  309. type: boolean
  310. default: false
  311. - variable: dataset_name
  312. label: Dataset Name
  313. description: The name of the dataset to use for storage.
  314. schema:
  315. type: string
  316. required: true
  317. default: "storage_entry"
  318. - variable: acl_entries
  319. label: ACL Configuration
  320. schema:
  321. type: dict
  322. show_if: [["acl_enable", "=", true]]
  323. attrs: []
  324. $ref:
  325. - "normalize/acl"
  326. - variable: cifs_config
  327. label: SMB Configuration
  328. description: The configuration for the SMB dataset.
  329. schema:
  330. type: dict
  331. show_if: [["type", "=", "cifs"]]
  332. attrs:
  333. - variable: server
  334. label: Server
  335. description: The server to mount the SMB share.
  336. schema:
  337. type: string
  338. required: true
  339. - variable: path
  340. label: Path
  341. description: The path to mount the SMB share.
  342. schema:
  343. type: string
  344. required: true
  345. - variable: username
  346. label: Username
  347. description: The username to use for the SMB share.
  348. schema:
  349. type: string
  350. required: true
  351. - variable: password
  352. label: Password
  353. description: The password to use for the SMB share.
  354. schema:
  355. type: string
  356. required: true
  357. private: true
  358. - variable: domain
  359. label: Domain
  360. description: The domain to use for the SMB share.
  361. schema:
  362. type: string
  363. - variable: labels
  364. label: ""
  365. group: Labels Configuration
  366. schema:
  367. type: list
  368. default: []
  369. items:
  370. - variable: label
  371. label: Label
  372. schema:
  373. type: dict
  374. attrs:
  375. - variable: key
  376. label: Key
  377. schema:
  378. type: string
  379. required: true
  380. - variable: value
  381. label: Value
  382. schema:
  383. type: string
  384. required: true
  385. - variable: containers
  386. label: Containers
  387. description: Containers where the label should be applied
  388. schema:
  389. type: list
  390. items:
  391. - variable: container
  392. label: Container
  393. schema:
  394. type: string
  395. required: true
  396. enum:
  397. - value: playwright
  398. description: playwright
  399. - variable: resources
  400. label: ""
  401. group: Resources Configuration
  402. schema:
  403. type: dict
  404. attrs:
  405. - variable: limits
  406. label: Limits
  407. schema:
  408. type: dict
  409. attrs:
  410. - variable: cpus
  411. label: CPUs
  412. description: CPUs limit for Playwright.
  413. schema:
  414. type: int
  415. default: 2
  416. required: true
  417. - variable: memory
  418. label: Memory (in MB)
  419. description: Memory limit for Playwright.
  420. schema:
  421. type: int
  422. default: 4096
  423. required: true