blob: 4a49a8d017fff2bcd25e93a13a66e759bb19543a [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
Jake Dahnad73da12011-09-15 22:28:53 -070020# Add nixon + other apps to dash installation.
Jake Dahn9337b332011-09-15 21:46:20 -070021INSTALLED_APPS = (
Jake Dahnad73da12011-09-15 22:28:53 -070022 'dashboard',
23 'dashboard.nixon',
24 'django.contrib.contenttypes',
25 'django.contrib.sessions',
26 'django.contrib.messages',
27 'django.contrib.staticfiles',
28 'django_openstack',
29 'django_openstack.templatetags',
30 'mailer',
Jake Dahn9337b332011-09-15 21:46:20 -070031)
32
Jake Dahnad73da12011-09-15 22:28:53 -070033
Jake Dahn9337b332011-09-15 21:46:20 -070034# Send email to the console by default
35EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
36# Or send them to /dev/null
37#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
38
39# django-mailer uses a different settings attribute
40MAILER_EMAIL_BACKEND = EMAIL_BACKEND
41
42# Configure these for your outgoing email host
43# EMAIL_HOST = 'smtp.my-company.com'
44# EMAIL_PORT = 25
45# EMAIL_HOST_USER = 'djangomail'
46# EMAIL_HOST_PASSWORD = 'top-secret!'
47
Jake Dahna3492ed2011-09-15 22:42:43 -070048# FIXME: This needs to be changed to allow for multi-node setup.
Jake Dahn9337b332011-09-15 21:46:20 -070049OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0/"
Anthony Young36d25272011-09-23 07:34:38 +000050OPENSTACK_KEYSTONE_ADMIN_URL = "http://localhost:5001/v2.0"
Jake Dahn9337b332011-09-15 21:46:20 -070051OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
52
53# NOTE(tres): Available services should come from the service
54# catalog in Keystone.
55SWIFT_ENABLED = False
56
57# Configure quantum connection details for networking
Jake Dahna3492ed2011-09-15 22:42:43 -070058QUANTUM_ENABLED = False
Jake Dahn9337b332011-09-15 21:46:20 -070059QUANTUM_URL = '127.0.0.1'
60QUANTUM_PORT = '9696'
61QUANTUM_TENANT = '1234'
62QUANTUM_CLIENT_VERSION='0.1'
63
Jesse Andrews85f7b4d2011-09-19 14:25:08 -070064# We use nixon to embed instead of external monitoring links
65EXTERNAL_MONITORING = []
Jake Dahn9337b332011-09-15 21:46:20 -070066
67# Uncomment the following segment to silence most logging
68# django.db and boto DEBUG logging is extremely verbose.
69#LOGGING = {
70# 'version': 1,
71# # set to True will disable all logging except that specified, unless
72# # nothing is specified except that django.db.backends will still log,
73# # even when set to True, so disable explicitly
74# 'disable_existing_loggers': False,
75# 'handlers': {
76# 'null': {
77# 'level': 'DEBUG',
78# 'class': 'django.utils.log.NullHandler',
79# },
80# 'console': {
81# 'level': 'DEBUG',
82# 'class': 'logging.StreamHandler',
83# },
84# },
85# 'loggers': {
86# # Comment or Uncomment these to turn on/off logging output
87# 'django.db.backends': {
88# 'handlers': ['null'],
89# 'propagate': False,
90# },
91# 'django_openstack': {
92# 'handlers': ['null'],
93# 'propagate': False,
94# },
95# }
96#}
97
98# How much ram on each compute host?
99COMPUTE_HOST_RAM_GB = 16