OpenStack in a snap!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
1.3 KiB

  1. # Tweaks to make this run nicely in a snap.
  2. # TODO: turn this off once everything is working nicely.
  3. DEBUG = True
  4. # Set our webroot.
  5. WEBROOT = '/'
  6. # Django wants to write out compressed files even when we turn
  7. # compression off (either a bug or something that I'm not
  8. # understanding). Tell it to write them some place writeable.
  9. STATIC_ROOT = '/var/snap/microstack/common/var/horizon/static'
  10. # Disable extra themes for now. TODO: Re-enable when
  11. # https://github.com/CanonicalLtd/microstack/issues/39 is
  12. # addressed. (You'll need to uncomment the material theme below when testing
  13. # the fix.)
  14. AVAILABLE_THEMES = [
  15. ('default', 'Default', 'themes/default'),
  16. # ('material', 'Material', 'themes/material'),
  17. ('ubuntu', 'Ubuntu', 'themes/ubuntu'),
  18. ]
  19. # Point us at keystone.
  20. OPENSTACK_HOST = "10.20.20.1"
  21. OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
  22. OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
  23. # Turn off external access for now. (This should be turned on once we
  24. # have hooks for setting a non default password.)
  25. ALLOWED_HOSTS = ['10.20.20.1', 'localhost', '127.0.0.1']
  26. # Use memcached as our caching backend.
  27. CACHES = {
  28. 'default': {
  29. #
  30. 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
  31. 'LOCATION': '10.20.20.1:11211',
  32. }
  33. }
  34. SESSION_ENGINE='django.contrib.sessions.backends.cache'