manifestpopulatejelastic

Jelastic manifest prepopulation of list values


I am creating a deploy for OpenMage e-commerce here: https://github.com/ProxiBlue/openmage-cluster

In the creation settings dialog, I want to prepopulate the TIMEZONE, LOCALES and CURRENCY from a list generated by a PHP script.

Relevant parts are here:

I pinged Jelastic support and they gave me this format to use to make the prepopulate:

{ "result": 0, "data": { "yourSettingName1": "value1", "yourSettingName2": "value2" } }

however, that only seems to allow population of single value fields, so I end up with OBJECTS in the list selection:

enter image description here

There must obviously be a different format for this, but their docs don;t show what it should be.

Anyone can help me out here?


Solution

  • There must obviously be a different format for this, but their docs don't show what it should be.

    Option "prepopulate" in JPS manifests can be used only to fill simple "Key:Value" pairs, and does not support a list of values.

    Instead, for enabling more dynamic changes in prepopulated values, we suggest you use onBeforeInit event.

    Example of OpenMage Cluster manifest with it you can find in the link below: https://gist.github.com/SlavaKatiukha/6babcefcae557813fe11f994bc13599d#file-openmage-cluster-settings-example-yaml-L61-L69