questions.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. groups:
  2. - name: Pi-Hole Configuration
  3. description: Configure Pi-Hole
  4. - name: Advanced Pod Configuration
  5. description: Configure Advanced Pod Options for Pi-Hole
  6. - name: Network Configuration
  7. description: Configure Network for Pi-Hole
  8. - name: Storage Configuration
  9. description: Configure Storage for Pi-Hole
  10. - name: Resources Configuration
  11. description: Configure Resources for Pi-Hole
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: TZ
  23. group: Pi-Hole Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: piholeConfig
  32. label: ""
  33. group: Pi-Hole Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: webPassword
  38. label: Web Password
  39. description: The password for the Pi-Hole Web UI.
  40. schema:
  41. type: string
  42. required: true
  43. private: true
  44. - variable: additionalEnvs
  45. label: Additional Environment Variables
  46. description: Configure additional environment variables for Pi-Hole.
  47. schema:
  48. type: list
  49. default: []
  50. items:
  51. - variable: env
  52. label: Environment Variable
  53. schema:
  54. type: dict
  55. attrs:
  56. - variable: name
  57. label: Name
  58. schema:
  59. type: string
  60. required: true
  61. - variable: value
  62. label: Value
  63. schema:
  64. type: string
  65. required: true
  66. - variable: podOptions
  67. label: ""
  68. group: Advanced Pod Configuration
  69. schema:
  70. type: dict
  71. attrs:
  72. - variable: dnsConfig
  73. label: Advanced DNS Configuration
  74. schema:
  75. type: dict
  76. attrs:
  77. - variable: options
  78. label: DNS Options
  79. schema:
  80. type: list
  81. items:
  82. - variable: optionsEntry
  83. label: DNS Option Entry
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: name
  88. label: Option Name
  89. schema:
  90. type: string
  91. required: true
  92. - variable: value
  93. label: Option Value
  94. schema:
  95. type: string
  96. required: true
  97. - variable: piholeNetwork
  98. label: ""
  99. group: Network Configuration
  100. schema:
  101. type: dict
  102. attrs:
  103. - variable: webPort
  104. label: Web Port
  105. description: The port for the Pi-Hole Web UI.
  106. schema:
  107. type: int
  108. default: 20720
  109. min: 9000
  110. max: 65535
  111. required: true
  112. - variable: dhcp
  113. label: DHCP Configuration
  114. schema:
  115. type: dict
  116. attrs:
  117. - variable: enabled
  118. label: Enable DHCP
  119. description: Enable DHCP for Pi-Hole.
  120. schema:
  121. type: boolean
  122. default: false
  123. - variable: start
  124. label: DHCP Start
  125. description: The start of the DHCP range.
  126. schema:
  127. type: ipaddr
  128. cidr: false
  129. show_if: [["enabled", "=", true]]
  130. required: true
  131. - variable: end
  132. label: DHCP End
  133. description: The end of the DHCP range.
  134. schema:
  135. type: ipaddr
  136. cidr: false
  137. show_if: [["enabled", "=", true]]
  138. required: true
  139. - variable: gateway
  140. label: DHCP Gateway
  141. description: The gateway for the DHCP range.
  142. schema:
  143. type: ipaddr
  144. cidr: false
  145. show_if: [["enabled", "=", true]]
  146. required: true
  147. - variable: piholeStorage
  148. label: ""
  149. group: Storage Configuration
  150. schema:
  151. type: dict
  152. attrs:
  153. - variable: config
  154. label: Pi-Hole Config Storage
  155. description: The path to store Pi-Hole Configuration.
  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. immutable: true
  168. default: "ixVolume"
  169. enum:
  170. - value: "hostPath"
  171. description: Host Path (Path that already exists on the system)
  172. - value: "ixVolume"
  173. description: ixVolume (Dataset created automatically by the system)
  174. - variable: ixVolumeConfig
  175. label: ixVolume Configuration
  176. description: The configuration for the ixVolume dataset.
  177. schema:
  178. type: dict
  179. show_if: [["type", "=", "ixVolume"]]
  180. $ref:
  181. - "normalize/ixVolume"
  182. attrs:
  183. - variable: aclEnable
  184. label: Enable ACL
  185. description: Enable ACL for the dataset.
  186. schema:
  187. type: boolean
  188. default: false
  189. - variable: datasetName
  190. label: Dataset Name
  191. description: The name of the dataset to use for storage.
  192. schema:
  193. type: string
  194. required: true
  195. immutable: true
  196. hidden: true
  197. default: "config"
  198. - variable: aclEntries
  199. label: ACL Configuration
  200. schema:
  201. type: dict
  202. show_if: [["aclEnable", "=", true]]
  203. attrs: []
  204. - variable: hostPathConfig
  205. label: Host Path Config
  206. schema:
  207. type: dict
  208. show_if: [["type", "=", "hostPath"]]
  209. attrs:
  210. - variable: aclEnable
  211. label: Enable ACL
  212. description: Enable ACL for the dataset.
  213. schema:
  214. type: boolean
  215. default: false
  216. - variable: acl
  217. label: ACL Configuration
  218. schema:
  219. type: dict
  220. show_if: [["aclEnable", "=", true]]
  221. attrs: []
  222. $ref:
  223. - "normalize/acl"
  224. - variable: hostPath
  225. label: Host Path
  226. description: The host path to use for storage.
  227. schema:
  228. type: hostpath
  229. show_if: [["aclEnable", "=", false]]
  230. required: true
  231. - variable: dnsmasq
  232. label: Pi-Hole DNSmasq Storage
  233. description: The path to store Pi-Hole DNSmasq.
  234. schema:
  235. type: dict
  236. attrs:
  237. - variable: type
  238. label: Type
  239. description: |
  240. ixVolume: Is dataset created automatically by the system.</br>
  241. Host Path: Is a path that already exists on the system.
  242. schema:
  243. type: string
  244. required: true
  245. immutable: true
  246. default: "ixVolume"
  247. enum:
  248. - value: "hostPath"
  249. description: Host Path (Path that already exists on the system)
  250. - value: "ixVolume"
  251. description: ixVolume (Dataset created automatically by the system)
  252. - variable: ixVolumeConfig
  253. label: ixVolume Configuration
  254. description: The configuration for the ixVolume dataset.
  255. schema:
  256. type: dict
  257. show_if: [["type", "=", "ixVolume"]]
  258. $ref:
  259. - "normalize/ixVolume"
  260. attrs:
  261. - variable: aclEnable
  262. label: Enable ACL
  263. description: Enable ACL for the dataset.
  264. schema:
  265. type: boolean
  266. default: false
  267. - variable: datasetName
  268. label: Dataset Name
  269. description: The name of the dataset to use for storage.
  270. schema:
  271. type: string
  272. required: true
  273. immutable: true
  274. hidden: true
  275. default: "dnsmasq"
  276. - variable: aclEntries
  277. label: ACL Configuration
  278. schema:
  279. type: dict
  280. show_if: [["aclEnable", "=", true]]
  281. attrs: []
  282. - variable: hostPathConfig
  283. label: Host Path Config
  284. schema:
  285. type: dict
  286. show_if: [["type", "=", "hostPath"]]
  287. attrs:
  288. - variable: aclEnable
  289. label: Enable ACL
  290. description: Enable ACL for the dataset.
  291. schema:
  292. type: boolean
  293. default: false
  294. - variable: acl
  295. label: ACL Configuration
  296. schema:
  297. type: dict
  298. show_if: [["aclEnable", "=", true]]
  299. attrs: []
  300. $ref:
  301. - "normalize/acl"
  302. - variable: hostPath
  303. label: Host Path
  304. description: The host path to use for storage.
  305. schema:
  306. type: hostpath
  307. show_if: [["aclEnable", "=", false]]
  308. required: true
  309. - variable: additionalStorages
  310. label: Additional Storage
  311. description: Additional storage for Pi-Hole.
  312. schema:
  313. type: list
  314. default: []
  315. items:
  316. - variable: storageEntry
  317. label: Storage Entry
  318. schema:
  319. type: dict
  320. attrs:
  321. - variable: type
  322. label: Type
  323. description: |
  324. ixVolume: Is dataset created automatically by the system.</br>
  325. Host Path: Is a path that already exists on the system.</br>
  326. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  327. schema:
  328. type: string
  329. required: true
  330. default: "ixVolume"
  331. immutable: true
  332. enum:
  333. - value: "hostPath"
  334. description: Host Path (Path that already exists on the system)
  335. - value: "ixVolume"
  336. description: ixVolume (Dataset created automatically by the system)
  337. - value: "smb-pv-pvc"
  338. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  339. - variable: readOnly
  340. label: Read Only
  341. description: Mount the volume as read only.
  342. schema:
  343. type: boolean
  344. default: false
  345. - variable: mountPath
  346. label: Mount Path
  347. description: The path inside the container to mount the storage.
  348. schema:
  349. type: path
  350. required: true
  351. - variable: hostPathConfig
  352. label: Host Path Config
  353. schema:
  354. type: dict
  355. show_if: [["type", "=", "hostPath"]]
  356. attrs:
  357. - variable: aclEnable
  358. label: Enable ACL
  359. description: Enable ACL for the dataset.
  360. schema:
  361. type: boolean
  362. default: false
  363. - variable: acl
  364. label: ACL Configuration
  365. schema:
  366. type: dict
  367. show_if: [["aclEnable", "=", true]]
  368. attrs: []
  369. $ref:
  370. - "normalize/acl"
  371. - variable: hostPath
  372. label: Host Path
  373. description: The host path to use for storage.
  374. schema:
  375. type: hostpath
  376. show_if: [["aclEnable", "=", false]]
  377. required: true
  378. - variable: ixVolumeConfig
  379. label: ixVolume Configuration
  380. description: The configuration for the ixVolume dataset.
  381. schema:
  382. type: dict
  383. show_if: [["type", "=", "ixVolume"]]
  384. $ref:
  385. - "normalize/ixVolume"
  386. attrs:
  387. - variable: aclEnable
  388. label: Enable ACL
  389. description: Enable ACL for the dataset.
  390. schema:
  391. type: boolean
  392. default: false
  393. - variable: datasetName
  394. label: Dataset Name
  395. description: The name of the dataset to use for storage.
  396. schema:
  397. type: string
  398. required: true
  399. immutable: true
  400. default: "storage_entry"
  401. - variable: aclEntries
  402. label: ACL Configuration
  403. schema:
  404. type: dict
  405. show_if: [["aclEnable", "=", true]]
  406. attrs: []
  407. - variable: smbConfig
  408. label: SMB Share Configuration
  409. description: The configuration for the SMB Share.
  410. schema:
  411. type: dict
  412. show_if: [["type", "=", "smb-pv-pvc"]]
  413. attrs:
  414. - variable: server
  415. label: Server
  416. description: The server for the SMB share.
  417. schema:
  418. type: string
  419. required: true
  420. - variable: share
  421. label: Share
  422. description: The share name for the SMB share.
  423. schema:
  424. type: string
  425. required: true
  426. - variable: domain
  427. label: Domain (Optional)
  428. description: The domain for the SMB share.
  429. schema:
  430. type: string
  431. - variable: username
  432. label: Username
  433. description: The username for the SMB share.
  434. schema:
  435. type: string
  436. required: true
  437. - variable: password
  438. label: Password
  439. description: The password for the SMB share.
  440. schema:
  441. type: string
  442. required: true
  443. private: true
  444. - variable: size
  445. label: Size (in Gi)
  446. description: The size of the volume quota.
  447. schema:
  448. type: int
  449. required: true
  450. min: 1
  451. default: 1
  452. - variable: resources
  453. group: Resources Configuration
  454. label: ""
  455. schema:
  456. type: dict
  457. attrs:
  458. - variable: limits
  459. label: Limits
  460. schema:
  461. type: dict
  462. attrs:
  463. - variable: cpu
  464. label: CPU
  465. description: CPU limit for Pi-Hole.
  466. schema:
  467. type: string
  468. max_length: 6
  469. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  470. valid_chars_error: |
  471. Valid CPU limit formats are</br>
  472. - Plain Integer - eg. 1</br>
  473. - Float - eg. 0.5</br>
  474. - Milicpu - eg. 500m
  475. default: "4000m"
  476. required: true
  477. - variable: memory
  478. label: Memory
  479. description: Memory limit for Pi-Hole.
  480. schema:
  481. type: string
  482. max_length: 12
  483. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  484. valid_chars_error: |
  485. Valid Memory limit formats are</br>
  486. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  487. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  488. - Plain Integer in bytes - eg. 1024</br>
  489. - Exponent - eg. 134e6
  490. default: "8Gi"
  491. required: true