Toxicmaster config¶
The configuration of toxicmaster is done using the a configuration file. The configuration
file can be passed using the -c flag to the toxicmaster command
or settings the environment variable TOXICMASTER_SETTINGS.
This file is a python file, so do what ever you want with it.
Config values¶
Note
Although the config is done using a config file, the default
configuration file created by toxicmaster create can use
environment variables instead.
PORT- The port for the server to listen. Defaults to 1111. Environment variable:MASTER_PORTUSE_SSL- Defaults to False. Environment variable:MASTER_USE_SSL. Possible values are 0 or 1.CERTIFILE- Path for a certificate file. Environment variable:MASTER_CERTIFILEKEYFILE- Path for a key file. Environment variable:MASTER_KEYFILEACCESS_TOKEN- An sha512 encrypted string used to authenticate an incomming request. Environment variable:MASTER_ENCRYPTED_TOKEN.
Note
You can create a new access token using the toxicmaster create_token
command. For more information use:
$ toxicmaster create_token --help
ZK_SERVERS- A list of zookeeper servers. Environment variable:ZK_SERVERS. Servers must be comma separated.ZK_KWARGS- Arguments passed to zookeeper client. Check the aiozk docs.DBHOST- Host for the database connection. Environment variable:SECRETS_DBHOST.DBPORT- Port for the database connection. Defaults to 27017. Environment variable:SECRETS_DBPORT.DBNAME- The database name. Defaults to toxicsecrets. Environment variable:SECRETS_DBNAMEDBUSER- User name for authenticated access to the database Environment variable:SECRETS_DBUSERDBPASS- Password for authenticated access to the database Environment variable:SECRETS_DBPASSAMQP_HOST- host for the rabbitmq broker. Environment variable:AMQPHOSTAMQP_PORT- port for the rabbitmq broker. Environment variable:AMQPPORTAMQP_LOGIN- login for the rabbitmq broker. Environment variable:AMQPLOGINAMQP_VIRTUALHOST- virtualhost for the rabbitmq broker. Environment variable:AMQPVIRTUALHOSTAMQP_PASSWORD- password for the rabbitmq broker. Environment variable:AMQPPASSWORDPOLLER_HOST- toxicpoller’s host Environment variable:POLLER_HOSTPOLLER_PORT- toxicpoller’s port Environment variable:POLLER_PORTPOLLER_TOKEN- toxicpoller’s auth token Environment variable:POLLER_TOKENPOLLER_USES_SSL- Does toxicpoller use ssl connections? Environment variable:POLLER_USES_SSLVALIDATE_CERT_POLLER- Should the poller certificate be validated? Environment variable:VALIDATE_CERT_POLLERSECRETS_HOST- toxicsecrets’s host Environment variable:SECRETS_HOSTSECRETS_PORT- toxicsecrets’s port Environment variable:SECRETS_PORTSECRETS_TOKEN- toxicsecrets’s auth token Environment variable:SECRETS_TOKENSECRETS_USES_SSL- Does toxicsecrets use ssl connections? Environment variable:SECRETS_USES_SSLVALIDATE_CERT_SECRETS- Should the secrets certificate be validated? Environment variable:VALIDATE_CERT_SECRETS