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'), |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 15 | 'TEST_NAME': os.path.join(LOCAL_PATH, 'test.sqlite3'), |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 16 | }, |
| 17 | } |
| 18 | |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 19 | # The default values for these two settings seem to cause issues with apache |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 20 | CACHE_BACKEND = 'dummy://' |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 21 | SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' |
Jake Dahn | ad73da1 | 2011-09-15 22:28:53 -0700 | [diff] [blame] | 22 | |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 23 | # Send email to the console by default |
| 24 | EMAIL_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 |
| 29 | MAILER_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 Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 37 | HORIZON_CONFIG = { |
| 38 | 'dashboards': ('nova', 'syspanel', 'settings',), |
| 39 | 'default_dashboard': 'nova', |
| 40 | 'user_home': 'dashboard.views.user_home', |
| 41 | } |
| 42 | |
| 43 | OPENSTACK_HOST = "127.0.0.1" |
| 44 | OPENSTACK_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 |
| 47 | OPENSTACK_KEYSTONE_ADMIN_URL = "http://%s:35357/v2.0" % OPENSTACK_HOST |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 48 | OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member" |
| 49 | |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 50 | SWIFT_PAGINATE_LIMIT = 100 |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 51 | |
| 52 | # Configure quantum connection details for networking |
Jake Dahn | a3492ed | 2011-09-15 22:42:43 -0700 | [diff] [blame] | 53 | QUANTUM_ENABLED = False |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 54 | QUANTUM_URL = '%s' % OPENSTACK_HOST |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 55 | QUANTUM_PORT = '9696' |
| 56 | QUANTUM_TENANT = '1234' |
| 57 | QUANTUM_CLIENT_VERSION='0.1' |
| 58 | |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 59 | # If you have external monitoring links, eg: |
| 60 | # EXTERNAL_MONITORING = [ |
| 61 | # ['Nagios','http://foo.com'], |
| 62 | # ['Ganglia','http://bar.com'], |
| 63 | # ] |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 64 | |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 65 | #LOGGING = { |
| 66 | # 'version': 1, |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 67 | # # 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 Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 71 | # 'disable_existing_loggers': False, |
| 72 | # 'handlers': { |
| 73 | # 'null': { |
| 74 | # 'level': 'DEBUG', |
| 75 | # 'class': 'django.utils.log.NullHandler', |
| 76 | # }, |
| 77 | # 'console': { |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 78 | # # Set the level to "DEBUG" for verbose output logging. |
| 79 | # 'level': 'INFO', |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 80 | # 'class': 'logging.StreamHandler', |
| 81 | # }, |
| 82 | # }, |
| 83 | # 'loggers': { |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 84 | # # Logging from django.db.backends is VERY verbose, send to null |
| 85 | # # by default. |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 86 | # 'django.db.backends': { |
| 87 | # 'handlers': ['null'], |
| 88 | # 'propagate': False, |
| 89 | # }, |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 90 | # 'horizon': { |
| 91 | # 'handlers': ['console'], |
Jake Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 92 | # 'propagate': False, |
| 93 | # }, |
Jesse Andrews | 9c7c908 | 2011-11-23 10:10:53 -0800 | [diff] [blame] | 94 | # '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 Dahn | 9337b33 | 2011-09-15 21:46:20 -0700 | [diff] [blame] | 106 | # } |
| 107 | #} |
| 108 | |
| 109 | # How much ram on each compute host? |
| 110 | COMPUTE_HOST_RAM_GB = 16 |