Advertisement
Guest User

Untitled

a guest
Jan 13th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1.  
  2. openstack-horizon-5108947/openstack-dashboard/local# more local_settings.py
  3. import os
  4.  
  5. DEBUG = True
  6. TEMPLATE_DEBUG = DEBUG
  7. PROD = False
  8. USE_SSL = False
  9.  
  10. LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
  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.  
  20.  
  21. # Send email to the console by default
  22. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  23. # Or send them to /dev/null
  24. #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
  25.  
  26. # django-mailer uses a different settings attribute
  27. MAILER_EMAIL_BACKEND = EMAIL_BACKEND
  28.  
  29. # Configure these for your outgoing email host
  30. # EMAIL_HOST = 'smtp.my-company.com'
  31. # EMAIL_PORT = 25
  32. # EMAIL_HOST_USER = 'djangomail'
  33. # EMAIL_HOST_PASSWORD = 'top-secret!'
  34.  
  35.  
  36. OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0/"
  37. # FIXME: this is only needed until keystone fixes its GET /tenants call
  38. # so that it doesn't return everything for admins
  39. OPENSTACK_ADMIN_TOKEN = "999888777666"
  40. OPENSTACK_KEYSTONE_ADMIN_URL = "http://localhost:35357/v2.0"
  41. OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
  42.  
  43. # NOTE(tres): Available services should come from the service
  44. # catalog in Keystone.
  45. SWIFT_ENABLED = False
  46.  
  47. # Configure quantum connection details for networking
  48. QUANTUM_ENABLED = False
  49. QUANTUM_URL = '127.0.0.1'
  50. QUANTUM_PORT = '9696'
  51. QUANTUM_TENANT = '1234'
  52. QUANTUM_CLIENT_VERSION='0.1'
  53.  
  54. # If you have external monitoring links
  55. EXTERNAL_MONITORING = [
  56. ['Nagios','http://foo.com'],
  57. ['Ganglia','http://bar.com'],
  58. ]
  59.  
  60. # If you do not have external monitoring links
  61. # EXTERNAL_MONITORING = []
  62.  
  63. # Uncomment the following segment to silence most logging
  64. # django.db and boto DEBUG logging is extremely verbose.
  65. #LOGGING = {
  66. # 'version': 1,
  67. # # set to True will disable all logging except that specified, unless
  68. # # nothing is specified except that django.db.backends will still log,
  69. # # even when set to True, so disable explicitly
  70. # 'disable_existing_loggers': False,
  71. # 'handlers': {
  72. # 'null': {
  73. # 'level': 'DEBUG',
  74. # 'class': 'django.utils.log.NullHandler',
  75. # },
  76. # 'console': {
  77. # 'level': 'DEBUG',
  78. # 'class': 'logging.StreamHandler',
  79. # },
  80. # },
  81. # 'loggers': {
  82. # # Comment or Uncomment these to turn on/off logging output
  83. # 'django.db.backends': {
  84. # 'handlers': ['null'],
  85. # 'propagate': False,
  86. # },
  87. # 'django_openstack': {
  88. # 'handlers': ['null'],
  89. # 'propagate': False,
  90. # },
  91. # }
  92. #}
  93.  
  94. # How much ram on each compute host?
  95. COMPUTE_HOST_RAM_GB = 16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement