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 | |
Jake Dahn | ad73da1 | 2011-09-15 22:28:53 -0700 | [diff] [blame] | 20 | # Add nixon + other apps to dash 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', |
| 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 Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 31 | ) |
| 32 | |
Jake Dahn | ad73da1 | 2011-09-15 22:28:53 -0700 | [diff] [blame] | 33 | |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 34 | # Send email to the console by default |
| 35 | EMAIL_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 |
| 40 | MAILER_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 Dahn | a3492ed | 2011-09-15 22:42:43 -0700 | [diff] [blame] | 48 | # FIXME: This needs to be changed to allow for multi-node setup. |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 49 | OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0/" |
Anthony Young | 36d2527 | 2011-09-23 07:34:38 +0000 | [diff] [blame^] | 50 | OPENSTACK_KEYSTONE_ADMIN_URL = "http://localhost:5001/v2.0" |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 51 | OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member" |
| 52 | |
| 53 | # NOTE(tres): Available services should come from the service |
| 54 | # catalog in Keystone. |
| 55 | SWIFT_ENABLED = False |
| 56 | |
| 57 | # Configure quantum connection details for networking |
Jake Dahn | a3492ed | 2011-09-15 22:42:43 -0700 | [diff] [blame] | 58 | QUANTUM_ENABLED = False |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 59 | QUANTUM_URL = '127.0.0.1' |
| 60 | QUANTUM_PORT = '9696' |
| 61 | QUANTUM_TENANT = '1234' |
| 62 | QUANTUM_CLIENT_VERSION='0.1' |
| 63 | |
Jesse Andrews | 85f7b4d | 2011-09-19 14:25:08 -0700 | [diff] [blame] | 64 | # We use nixon to embed instead of external monitoring links |
| 65 | EXTERNAL_MONITORING = [] |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 66 | |
| 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? |
| 99 | COMPUTE_HOST_RAM_GB = 16 |