questions.yaml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Nextcloud Configuration"
  5. description: "Configuration details for Nextcloud workload"
  6. - name: "Storage"
  7. description: "Configure Storage for Nextcloud"
  8. - name: "Container Configuration"
  9. description: "Configure nextcloud container parameters"
  10. - name: "Postgresql Configuration"
  11. description: "Configure Postgresql for nextcloud"
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "http"
  16. host:
  17. - "$variable-nextcloud.host"
  18. ports:
  19. - "$variable-service.nodePort"
  20. questions:
  21. # Image related
  22. - variable: image
  23. description: "Docker Image Details"
  24. label: "Docker Image"
  25. group: "Container Images"
  26. schema:
  27. type: dict
  28. required: true
  29. attrs:
  30. - variable: repository
  31. description: "Docker image repository"
  32. label: "Image repository"
  33. schema:
  34. type: string
  35. default: "nextcloud"
  36. required: true
  37. - variable: tag
  38. description: "Tag to use for specified image"
  39. label: "Image Tag"
  40. schema:
  41. type: string
  42. default: "latest"
  43. - variable: pullPolicy
  44. description: "Docker Image Pull Policy"
  45. label: "Image Pull Policy"
  46. schema:
  47. type: string
  48. default: "IfNotPresent"
  49. enum:
  50. - value: "IfNotPresent"
  51. description: "Only pull image if not present on host"
  52. - value: "Always"
  53. description: "Always pull image even if present on host"
  54. - value: "Never"
  55. description: "Never pull image even if it's not present on host"
  56. - variable: nextcloud
  57. description: "Nextcloud configuration details"
  58. label: "Nextcloud Configuration"
  59. group: "Nextcloud Configuration"
  60. schema:
  61. type: dict
  62. required: true
  63. additional_attrs: true
  64. attrs:
  65. - variable: host
  66. description: "Nextcloud host to create application URLs"
  67. label: "Nextcloud host"
  68. schema:
  69. type: string
  70. $ref:
  71. - "definitions/nodeIP"
  72. - variable: username
  73. label: "Username"
  74. description: "Name of the Nextcloud admin user"
  75. schema:
  76. type: string
  77. default: "admin"
  78. required: true
  79. - variable: password
  80. label: "Password"
  81. description: "Password for the Nextcloud admin user"
  82. schema:
  83. type: string
  84. private: true
  85. default: "changeme"
  86. required: true
  87. - variable: datadir
  88. label: "Nextcloud data directory"
  89. description: "Configures the data directory where nextcloud stores all files from the users"
  90. schema:
  91. type: path
  92. default: "/var/www/html/data"
  93. required: true
  94. - variable: strategy
  95. label: "Nextcloud update strategy"
  96. schema:
  97. type: string
  98. default: "Recreate"
  99. enum:
  100. - value: "RollingUpdate"
  101. description: "Create new pods and then kill old ones"
  102. - value: "Recreate"
  103. description: "Kill existing pods before creating new ones"
  104. - variable: service
  105. description: "Nextcloud Service Configuration"
  106. label: "Nextcloud Service Configuration"
  107. group: "Nextcloud Configuration"
  108. schema:
  109. type: dict
  110. required: true
  111. attrs:
  112. - variable: nodePort
  113. label: "Node Port to use for Nextcloud"
  114. schema:
  115. type: int
  116. min: 9000
  117. max: 65535
  118. default: 9001
  119. required: true
  120. - variable: nextcloudDataHostPathEnabled
  121. label: "Configure Host Path for Nextcloud data"
  122. group: "Storage"
  123. schema:
  124. type: boolean
  125. default: false
  126. show_subquestions_if: true
  127. subquestions:
  128. - variable: nextcloudHostPath
  129. label: "Specify HostPath for Nextcloud data"
  130. schema:
  131. type: hostpath
  132. - variable: nextcloudDataVolume
  133. label: "Nextcloud Data Volume Defaults"
  134. group: "Storage"
  135. schema:
  136. type: dict
  137. $ref:
  138. - "normalize/ixVolume"
  139. show_if: [["nextcloudDataHostPathEnabled", "=", false]]
  140. attrs:
  141. - variable: mountPath
  142. label: "Nextcloud Data Mount Path"
  143. description: "Path where the volume will be mounted inside the pod"
  144. schema:
  145. type: path
  146. editable: false
  147. default: "/var/www"
  148. - variable: datasetName
  149. label: "Nextcloud Dataset Name"
  150. schema:
  151. type: string
  152. default: "ix-nextcloud_data"
  153. editable: false
  154. - variable: postgresBackupVolume
  155. label: "Postgres Backup Volume Defaults"
  156. group: "Storage"
  157. schema:
  158. type: dict
  159. $ref:
  160. - "normalize/ixVolume"
  161. attrs:
  162. - variable: mountPath
  163. label: "Postgres Backup Mount Path"
  164. schema:
  165. type: path
  166. editable: false
  167. default: "/postgres_backups"
  168. - variable: datasetName
  169. label: "Postgres Backup Dataset Name"
  170. schema:
  171. type: string
  172. default: "ix-postgres_backups"
  173. editable: false
  174. - variable: postgresDataVolume
  175. label: "Postgresql Data Volume Defaults"
  176. group: "Storage"
  177. schema:
  178. type: dict
  179. $ref:
  180. - "normalize/ixVolume"
  181. attrs:
  182. - variable: mountPath
  183. label: "Postgres Mount Path"
  184. schema:
  185. type: path
  186. editable: false
  187. default: "/var/lib/postgresql/data"
  188. - variable: datasetName
  189. label: "Postgres Dataset Name"
  190. schema:
  191. type: string
  192. default: "ix-postgres_data"
  193. editable: false