wazo-dird configuration¶
There are three sources of configuration for wazo-dird:
- the command line options
- the main configuration file
- configuration done using the API
The command-line options have priority over the main configuration file options.
Main Configuration File¶
Default location: /etc/wazo-dird/config.yml
. Format: YAML
The default location may be overwritten by the command line options.
Here’s an example of the main configuration file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | debug: False
foreground: False
log_filename: /var/log/wazo-dird.log
log_level: info
pid_filename: /run/wazo-dird/wazo-dird.pid
user: www-data
enabled_plugins:
backends:
csv: true
ldap: true
phonebook: true
services:
lookup: true
views:
cisco_view: true
default_json: true
|
Root section¶
- debug
- Enable log debug messages. Overrides
log_level
. Default:False
. - foreground
- Foreground, don’t daemonize. Default:
False
. - log_filename
- File to write logs to. Default:
/var/log/wazo-dird.log
. - log_level
- Logs messages with LOG_LEVEL details. Must be one of:
critical
,error
,warning
,info
,debug
. Default:info
. - pid_filename
- File used as lock to avoid multiple wazo-dird instances. Default:
/run/wazo-dird/wazo-dird.pid
. - user
- The owner of the process. Default:
www-data
.
enabled_plugins section¶
This sections controls which plugins are to be loaded at wazo-dird startup. All plugin types must have at least one plugin enabled, or wazo-dird will not start. For back-end plugins, sources using a back-end plugin that is not enabled will be ignored.