Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 1 | import os |
| 2 | |
| 3 | DEBUG = True |
| 4 | TEMPLATE_DEBUG = DEBUG |
| 5 | PROD = False |
| 6 | USE_SSL = False |
| 7 | |
| 8 | LOCAL_PATH = os.path.dirname(os.path.abspath(__file__)) |
Jake Dahn | a3492ed | 2011-09-15 22:42:43 -0700 | [diff] [blame] | 9 | |
| 10 | # FIXME: We need to change this to mysql, instead of sqlite. |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 11 | DATABASES = { |
| 12 | 'default': { |
| 13 | 'ENGINE': 'django.db.backends.sqlite3', |
| 14 | 'NAME': os.path.join(LOCAL_PATH, 'dashboard_openstack.sqlite3'), |
| 15 | }, |
| 16 | } |
| 17 | |
| 18 | CACHE_BACKEND = 'dummy://' |
| 19 | |
Tres Henry | ca85b79 | 2011-10-28 14:00:21 -0700 | [diff] [blame] | 20 | # Add apps to horizon installation. |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 21 | INSTALLED_APPS = ( |
Jake Dahn | ad73da1 | 2011-09-15 22:28:53 -0700 | [diff] [blame] | 22 | 'dashboard', |
Jake Dahn | ad73da1 | 2011-09-15 22:28:53 -0700 | [diff] [blame] | 23 | '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 Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 30 | ) |
| 31 | |
Jake Dahn | ad73da1 | 2011-09-15 22:28:53 -0700 | [diff] [blame] | 32 | |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 33 | # Send email to the console by default |
| 34 | EMAIL_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 |
| 39 | MAILER_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 Dahn | a3492ed | 2011-09-15 22:42:43 -0700 | [diff] [blame] | 47 | # FIXME: This needs to be changed to allow for multi-node setup. |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 48 | OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0/" |
Anthony Young | a449dd8 | 2011-09-30 15:52:18 -0700 | [diff] [blame] | 49 | OPENSTACK_KEYSTONE_ADMIN_URL = "http://localhost:35357/v2.0" |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 50 | OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member" |
| 51 | |
| 52 | # NOTE(tres): Available services should come from the service |
| 53 | # catalog in Keystone. |
| 54 | SWIFT_ENABLED = False |
| 55 | |
| 56 | # Configure quantum connection details for networking |
Jake Dahn | a3492ed | 2011-09-15 22:42:43 -0700 | [diff] [blame] | 57 | QUANTUM_ENABLED = False |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 58 | QUANTUM_URL = '127.0.0.1' |
| 59 | QUANTUM_PORT = '9696' |
| 60 | QUANTUM_TENANT = '1234' |
| 61 | QUANTUM_CLIENT_VERSION='0.1' |
| 62 | |
Jesse Andrews | 9b6741e | 2011-10-02 10:01:00 -0700 | [diff] [blame] | 63 | # No monitoring links currently |
Jesse Andrews | 85f7b4d | 2011-09-19 14:25:08 -0700 | [diff] [blame] | 64 | EXTERNAL_MONITORING = [] |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 65 | |
| 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? |
| 98 | COMPUTE_HOST_RAM_GB = 16 |