questions.yaml 19 KB

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