blob: bbff08fa035a0dc3ca42d05d7d8498bf1fbc3d3d [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'),
Jesse Andrews9c7c9082011-11-23 10:10:53 -080015 'TEST_NAME': os.path.join(LOCAL_PATH, 'test.sqlite3'),
Jake Dahn9337b332011-09-15 21:46:20 -070016 },
17}
18
Jesse Andrews9c7c9082011-11-23 10:10:53 -080019# The default values for these two settings seem to cause issues with apache
Jake Dahn9337b332011-09-15 21:46:20 -070020CACHE_BACKEND = 'dummy://'
Jesse Andrews9c7c9082011-11-23 10:10:53 -080021SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
Jake Dahnad73da12011-09-15 22:28:53 -070022
Jake Dahn9337b332011-09-15 21:46:20 -070023# Send email to the console by default
24EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
25# Or send them to /dev/null
26#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
27
28# django-mailer uses a different settings attribute
29MAILER_EMAIL_BACKEND = EMAIL_BACKEND
30
31# Configure these for your outgoing email host
32# EMAIL_HOST = 'smtp.my-company.com'
33# EMAIL_PORT = 25
34# EMAIL_HOST_USER = 'djangomail'
35# EMAIL_HOST_PASSWORD = 'top-secret!'
36
Jesse Andrews9c7c9082011-11-23 10:10:53 -080037HORIZON_CONFIG = {
38 'dashboards': ('nova', 'syspanel', 'settings',),
39 'default_dashboard': 'nova',
40 'user_home': 'dashboard.views.user_home',
41}
42
43OPENSTACK_HOST = "127.0.0.1"
44OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
45# FIXME: this is only needed until keystone fixes its GET /tenants call
46# so that it doesn't return everything for admins
47OPENSTACK_KEYSTONE_ADMIN_URL = "http://%s:35357/v2.0" % OPENSTACK_HOST
Jake Dahn9337b332011-09-15 21:46:20 -070048OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
49
Jesse Andrews9c7c9082011-11-23 10:10:53 -080050SWIFT_PAGINATE_LIMIT = 100
Jake Dahn9337b332011-09-15 21:46:20 -070051
Jesse Andrews9c7c9082011-11-23 10:10:53 -080052# If you have external monitoring links, eg:
53# EXTERNAL_MONITORING = [
54# ['Nagios','http://foo.com'],
55# ['Ganglia','http://bar.com'],
56# ]
Jake Dahn9337b332011-09-15 21:46:20 -070057
Jake Dahn9337b332011-09-15 21:46:20 -070058#LOGGING = {
59# 'version': 1,
Jesse Andrews9c7c9082011-11-23 10:10:53 -080060# # When set to True this will disable all logging except
61# # for loggers specified in this configuration dictionary. Note that
62# # if nothing is specified here and disable_existing_loggers is True,
63# # django.db.backends will still log unless it is disabled explicitly.
Jake Dahn9337b332011-09-15 21:46:20 -070064# 'disable_existing_loggers': False,
65# 'handlers': {
66# 'null': {
67# 'level': 'DEBUG',
68# 'class': 'django.utils.log.NullHandler',
69# },
70# 'console': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080071# # Set the level to "DEBUG" for verbose output logging.
72# 'level': 'INFO',
Jake Dahn9337b332011-09-15 21:46:20 -070073# 'class': 'logging.StreamHandler',
74# },
75# },
76# 'loggers': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080077# # Logging from django.db.backends is VERY verbose, send to null
78# # by default.
Jake Dahn9337b332011-09-15 21:46:20 -070079# 'django.db.backends': {
80# 'handlers': ['null'],
81# 'propagate': False,
82# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080083# 'horizon': {
84# 'handlers': ['console'],
Jake Dahn9337b332011-09-15 21:46:20 -070085# 'propagate': False,
86# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080087# 'novaclient': {
88# 'handlers': ['console'],
89# 'propagate': False,
90# },
91# 'keystoneclient': {
92# 'handlers': ['console'],
93# 'propagate': False,
94# },
95# 'nose.plugins.manager': {
96# 'handlers': ['console'],
97# 'propagate': False,
98# }
Jake Dahn9337b332011-09-15 21:46:20 -070099# }
100#}
101
102# How much ram on each compute host?
103COMPUTE_HOST_RAM_GB = 16