devstack_custom/files/horizon_settings.py

99 lines
2.8 KiB
Python
Raw Normal View History

2011-09-16 04:46:20 +00:00
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROD = False
USE_SSL = False
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
2011-09-16 05:42:43 +00:00
# FIXME: We need to change this to mysql, instead of sqlite.
2011-09-16 04:46:20 +00:00
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack.sqlite3'),
},
}
CACHE_BACKEND = 'dummy://'
2011-10-28 21:00:21 +00:00
# Add apps to horizon installation.
2011-09-16 04:46:20 +00:00
INSTALLED_APPS = (
'dashboard',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_openstack',
'django_openstack.templatetags',
'mailer',
2011-09-16 04:46:20 +00:00
)
2011-09-16 04:46:20 +00:00
# Send email to the console by default
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Or send them to /dev/null
#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
# django-mailer uses a different settings attribute
MAILER_EMAIL_BACKEND = EMAIL_BACKEND
# Configure these for your outgoing email host
# EMAIL_HOST = 'smtp.my-company.com'
# EMAIL_PORT = 25
# EMAIL_HOST_USER = 'djangomail'
# EMAIL_HOST_PASSWORD = 'top-secret!'
2011-09-16 05:42:43 +00:00
# FIXME: This needs to be changed to allow for multi-node setup.
2011-09-16 04:46:20 +00:00
OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0/"
2011-09-30 22:52:18 +00:00
OPENSTACK_KEYSTONE_ADMIN_URL = "http://localhost:35357/v2.0"
2011-09-16 04:46:20 +00:00
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
# NOTE(tres): Available services should come from the service
# catalog in Keystone.
SWIFT_ENABLED = False
# Configure quantum connection details for networking
2011-09-16 05:42:43 +00:00
QUANTUM_ENABLED = False
2011-09-16 04:46:20 +00:00
QUANTUM_URL = '127.0.0.1'
QUANTUM_PORT = '9696'
QUANTUM_TENANT = '1234'
QUANTUM_CLIENT_VERSION='0.1'
2011-10-02 17:01:00 +00:00
# No monitoring links currently
2011-09-19 21:25:08 +00:00
EXTERNAL_MONITORING = []
2011-09-16 04:46:20 +00:00
# Uncomment the following segment to silence most logging
# django.db and boto DEBUG logging is extremely verbose.
#LOGGING = {
# 'version': 1,
# # set to True will disable all logging except that specified, unless
# # nothing is specified except that django.db.backends will still log,
# # even when set to True, so disable explicitly
# 'disable_existing_loggers': False,
# 'handlers': {
# 'null': {
# 'level': 'DEBUG',
# 'class': 'django.utils.log.NullHandler',
# },
# 'console': {
# 'level': 'DEBUG',
# 'class': 'logging.StreamHandler',
# },
# },
# 'loggers': {
# # Comment or Uncomment these to turn on/off logging output
# 'django.db.backends': {
# 'handlers': ['null'],
# 'propagate': False,
# },
# 'django_openstack': {
# 'handlers': ['null'],
# 'propagate': False,
# },
# }
#}
# How much ram on each compute host?
COMPUTE_HOST_RAM_GB = 16