Refer to oslo_config.sources
The remote_file backend driver is the first driver implemented by oslo.config. It extends the previous limit of only accessing local files to a new scenario where it is possible to access configuration data over the network. The remote_file driver is based on the requests module and is capable of accessing remote files through HTTP or HTTPS.
To definition of a remote_file configuration data source can be as minimal as:
[DEFAULT]
config_source = external_config_group
[external_config_group]
driver = remote_file
uri = http://mydomain.com/path/to/config/data.conf
Or as complete as:
[DEFAULT]
config_source = external_config_group
[external_config_group]
driver = remote_file
uri = https://mydomain.com/path/to/config/data.conf
ca_path = /path/to/server/ca.pem
client_key = /path/to/my/key.pem
client_cert = /path/to/my/cert.pem
On the following sessions, you can find more information about this driver’s classes and its options.
A backend driver for remote files served through http[s].
uri: URI containing the file location.
certificates of trusted CAs.
containing either the certificate only or the private key and the certificate.
specified but does not includes the private key.
A configuration source for remote files served through http[s].
uri – The Uniform Resource Identifier of the configuration to be retrieved.
ca_path – The path to a CA_BUNDLE file or directory with certificates of trusted CAs.
client_cert – Client side certificate, as a single file path containing either the certificate only or the private key and the certificate.
client_key – Client side private key, in case client_cert is specified but does not includes the private key.
The environment backend driver provides a method of accessing configuration data in environment variables. It is enabled by default and requires no additional configuration to use. The environment is checked after command line options, but before configuration files.
Environment variables are checked for any configuration data. The variable names take the form:
A prefix of OS_
The group name, uppercased
Separated from the option name by a __ (double underscore)
Followed by the name
For an option that looks like this in the usual INI format:
[placement_database]
connection = sqlite:///
the corresponding environment variable would be
OS_PLACEMENT_DATABASE__CONNECTION
.
A backend driver for environment variables.
This configuration source is available by default and does not need special configuration to use. The sample config is generated automatically but is not necessary.
A configuration source for options in the environment.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.