questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. groups:
  2. - name: Glances Configuration
  3. description: Configure Glances
  4. - name: Network Configuration
  5. description: Configure Network for Glances
  6. - name: Storage Configuration
  7. description: Configure Storage for Glances
  8. - name: Labels Configuration
  9. description: Configure Labels for Glances
  10. - name: Resources Configuration
  11. description: Configure Resources for Glances
  12. questions:
  13. - variable: TZ
  14. group: Glances Configuration
  15. label: Timezone
  16. schema:
  17. type: string
  18. default: Etc/UTC
  19. required: true
  20. $ref:
  21. - definitions/timezone
  22. - variable: glances
  23. label: ""
  24. group: Glances Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: docker_enable
  29. label: Enable Docker Monitoring Mode
  30. description: Enable to allow Glances to see Docker Containers on your system.
  31. schema:
  32. type: boolean
  33. default: false
  34. - variable: additional_envs
  35. label: Additional Environment Variables
  36. schema:
  37. type: list
  38. default: []
  39. items:
  40. - variable: env
  41. label: Environment Variable
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: name
  46. label: Name
  47. schema:
  48. type: string
  49. required: true
  50. - variable: value
  51. label: Value
  52. schema:
  53. type: string
  54. - variable: network
  55. label: ""
  56. group: Network Configuration
  57. schema:
  58. type: dict
  59. attrs:
  60. - variable: web_port
  61. label: Web Port
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: bind_mode
  66. label: Port Bind Mode
  67. description: |
  68. The port bind mode.</br>
  69. - Publish: The port will be published on the host for external access.</br>
  70. - Expose: The port will be exposed for inter-container communication.</br>
  71. - None: The port will not be exposed or published.</br>
  72. Note: If the Dockerfile defines an EXPOSE directive,
  73. the port will still be exposed for inter-container communication regardless of this setting.
  74. schema:
  75. type: string
  76. default: "published"
  77. enum:
  78. - value: "published"
  79. description: Publish port on the host for external access
  80. - value: "exposed"
  81. description: Expose port for inter-container communication
  82. - value: ""
  83. description: None
  84. - variable: port_number
  85. label: Port Number
  86. schema:
  87. type: int
  88. default: 30015
  89. min: 1
  90. max: 65535
  91. required: true
  92. - variable: host_ips
  93. label: Host IPs
  94. description: IPs on the host to bind this port
  95. schema:
  96. type: list
  97. show_if: [["bind_mode", "=", "published"]]
  98. default: []
  99. items:
  100. - variable: host_ip
  101. label: Host IP
  102. schema:
  103. type: string
  104. required: true
  105. $ref:
  106. - definitions/node_bind_ip
  107. - variable: storage
  108. label: ""
  109. group: Storage Configuration
  110. schema:
  111. type: dict
  112. attrs:
  113. - variable: additional_storage
  114. label: Additional Storage
  115. schema:
  116. type: list
  117. default: []
  118. items:
  119. - variable: storageEntry
  120. label: Storage Entry
  121. schema:
  122. type: dict
  123. attrs:
  124. - variable: type
  125. label: Type
  126. description: |
  127. ixVolume: Is dataset created automatically by the system.</br>
  128. Host Path: Is a path that already exists on the system.</br>
  129. SMB Share: Is a SMB share that is mounted to as a volume.
  130. schema:
  131. type: string
  132. required: true
  133. default: "ix_volume"
  134. enum:
  135. - value: "host_path"
  136. description: Host Path (Path that already exists on the system)
  137. - value: "ix_volume"
  138. description: ixVolume (Dataset created automatically by the system)
  139. - value: "cifs"
  140. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  141. - variable: read_only
  142. label: Read Only
  143. description: Mount the volume as read only.
  144. schema:
  145. type: boolean
  146. default: false
  147. - variable: mount_path
  148. label: Mount Path
  149. description: The path inside the container to mount the storage.
  150. schema:
  151. type: path
  152. required: true
  153. - variable: host_path_config
  154. label: Host Path Configuration
  155. schema:
  156. type: dict
  157. show_if: [["type", "=", "host_path"]]
  158. attrs:
  159. - variable: acl_enable
  160. label: Enable ACL
  161. description: Enable ACL for the storage.
  162. schema:
  163. type: boolean
  164. default: false
  165. - variable: acl
  166. label: ACL Configuration
  167. schema:
  168. type: dict
  169. show_if: [["acl_enable", "=", true]]
  170. attrs: []
  171. $ref:
  172. - "normalize/acl"
  173. - variable: path
  174. label: Host Path
  175. description: The host path to use for storage.
  176. schema:
  177. type: hostpath
  178. show_if: [["acl_enable", "=", false]]
  179. required: true
  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. default: "storage_entry"
  202. - variable: acl_entries
  203. label: ACL Configuration
  204. schema:
  205. type: dict
  206. show_if: [["acl_enable", "=", true]]
  207. attrs: []
  208. - variable: cifs_config
  209. label: SMB Configuration
  210. description: The configuration for the SMB dataset.
  211. schema:
  212. type: dict
  213. show_if: [["type", "=", "cifs"]]
  214. attrs:
  215. - variable: server
  216. label: Server
  217. description: The server to mount the SMB share.
  218. schema:
  219. type: string
  220. required: true
  221. - variable: path
  222. label: Path
  223. description: The path to mount the SMB share.
  224. schema:
  225. type: string
  226. required: true
  227. - variable: username
  228. label: Username
  229. description: The username to use for the SMB share.
  230. schema:
  231. type: string
  232. required: true
  233. - variable: password
  234. label: Password
  235. description: The password to use for the SMB share.
  236. schema:
  237. type: string
  238. required: true
  239. private: true
  240. - variable: domain
  241. label: Domain
  242. description: The domain to use for the SMB share.
  243. schema:
  244. type: string
  245. - variable: labels
  246. label: ""
  247. group: Labels Configuration
  248. schema:
  249. type: list
  250. default: []
  251. items:
  252. - variable: label
  253. label: Label
  254. schema:
  255. type: dict
  256. attrs:
  257. - variable: key
  258. label: Key
  259. schema:
  260. type: string
  261. required: true
  262. - variable: value
  263. label: Value
  264. schema:
  265. type: string
  266. required: true
  267. - variable: containers
  268. label: Containers
  269. description: Containers where the label should be applied
  270. schema:
  271. type: list
  272. items:
  273. - variable: container
  274. label: Container
  275. schema:
  276. type: string
  277. required: true
  278. enum:
  279. - value: glances
  280. description: glances
  281. - variable: resources
  282. label: ""
  283. group: Resources Configuration
  284. schema:
  285. type: dict
  286. attrs:
  287. - variable: limits
  288. label: Limits
  289. schema:
  290. type: dict
  291. attrs:
  292. - variable: cpus
  293. label: CPUs
  294. description: CPUs limit for Glances.
  295. schema:
  296. type: int
  297. default: 2
  298. required: true
  299. - variable: memory
  300. label: Memory (in MB)
  301. description: Memory limit for Glances.
  302. schema:
  303. type: int
  304. default: 4096
  305. required: true