The manage-profile tool uses the format ${VARIABLE} to support the substitution of variables in profiles. This format can be escaped by using another $. For example, after substitution, $${VARIABLE} becomes ${VARIABLE}.

Variable values can be read from a profile variables file or from environment variable values. If both options are used, the values that are specified in the file overwrite any environment variables.

The following code provides an example profile variables file.

PING_SERVER_ROOT=value
PING_PROFILE_ROOT=anothervalue

In this example, the tool provides the PING_SERVER_ROOT and PING_PROFILE_ROOT variables. When used in a server profile, ${PING_SERVER_ROOT} evaluates to the absolute path to the server's root directory. Similarly, ${PING_PROFILE_ROOT} evaluates to the individual profile's root directory.

For more information about the tool's usage, run the command bin/manage-profile --help.