|
@@ -9,6 +9,8 @@ groups:
|
|
|
description: "Configure nextcloud container parameters"
|
|
|
- name: "Postgresql Configuration"
|
|
|
description: "Configure Postgresql for nextcloud"
|
|
|
+ - name: "Scaling/Upgrade Policy"
|
|
|
+ description: "Configure how pods are replaced when configuration is upgraded"
|
|
|
|
|
|
portals:
|
|
|
web_portal:
|
|
@@ -94,16 +96,20 @@ questions:
|
|
|
type: path
|
|
|
default: "/var/www/html/data"
|
|
|
required: true
|
|
|
- - variable: strategy
|
|
|
- label: "Nextcloud update strategy"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
- default: "Recreate"
|
|
|
- enum:
|
|
|
- - value: "RollingUpdate"
|
|
|
- description: "Create new pods and then kill old ones"
|
|
|
- - value: "Recreate"
|
|
|
- description: "Kill existing pods before creating new ones"
|
|
|
+
|
|
|
+ # Update strategy
|
|
|
+ - variable: updateStrategy
|
|
|
+ description: "Upgrade Policy"
|
|
|
+ label: "Update Strategy"
|
|
|
+ group: "Scaling/Upgrade Policy"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ default: "Recreate"
|
|
|
+ enum:
|
|
|
+ - value: "RollingUpdate"
|
|
|
+ description: "Create new pods and then kill old ones"
|
|
|
+ - value: "Recreate"
|
|
|
+ description: "Kill existing pods before creating new ones"
|
|
|
|
|
|
- variable: service
|
|
|
description: "Nextcloud Service Configuration"
|
|
@@ -122,80 +128,89 @@ questions:
|
|
|
default: 9001
|
|
|
required: true
|
|
|
|
|
|
- - variable: nextcloudDataHostPathEnabled
|
|
|
- label: "Configure Host Path for Nextcloud data"
|
|
|
- group: "Storage"
|
|
|
- schema:
|
|
|
- type: boolean
|
|
|
- default: false
|
|
|
- show_subquestions_if: true
|
|
|
- subquestions:
|
|
|
- - variable: nextcloudHostPath
|
|
|
- label: "Specify HostPath for Nextcloud data"
|
|
|
- schema:
|
|
|
- type: hostpath
|
|
|
-
|
|
|
- - variable: nextcloudDataVolume
|
|
|
- label: "Nextcloud Data Volume Defaults"
|
|
|
- group: "Storage"
|
|
|
- schema:
|
|
|
- type: dict
|
|
|
- $ref:
|
|
|
- - "normalize/ixVolume"
|
|
|
- show_if: [["nextcloudDataHostPathEnabled", "=", false]]
|
|
|
- attrs:
|
|
|
- - variable: mountPath
|
|
|
- label: "Nextcloud Data Mount Path"
|
|
|
- description: "Path where the volume will be mounted inside the pod"
|
|
|
- schema:
|
|
|
- type: path
|
|
|
- editable: false
|
|
|
- default: "/var/www"
|
|
|
- - variable: datasetName
|
|
|
- label: "Nextcloud Dataset Name"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
- default: "ix-nextcloud_data"
|
|
|
- editable: false
|
|
|
-
|
|
|
- - variable: postgresBackupVolume
|
|
|
- label: "Postgres Backup Volume Defaults"
|
|
|
+ - variable: appVolumeMounts
|
|
|
+ label: "Nextcloud Storage"
|
|
|
group: "Storage"
|
|
|
schema:
|
|
|
type: dict
|
|
|
- $ref:
|
|
|
- - "normalize/ixVolume"
|
|
|
attrs:
|
|
|
- - variable: mountPath
|
|
|
- label: "Postgres Backup Mount Path"
|
|
|
- schema:
|
|
|
- type: path
|
|
|
- editable: false
|
|
|
- default: "/postgres_backups"
|
|
|
- - variable: datasetName
|
|
|
- label: "Postgres Backup Dataset Name"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
- default: "ix-postgres_backups"
|
|
|
- editable: false
|
|
|
+ - variable: nextcloud-data
|
|
|
+ label: "Nextcloud Data Volume"
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ attrs:
|
|
|
+ - variable: datasetName
|
|
|
+ label: "Nextcloud Data Volume Name"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ $ref:
|
|
|
+ - "normalize/ixVolume"
|
|
|
+ show_if: [["hostPathEnabled", "=", false]]
|
|
|
+ default: "ix-nextcloud_data"
|
|
|
+ editable: false
|
|
|
+ - variable: mountPath
|
|
|
+ label: "Nextcloud Data Mount Path"
|
|
|
+ description: "Path where the volume will be mounted inside the pod"
|
|
|
+ schema:
|
|
|
+ type: path
|
|
|
+ editable: false
|
|
|
+ default: "/var/www"
|
|
|
+ - variable: hostPathEnabled
|
|
|
+ label: "Enable Host Path for Nextcloud Data Volume"
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ show_subquestions_if: true
|
|
|
+ subquestions:
|
|
|
+ - variable: hostPath
|
|
|
+ label: "Host Path for Nextcloud Data Volume"
|
|
|
+ schema:
|
|
|
+ type: hostpath
|
|
|
+ required: true
|
|
|
|
|
|
- - variable: postgresDataVolume
|
|
|
- label: "Postgresql Data Volume Defaults"
|
|
|
+ - variable: postgresAppVolumeMounts
|
|
|
+ label: "Postgres Storage"
|
|
|
group: "Storage"
|
|
|
schema:
|
|
|
type: dict
|
|
|
- $ref:
|
|
|
- - "normalize/ixVolume"
|
|
|
attrs:
|
|
|
- - variable: mountPath
|
|
|
- label: "Postgres Mount Path"
|
|
|
- schema:
|
|
|
- type: path
|
|
|
- editable: false
|
|
|
- default: "/var/lib/postgresql/data"
|
|
|
- - variable: datasetName
|
|
|
- label: "Postgres Dataset Name"
|
|
|
- schema:
|
|
|
- type: string
|
|
|
- default: "ix-postgres_data"
|
|
|
- editable: false
|
|
|
+ - variable: postgres-data
|
|
|
+ label: "Postgres Data Volume"
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ attrs:
|
|
|
+ - variable: datasetName
|
|
|
+ label: "Postgres Data Volume Name"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ $ref:
|
|
|
+ - "normalize/ixVolume"
|
|
|
+ default: "ix-postgres_data"
|
|
|
+ editable: false
|
|
|
+ - variable: mountPath
|
|
|
+ label: "Postgresql Data Mount Path"
|
|
|
+ description: "Path where the volume will be mounted inside the pod"
|
|
|
+ schema:
|
|
|
+ type: path
|
|
|
+ editable: false
|
|
|
+ default: "/var/lib/postgresql/data"
|
|
|
+ - variable: postgres-backup
|
|
|
+ label: "Postgres Backup Volume"
|
|
|
+ schema:
|
|
|
+ type: dict
|
|
|
+ attrs:
|
|
|
+ - variable: datasetName
|
|
|
+ label: "Postgres Backup Volume Name"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ $ref:
|
|
|
+ - "normalize/ixVolume"
|
|
|
+ default: "ix-postgres_backups"
|
|
|
+ editable: false
|
|
|
+ - variable: mountPath
|
|
|
+ label: "Postgresql Backup Mount Path"
|
|
|
+ description: "Path where the volume will be mounted inside the pod"
|
|
|
+ schema:
|
|
|
+ type: path
|
|
|
+ editable: false
|
|
|
+ default: "/postgres_backups"
|