blob: 3a17db2c5cea997e80bd6c74fa8e525d738643a3 [file] [log] [blame]
Jake Dahn9337b332011-09-15 21:46:20 -07001import os
2
3DEBUG = True
4TEMPLATE_DEBUG = DEBUG
5PROD = False
6USE_SSL = False
7
8LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
Jake Dahna3492ed2011-09-15 22:42:43 -07009
10# FIXME: We need to change this to mysql, instead of sqlite.
Jake Dahn9337b332011-09-15 21:46:20 -070011DATABASES = {
12 'default': {
13 'ENGINE': 'django.db.backends.sqlite3',
14 'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack.sqlite3'),
15 },
16}
17
18CACHE_BACKEND = 'dummy://'
19
Tres Henryca85b792011-10-28 14:00:21 -070020# Add apps to horizon installation.
Jake Dahn9337b332011-09-15 21:46:20 -070021INSTALLED_APPS = (
Jake Dahnad73da12011-09-15 22:28:53 -070022 'dashboard',
Jake Dahnad73da12011-09-15 22:28:53 -070023 'django.contrib.contenttypes',
24 'django.contrib.sessions',
25 'django.contrib.messages',
26 'django.contrib.staticfiles',
27 'django_openstack',
28 'django_openstack.templatetags',
29 'mailer',
Jake Dahn9337b332011-09-15 21:46:20 -070030)
31
Jake Dahnad73da12011-09-15 22:28:53 -070032
Jake Dahn9337b332011-09-15 21:46:20 -070033# Send email to the console by default
34EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
35# Or send them to /dev/null
36#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
37
38# django-mailer uses a different settings attribute
39MAILER_EMAIL_BACKEND = EMAIL_BACKEND
40
41# Configure these for your outgoing email host
42# EMAIL_HOST = 'smtp.my-company.com'
43# EMAIL_PORT = 25
44# EMAIL_HOST_USER = 'djangomail'
45# EMAIL_HOST_PASSWORD = 'top-secret!'
46
Jake Dahna3492ed2011-09-15 22:42:43 -070047# FIXME: This needs to be changed to allow for multi-node setup.
Jake Dahn9337b332011-09-15 21:46:20 -070048OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0/"
Anthony Younga449dd82011-09-30 15:52:18 -070049OPENSTACK_KEYSTONE_ADMIN_URL = "http://localhost:35357/v2.0"
Jake Dahn9337b332011-09-15 21:46:20 -070050OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
51
52# NOTE(tres): Available services should come from the service
53# catalog in Keystone.
54SWIFT_ENABLED = False
55
56# Configure quantum connection details for networking
Jake Dahna3492ed2011-09-15 22:42:43 -070057QUANTUM_ENABLED = False
Jake Dahn9337b332011-09-15 21:46:20 -070058QUANTUM_URL = '127.0.0.1'
59QUANTUM_PORT = '9696'
60QUANTUM_TENANT = '1234'
61QUANTUM_CLIENT_VERSION='0.1'
62
Jesse Andrews9b6741e2011-10-02 10:01:00 -070063# No monitoring links currently
Jesse Andrews85f7b4d2011-09-19 14:25:08 -070064EXTERNAL_MONITORING = []
Jake Dahn9337b332011-09-15 21:46:20 -070065
66# Uncomment the following segment to silence most logging
67# django.db and boto DEBUG logging is extremely verbose.
68#LOGGING = {
69# 'version': 1,
70# # set to True will disable all logging except that specified, unless
71# # nothing is specified except that django.db.backends will still log,
72# # even when set to True, so disable explicitly
73# 'disable_existing_loggers': False,
74# 'handlers': {
75# 'null': {
76# 'level': 'DEBUG',
77# 'class': 'django.utils.log.NullHandler',
78# },
79# 'console': {
80# 'level': 'DEBUG',
81# 'class': 'logging.StreamHandler',
82# },
83# },
84# 'loggers': {
85# # Comment or Uncomment these to turn on/off logging output
86# 'django.db.backends': {
87# 'handlers': ['null'],
88# 'propagate': False,
89# },
90# 'django_openstack': {
91# 'handlers': ['null'],
92# 'propagate': False,
93# },
94# }
95#}
96
97# How much ram on each compute host?
98COMPUTE_HOST_RAM_GB = 16