Centralized Properties Customization
This feature gives the ability to add, modify, and remove properties in one file. The properties are propagated to the specified property files. The template process, which is part of the initialSetup step, will look at the files etc/cm_properties.ini (this can be created as a Customer Customization), if the file exists the content will be processed for the relevant properties.
Note: Product teams might use this file format: etc/<PROD>_properties.ini (where <PROD> could be one of the list of installed products included in etc/PRODUCT.txt). If it exits it will be processed as well.
cm_properties.ini examples
Type of entries that could be included into cm_properties.ini and relevant type of action:
<PROPERTIES_FILE>:<PROPERTY_NAME>=<VALUE>
Override <PROPERTY_NAME> in <PROPERTIES_FILE> with <VALUE> if exists.
Insert <PROPERTY_NAME> in <PROPERTIES_FILE> with <VALUE> it doesn't exists.
<PROPERTY_NAME>=<VALUE>
Override <PROPERTY_NAME> in all property files with <VALUE>, if <PROPERTY_NAME> exists.
<PROPERTIES_FILE>:<PROPERTY_NAME>=[DELETE]
Remove <PROPERTY_NAME> from <PROPERTIES_FILE> if exists.
<PROPERTY_NAME>=[DELETE]
Remove <PROPERTY_NAME> from all property files, if <PROPERTY_NAME> exists.
Template example: hibernate.service.properties.template
hibernate.user = @DBUSER@
hibernate.pass = @DBPASS@
hibernate.ucp.validate_connection = true
ENVIRON.INI example
DBUSER=cisadm
cm_properties.ini example
hibernate.service.properties.template:hibernate.user=clouduser
hibernate.password=cloudpwd
hibernate.iws.properties.template:hibernate.user=clouduser
hibernate.service.properties.template:hibernate.ucp.validate_connection=[DELETE]
hibernate.service.properties.template:new.property=test
hibernate.service.properties generated properties file result
### The following line was overridden because <PROD>_properties.ini file setting:
hibernate.user=clouduser
### The following line was overridden because <PROD>_properties.ini file setting:
hibernate.password=cloudpwd
### The following line was deleted because <PROD>_properties.ini file setting:
# hibernate.ucp.validate_connection = true
### The following line was appended because <PROD>_properties.ini file setting:
new.property = test
hibernate.iws.properties generated properties file result
### The following line was overridden because <PROD>_properties.ini file setting:
hibernate.user=clouduser
### The following line was overridden because <PROD>_properties.ini file setting:
hibernate.password=cloudpwd