-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Configuration, Launcher
-
Tags:
-
Upgrade notes:
-
Team:PLATFORM
-
Sprint:nxplatform #23, nxplatform #24, nxplatform #25, nxplatform #26, nxplatform #27
-
Story Points:3
Currently, there is no other way than overriding the whole nuxeo.templates property in nuxeo.conf if we want to add new templates to be deployed in a given environment: that means we must know the exact list of templates configured by default + all installed packages.
We want to allow nuxeo.append.templates.* properties in nuxeo.conf.
All those properties will be sorted alphabetically (for determinism and reproducibility), and all the values will be added after the ones from the nuxeo.templates property when passing everything to the ConfigurationGenerator.
For instance, we could have:
nuxeo.templates=default
...
nuxeo.append.templates.infra=mongodb,redis,kafka
nuxeo.append.templates.cloud=cloud-cloudfront, cloud-directupload
The effective list will be: default,cloud-cloudfront,cloud-directupload, mongodb,redis,kafka.
This could then be used in our default Nuxeo Helm chart:
... {{- if or .Values.mongodb.deploy .Values.tags.mongodb }} nuxeo.append.templates.mongo=mongodb nuxeo.mongodb.server=mongodb://{{ .Release.Name }}-mongodb:27017 nuxeo.mongodb.dbname={{ .Values.nuxeo.mongodb.dbname }} {{- end }} {{- if or .Values.postgresql.deploy .Values.tags.postgresql }} nuxeo.append.templates.postgres=postgresql nuxeo.db.name={{ .Values.nuxeo.postgresql.dbname }} nuxeo.db.user={{ .Values.nuxeo.postgresql.username }} nuxeo.db.password={{ .Values.nuxeo.postgresql.password }} nuxeo.db.host={{ .Release.Name }}-postgresql nuxeo.db.port=5432 {{- end }} {{- if or .Values.redis.deploy .Values.tags.redis }} nuxeo.append.templates.redis=redis {{- end }} ...
- causes
-
NXP-30418 Windows ZIP distribution: 2021.1-HF02 or HF03: cannot bootstrap
- Resolved
-
NXP-30454 Cannot boot with 2021-HF02 when symlinking server directories
- Resolved
- is related to
-
NXDOC-2280 Documents the nuxeo.append.templates.* parameter
- Resolved
- Is referenced in