Configuration Options¶
This extends the normal django settings module so we can simply call:
from dtrove import config
NOVA_USER = config.NOVA_USERNAME
This allows us to have a consistent place to define possible settings and document them as well as provide some defaults and warnings. To modify any of these values simply edit your django settings file.
- class dtrove.config¶
This defines the available options to configure dtrove.
These are set or overridden in the django settings file.
- DTROVE_DATASTORE_MANAGERS = [('dtrove.datastores.mysql.MySQLManager', 'mysql'), ('dtrove.datastores.redis.RedisManager', 'redis'), ('dtrove.datastores.pgsql.PostgresManager', 'postgres')]¶
List of available datastores. This should be a list of tuples:
[('path.to.Manager', 'manager_name'), ...]
- DTROVE_MAX_CLUSTER_SIZE = 5¶
Max number of nodes in a cluster
- DTROVE_PREFIX = 'sudo '¶
Prefix for the remote commands this has access to all the instance properties. EX:
DTROVE_PREFIX = 'sudo /usr/sbin/vzctl exec %(local_id)s '
- DTROVE_PROVIDER = 'dtrove.providers.openstack.Provider'¶
The Cloud Providers that you have enabled.
- DTROVE_SSH_USER = 'root'¶
Default SSH user to use when connecting to hosts
- OS_AUTH_URL = 'http://0.0.0.0:5000/v2.0'¶
The url of the identity service for openstack.
- OS_NOVA_BYPASS_URL = None¶
Actual url to use instead of the endpoint from the catalog.
- OS_NOVA_ENDPOINT_TYPE = 'publicURL'¶
Type of the nova endpoint.
- OS_PASSWORD = None¶
The openstack management user’s password
- OS_PROJECT_ID = None¶
OS_TENANT_ID or OS_PROJECT_ID of the openstack user.
- OS_USERNAME = None¶
The openstack management username