Using Consul as a Configuration Management Service

You can use configurations from the configuration management service, Consul, by defining a token such as #<property name># in the application properties, where <property name> is the name of the configuration parameter.

For example, #EMS_URL#.

Follow these steps to use configurations from Consul:

    Procedure
  1. Set the environment variables - CONSUL_SERVER_URL and APP_CONFIG_PROFILE for your application in TIBCO Cloud™ Integration. To set the engine variables, refer Adding Custom Properties section in the Configuring App Variables topic.
    Note: The X_CONSUL_TOKEN environment variable should be used when authentication is enabled on the Consul server.
  2. Select the required profile as the default profile inside TIBCO Business Studio™ for BusinessWorks™ to fetch the values from Consul Server.
  3. In your Consul Service, define the keys using the format <APP_NAME>/<PROFILE_NAME>/<KEY_NAME>.
  4. For example, tibco.sample.palette.jms.Consul.application/docker/EMS_URL