Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Static configuration (application.yaml)

...

The component has configuration that can be updated in runtime. This configuration can either be loaded from a file (accessible from the container) or from a CBS/Consul database (Cloudify). The configuration is re-read and refreshed at regular intervals.

...

For details about the syntax of the file, there is an example in source code repository/config/application_configuration.json. This file is also included in the docker container /opt/app/policy-agent/data/application_configuration.json_example.

Using CBS/Consul database for dynamic configuration

The access of CBS is setup by means of environment variables. There is currently no support for setting these at on boarding.

The following variables are required by the CBS:

  • CONSUL_HOST
  • CONSUL_PORT
  • CONFIG_BINDING_SERVICE
  • SERVICE_NAME