Configuration templates are templates for files that are
created during a component process. Typically, the data is for configurations
for web servers, but the files can be used for any application that
you deploy.
About this task
A configuration template contains property names and property references. For example, the
following line can be used in a configuration
template:
database.username=@DB_USER@
When you deploy the component in an
environment, the value of the
DB_USER property that is defined for that
environment is substituted for the
@DB_USER@ reference.
As an alternative to
using configuration templates, you can also use the Create File step. In this case, you specify the
contents of the file in the Contents field and include property references in
the usual syntax of ${scope/propertyname},
where scope is the scope of the property and
propertyname is the name of the property.
Results
When you run the component process, the Install Template step creates a file that is based
on the configuration template. The step replaces the property references with the property values.
The default name of the file is the same as the name of the configuration template.