questions.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. groups:
  2. - name: Odoo Configuration
  3. description: Configure Odoo
  4. - name: Network Configuration
  5. description: Configure Network for Odoo
  6. - name: Storage Configuration
  7. description: Configure Storage for Odoo
  8. - name: Resources Configuration
  9. description: Configure Resources for Odoo
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. questions:
  20. - variable: odooConfig
  21. label: ""
  22. group: Odoo Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: additionalConf
  27. label: Additional File Configuration Options
  28. description: |
  29. Configure additional file configuration options for Odoo.</br>
  30. Options are appended to the end of the configuration file.</br>
  31. After the predefined configuration options.</br>
  32. schema:
  33. type: list
  34. default: []
  35. items:
  36. - variable: conf
  37. label: Configuration Option
  38. schema:
  39. type: dict
  40. attrs:
  41. - variable: key
  42. label: Key
  43. schema:
  44. type: string
  45. required: true
  46. - variable: value
  47. label: Value
  48. schema:
  49. type: string
  50. required: true
  51. - variable: additionalEnvs
  52. label: Additional Environment Variables
  53. description: Configure additional environment variables for Odoo.
  54. schema:
  55. type: list
  56. default: []
  57. items:
  58. - variable: env
  59. label: Environment Variable
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: name
  64. label: Name
  65. schema:
  66. type: string
  67. required: true
  68. - variable: value
  69. label: Value
  70. schema:
  71. type: string
  72. required: true
  73. - variable: odooNetwork
  74. label: ""
  75. group: Network Configuration
  76. schema:
  77. type: dict
  78. attrs:
  79. - variable: webPort
  80. label: Web Port
  81. description: The port for the Odoo WebUI.
  82. schema:
  83. type: int
  84. default: 30062
  85. min: 9000
  86. max: 65535
  87. required: true
  88. - variable: hostNetwork
  89. label: Host Network
  90. description: |
  91. Bind to the host network. It's recommended to keep this disabled.
  92. schema:
  93. type: boolean
  94. default: false
  95. - variable: odooStorage
  96. label: ""
  97. group: Storage Configuration
  98. schema:
  99. type: dict
  100. attrs:
  101. - variable: data
  102. label: Odoo Data Storage
  103. description: The path to store Odoo data.
  104. schema:
  105. type: dict
  106. attrs:
  107. - variable: type
  108. label: Type
  109. description: |
  110. ixVolume: Is dataset created automatically by the system.</br>
  111. Host Path: Is a path that already exists on the system.
  112. schema:
  113. type: string
  114. required: true
  115. default: ixVolume
  116. enum:
  117. - value: hostPath
  118. description: Host Path (Path that already exists on the system)
  119. - value: ixVolume
  120. description: ixVolume (Dataset created automatically by the system)
  121. - variable: datasetName
  122. label: Dataset Name
  123. schema:
  124. type: string
  125. show_if: [["type", "=", "ixVolume"]]
  126. required: true
  127. hidden: true
  128. immutable: true
  129. default: data
  130. $ref:
  131. - "normalize/ixVolume"
  132. - variable: hostPath
  133. label: Host Path
  134. schema:
  135. type: hostpath
  136. show_if: [["type", "=", "hostPath"]]
  137. immutable: true
  138. required: true
  139. - variable: addons
  140. label: Odoo Addons Storage
  141. description: The path to store Odoo addons storage.
  142. schema:
  143. type: dict
  144. attrs:
  145. - variable: type
  146. label: Type
  147. description: |
  148. ixVolume: Is dataset created automatically by the system.</br>
  149. Host Path: Is a path that already exists on the system.
  150. schema:
  151. type: string
  152. required: true
  153. default: ixVolume
  154. enum:
  155. - value: hostPath
  156. description: Host Path (Path that already exists on the system)
  157. - value: ixVolume
  158. description: ixVolume (Dataset created automatically by the system)
  159. - variable: datasetName
  160. label: Dataset Name
  161. schema:
  162. type: string
  163. show_if: [["type", "=", "ixVolume"]]
  164. required: true
  165. hidden: true
  166. immutable: true
  167. default: addons
  168. $ref:
  169. - "normalize/ixVolume"
  170. - variable: hostPath
  171. label: Host Path
  172. schema:
  173. type: hostpath
  174. show_if: [["type", "=", "hostPath"]]
  175. immutable: true
  176. required: true
  177. - variable: pgData
  178. label: Odoo Postgres Data Storage
  179. description: The path to store Odoo Postgres Data.
  180. schema:
  181. type: dict
  182. attrs:
  183. - variable: type
  184. label: Type
  185. description: |
  186. ixVolume: Is dataset created automatically by the system.</br>
  187. Host Path: Is a path that already exists on the system.
  188. schema:
  189. type: string
  190. required: true
  191. default: ixVolume
  192. enum:
  193. - value: hostPath
  194. description: Host Path (Path that already exists on the system)
  195. - value: ixVolume
  196. description: ixVolume (Dataset created automatically by the system)
  197. - variable: datasetName
  198. label: Dataset Name
  199. schema:
  200. type: string
  201. show_if: [["type", "=", "ixVolume"]]
  202. required: true
  203. hidden: true
  204. immutable: true
  205. default: pgData
  206. $ref:
  207. - "normalize/ixVolume"
  208. - variable: hostPath
  209. label: Host Path
  210. schema:
  211. type: hostpath
  212. show_if: [["type", "=", "hostPath"]]
  213. immutable: true
  214. required: true
  215. - variable: pgBackup
  216. label: Odoo Postgres Backup Storage
  217. description: The path to store Odoo Postgres Backup.
  218. schema:
  219. type: dict
  220. attrs:
  221. - variable: type
  222. label: Type
  223. description: |
  224. ixVolume: Is dataset created automatically by the system.</br>
  225. Host Path: Is a path that already exists on the system.
  226. schema:
  227. type: string
  228. required: true
  229. default: ixVolume
  230. enum:
  231. - value: hostPath
  232. description: Host Path (Path that already exists on the system)
  233. - value: ixVolume
  234. description: ixVolume (Dataset created automatically by the system)
  235. - variable: datasetName
  236. label: Dataset Name
  237. schema:
  238. type: string
  239. show_if: [["type", "=", "ixVolume"]]
  240. required: true
  241. hidden: true
  242. immutable: true
  243. default: pgBackup
  244. $ref:
  245. - "normalize/ixVolume"
  246. - variable: hostPath
  247. label: Host Path
  248. schema:
  249. type: hostpath
  250. show_if: [["type", "=", "hostPath"]]
  251. immutable: true
  252. required: true
  253. - variable: resources
  254. label: ""
  255. group: Resources Configuration
  256. schema:
  257. type: dict
  258. attrs:
  259. - variable: limits
  260. label: Limits
  261. schema:
  262. type: dict
  263. attrs:
  264. - variable: cpu
  265. label: CPU
  266. description: CPU limit for Odoo.
  267. schema:
  268. type: string
  269. max_length: 6
  270. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  271. valid_chars_error: |
  272. Valid CPU limit formats are</br>
  273. - Plain Integer - eg. 1</br>
  274. - Float - eg. 0.5</br>
  275. - Milicpu - eg. 500m
  276. default: "4000m"
  277. required: true
  278. - variable: memory
  279. label: Memory
  280. description: Memory limit for Odoo.
  281. schema:
  282. type: string
  283. max_length: 12
  284. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  285. valid_chars_error: |
  286. Valid Memory limit formats are</br>
  287. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  288. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  289. - Plain Integer in bytes - eg. 1024</br>
  290. - Exponent - eg. 134e6
  291. default: "8Gi"
  292. required: true