questions.yaml 19 KB

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