questions.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. groups:
  2. - name: Jenkins Configuration
  3. description: Configure Jenkins
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Jenkins
  6. - name: Network Configuration
  7. description: Configure Network for Jenkins
  8. - name: Storage Configuration
  9. description: Configure Storage for Jenkins
  10. - name: Labels Configuration
  11. description: Configure Labels for Jenkins
  12. - name: Resources Configuration
  13. description: Configure Resources for Jenkins
  14. questions:
  15. - variable: TZ
  16. group: Jenkins Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: jenkins
  25. label: ""
  26. group: Jenkins Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: additional_java_opts
  31. label: Additional Jenkins Java Options
  32. description: |
  33. Configure additional jenkins java options for Jenkins.</br>
  34. See https://www.jenkins.io/doc/book/managing/system-properties
  35. schema:
  36. type: list
  37. default: []
  38. items:
  39. - variable: jenkinsJavaOpt
  40. label: Jenkins Java Option
  41. schema:
  42. type: dict
  43. attrs:
  44. - variable: property
  45. label: Property
  46. description: |
  47. The property to set, see https://www.jenkins.io/doc/book/managing/system-properties </br>
  48. The prefix [-D] is automatically added.
  49. schema:
  50. type: string
  51. required: true
  52. - variable: value
  53. description: |
  54. The value to set for the property.</br>
  55. label: Value
  56. schema:
  57. type: string
  58. required: true
  59. - variable: additional_opts
  60. label: Additional Jenkins Options
  61. description: |
  62. Configure additional jenkins options for Jenkins. </br>
  63. see https://www.jenkins.io/doc/book/installing/initial-settings
  64. schema:
  65. type: list
  66. default: []
  67. items:
  68. - variable: jenkinsOption
  69. label: Jenkins Option
  70. description: |
  71. The option to set, see https://www.jenkins.io/doc/book/installing/initial-settings </br>
  72. The prefix [--] is automatically added.
  73. schema:
  74. type: string
  75. required: true
  76. - variable: additional_envs
  77. label: Additional Environment Variables
  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. - variable: network
  97. label: ""
  98. group: Network Configuration
  99. schema:
  100. type: dict
  101. attrs:
  102. - variable: web_port
  103. label: WebUI Port
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: bind_mode
  108. label: Port Bind Mode
  109. description: |
  110. The port bind mode.</br>
  111. - Publish: The port will be published on the host for external access.</br>
  112. - Expose: The port will be exposed for inter-container communication.</br>
  113. - None: The port will not be exposed or published.</br>
  114. Note: If the Dockerfile defines an EXPOSE directive,
  115. the port will still be exposed for inter-container communication regardless of this setting.
  116. schema:
  117. type: string
  118. default: "published"
  119. enum:
  120. - value: "published"
  121. description: Publish port on the host for external access
  122. - value: "exposed"
  123. description: Expose port for inter-container communication
  124. - value: ""
  125. description: None
  126. - variable: port_number
  127. label: Port Number
  128. schema:
  129. type: int
  130. default: 30017
  131. min: 1
  132. max: 65535
  133. required: true
  134. - variable: host_ips
  135. label: Host IPs
  136. description: IPs on the host to bind this port
  137. schema:
  138. type: list
  139. show_if: [["bind_mode", "=", "published"]]
  140. default: []
  141. items:
  142. - variable: host_ip
  143. label: Host IP
  144. schema:
  145. type: string
  146. required: true
  147. $ref:
  148. - definitions/node_bind_ip
  149. - variable: agent_port
  150. label: Agent Port
  151. description: Set Bind Mode to a value other than None to enable the agent port.
  152. schema:
  153. type: dict
  154. attrs:
  155. - variable: bind_mode
  156. label: Port Bind Mode
  157. description: |
  158. The port bind mode.</br>
  159. - Publish: The port will be published on the host for external access.</br>
  160. - Expose: The port will be exposed for inter-container communication.</br>
  161. - None: The port will not be exposed or published.</br>
  162. Note: If the Dockerfile defines an EXPOSE directive,
  163. the port will still be exposed for inter-container communication regardless of this setting.
  164. schema:
  165. type: string
  166. default: ""
  167. enum:
  168. - value: "published"
  169. description: Publish port on the host for external access
  170. - value: "exposed"
  171. description: Expose port for inter-container communication
  172. - value: ""
  173. description: None
  174. - variable: port_number
  175. label: Port Number
  176. schema:
  177. type: int
  178. default: 50000
  179. min: 1
  180. max: 65535
  181. required: true
  182. - variable: host_ips
  183. label: Host IPs
  184. description: IPs on the host to bind this port
  185. schema:
  186. type: list
  187. show_if: [["bind_mode", "=", "published"]]
  188. default: []
  189. items:
  190. - variable: host_ip
  191. label: Host IP
  192. schema:
  193. type: string
  194. required: true
  195. $ref:
  196. - definitions/node_bind_ip
  197. - variable: certificate_id
  198. label: Certificate ID
  199. description: The certificate ID to use for Jenkins.
  200. schema:
  201. type: int
  202. "null": true
  203. $ref:
  204. - definitions/certificate
  205. - variable: host_network
  206. label: Host Network
  207. description: |
  208. Bind to the host network. It's recommended to keep this disabled.
  209. schema:
  210. type: boolean
  211. default: false
  212. - variable: storage
  213. label: ""
  214. group: Storage Configuration
  215. schema:
  216. type: dict
  217. attrs:
  218. - variable: home
  219. label: Jenkins Home Storage
  220. description: The path to store Jenkins Home.
  221. schema:
  222. type: dict
  223. attrs:
  224. - variable: type
  225. label: Type
  226. description: |
  227. ixVolume: Is dataset created automatically by the system.</br>
  228. Host Path: Is a path that already exists on the system.
  229. schema:
  230. type: string
  231. required: true
  232. default: "ix_volume"
  233. enum:
  234. - value: "host_path"
  235. description: Host Path (Path that already exists on the system)
  236. - value: "ix_volume"
  237. description: ixVolume (Dataset created automatically by the system)
  238. - variable: ix_volume_config
  239. label: ixVolume Configuration
  240. description: The configuration for the ixVolume dataset.
  241. schema:
  242. type: dict
  243. show_if: [["type", "=", "ix_volume"]]
  244. $ref:
  245. - "normalize/ix_volume"
  246. attrs:
  247. - variable: acl_enable
  248. label: Enable ACL
  249. description: Enable ACL for the storage.
  250. schema:
  251. type: boolean
  252. default: false
  253. - variable: dataset_name
  254. label: Dataset Name
  255. description: The name of the dataset to use for storage.
  256. schema:
  257. type: string
  258. required: true
  259. hidden: true
  260. default: "home"
  261. - variable: acl_entries
  262. label: ACL Configuration
  263. schema:
  264. type: dict
  265. show_if: [["acl_enable", "=", true]]
  266. attrs: []
  267. - variable: host_path_config
  268. label: Host Path Configuration
  269. schema:
  270. type: dict
  271. show_if: [["type", "=", "host_path"]]
  272. attrs:
  273. - variable: acl_enable
  274. label: Enable ACL
  275. description: Enable ACL for the storage.
  276. schema:
  277. type: boolean
  278. default: false
  279. - variable: acl
  280. label: ACL Configuration
  281. schema:
  282. type: dict
  283. show_if: [["acl_enable", "=", true]]
  284. attrs: []
  285. $ref:
  286. - "normalize/acl"
  287. - variable: path
  288. label: Host Path
  289. description: The host path to use for storage.
  290. schema:
  291. type: hostpath
  292. show_if: [["acl_enable", "=", false]]
  293. required: true
  294. - variable: additional_storage
  295. label: Additional Storage
  296. schema:
  297. type: list
  298. default: []
  299. items:
  300. - variable: storageEntry
  301. label: Storage Entry
  302. schema:
  303. type: dict
  304. attrs:
  305. - variable: type
  306. label: Type
  307. description: |
  308. ixVolume: Is dataset created automatically by the system.</br>
  309. Host Path: Is a path that already exists on the system.</br>
  310. SMB Share: Is a SMB share that is mounted to as a volume.
  311. schema:
  312. type: string
  313. required: true
  314. default: "ix_volume"
  315. enum:
  316. - value: "host_path"
  317. description: Host Path (Path that already exists on the system)
  318. - value: "ix_volume"
  319. description: ixVolume (Dataset created automatically by the system)
  320. - value: "cifs"
  321. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  322. - variable: read_only
  323. label: Read Only
  324. description: Mount the volume as read only.
  325. schema:
  326. type: boolean
  327. default: false
  328. - variable: mount_path
  329. label: Mount Path
  330. description: The path inside the container to mount the storage.
  331. schema:
  332. type: path
  333. required: true
  334. - variable: host_path_config
  335. label: Host Path Configuration
  336. schema:
  337. type: dict
  338. show_if: [["type", "=", "host_path"]]
  339. attrs:
  340. - variable: acl_enable
  341. label: Enable ACL
  342. description: Enable ACL for the storage.
  343. schema:
  344. type: boolean
  345. default: false
  346. - variable: acl
  347. label: ACL Configuration
  348. schema:
  349. type: dict
  350. show_if: [["acl_enable", "=", true]]
  351. attrs: []
  352. $ref:
  353. - "normalize/acl"
  354. - variable: path
  355. label: Host Path
  356. description: The host path to use for storage.
  357. schema:
  358. type: hostpath
  359. show_if: [["acl_enable", "=", false]]
  360. required: true
  361. - variable: ix_volume_config
  362. label: ixVolume Configuration
  363. description: The configuration for the ixVolume dataset.
  364. schema:
  365. type: dict
  366. show_if: [["type", "=", "ix_volume"]]
  367. $ref:
  368. - "normalize/ix_volume"
  369. attrs:
  370. - variable: acl_enable
  371. label: Enable ACL
  372. description: Enable ACL for the storage.
  373. schema:
  374. type: boolean
  375. default: false
  376. - variable: dataset_name
  377. label: Dataset Name
  378. description: The name of the dataset to use for storage.
  379. schema:
  380. type: string
  381. required: true
  382. default: "storage_entry"
  383. - variable: acl_entries
  384. label: ACL Configuration
  385. schema:
  386. type: dict
  387. show_if: [["acl_enable", "=", true]]
  388. attrs: []
  389. $ref:
  390. - "normalize/acl"
  391. - variable: cifs_config
  392. label: SMB Configuration
  393. description: The configuration for the SMB dataset.
  394. schema:
  395. type: dict
  396. show_if: [["type", "=", "cifs"]]
  397. attrs:
  398. - variable: server
  399. label: Server
  400. description: The server to mount the SMB share.
  401. schema:
  402. type: string
  403. required: true
  404. - variable: path
  405. label: Path
  406. description: The path to mount the SMB share.
  407. schema:
  408. type: string
  409. required: true
  410. - variable: username
  411. label: Username
  412. description: The username to use for the SMB share.
  413. schema:
  414. type: string
  415. required: true
  416. - variable: password
  417. label: Password
  418. description: The password to use for the SMB share.
  419. schema:
  420. type: string
  421. required: true
  422. private: true
  423. - variable: domain
  424. label: Domain
  425. description: The domain to use for the SMB share.
  426. schema:
  427. type: string
  428. - variable: labels
  429. label: ""
  430. group: Labels Configuration
  431. schema:
  432. type: list
  433. default: []
  434. items:
  435. - variable: label
  436. label: Label
  437. schema:
  438. type: dict
  439. attrs:
  440. - variable: key
  441. label: Key
  442. schema:
  443. type: string
  444. required: true
  445. - variable: value
  446. label: Value
  447. schema:
  448. type: string
  449. required: true
  450. - variable: containers
  451. label: Containers
  452. description: Containers where the label should be applied
  453. schema:
  454. type: list
  455. items:
  456. - variable: container
  457. label: Container
  458. schema:
  459. type: string
  460. required: true
  461. enum:
  462. - value: jenkins
  463. description: jenkins
  464. - variable: resources
  465. label: ""
  466. group: Resources Configuration
  467. schema:
  468. type: dict
  469. attrs:
  470. - variable: limits
  471. label: Limits
  472. schema:
  473. type: dict
  474. attrs:
  475. - variable: cpus
  476. label: CPUs
  477. description: CPUs limit for Jenkins.
  478. schema:
  479. type: int
  480. default: 2
  481. required: true
  482. - variable: memory
  483. label: Memory (in MB)
  484. description: Memory limit for Jenkins.
  485. schema:
  486. type: int
  487. default: 4096
  488. required: true