blob: 05ddfe7bf901e9f26ac330f17b8ec6a73528b004 [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
52# Configure quantum connection details for networking
Jake Dahna3492ed2011-09-15 22:42:43 -070053QUANTUM_ENABLED = False
Jesse Andrews9c7c9082011-11-23 10:10:53 -080054QUANTUM_URL = '%s' % OPENSTACK_HOST
Jake Dahn9337b332011-09-15 21:46:20 -070055QUANTUM_PORT = '9696'
56QUANTUM_TENANT = '1234'
57QUANTUM_CLIENT_VERSION='0.1'
58
Jesse Andrews9c7c9082011-11-23 10:10:53 -080059# If you have external monitoring links, eg:
60# EXTERNAL_MONITORING = [
61# ['Nagios','http://foo.com'],
62# ['Ganglia','http://bar.com'],
63# ]
Jake Dahn9337b332011-09-15 21:46:20 -070064
Jake Dahn9337b332011-09-15 21:46:20 -070065#LOGGING = {
66# 'version': 1,
Jesse Andrews9c7c9082011-11-23 10:10:53 -080067# # When set to True this will disable all logging except
68# # for loggers specified in this configuration dictionary. Note that
69# # if nothing is specified here and disable_existing_loggers is True,
70# # django.db.backends will still log unless it is disabled explicitly.
Jake Dahn9337b332011-09-15 21:46:20 -070071# 'disable_existing_loggers': False,
72# 'handlers': {
73# 'null': {
74# 'level': 'DEBUG',
75# 'class': 'django.utils.log.NullHandler',
76# },
77# 'console': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080078# # Set the level to "DEBUG" for verbose output logging.
79# 'level': 'INFO',
Jake Dahn9337b332011-09-15 21:46:20 -070080# 'class': 'logging.StreamHandler',
81# },
82# },
83# 'loggers': {
Jesse Andrews9c7c9082011-11-23 10:10:53 -080084# # Logging from django.db.backends is VERY verbose, send to null
85# # by default.
Jake Dahn9337b332011-09-15 21:46:20 -070086# 'django.db.backends': {
87# 'handlers': ['null'],
88# 'propagate': False,
89# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080090# 'horizon': {
91# 'handlers': ['console'],
Jake Dahn9337b332011-09-15 21:46:20 -070092# 'propagate': False,
93# },
Jesse Andrews9c7c9082011-11-23 10:10:53 -080094# 'novaclient': {
95# 'handlers': ['console'],
96# 'propagate': False,
97# },
98# 'keystoneclient': {
99# 'handlers': ['console'],
100# 'propagate': False,
101# },
102# 'nose.plugins.manager': {
103# 'handlers': ['console'],
104# 'propagate': False,
105# }
Jake Dahn9337b332011-09-15 21:46:20 -0700106# }
107#}
108
109# How much ram on each compute host?
110COMPUTE_HOST_RAM_GB = 16