components/openstack/horizon/files/local_settings.py
branchs11u3-sru
changeset 6035 c9748fcc32de
parent 4680 171e78a08a19
child 6323 9beb4b346649
equal deleted inserted replaced
6016:a477397bba8b 6035:c9748fcc32de
     4 
     4 
     5 from openstack_dashboard import exceptions
     5 from openstack_dashboard import exceptions
     6 
     6 
     7 DEBUG = False
     7 DEBUG = False
     8 TEMPLATE_DEBUG = DEBUG
     8 TEMPLATE_DEBUG = DEBUG
       
     9 
       
    10 
       
    11 # WEBROOT is the location relative to Webserver root
       
    12 # should end with a slash.
       
    13 WEBROOT = '/horizon/'
       
    14 STATIC_ROOT = '/usr/lib/python2.7/vendor-packages/openstack_dashboard/static'
       
    15 # LOGIN_URL = WEBROOT + 'auth/login/'
       
    16 # LOGOUT_URL = WEBROOT + 'auth/logout/'
       
    17 #
       
    18 # LOGIN_REDIRECT_URL can be used as an alternative for
       
    19 # HORIZON_CONFIG.user_home, if user_home is not set.
       
    20 # Do not set it to '/home/', as this will cause circular redirect loop
       
    21 # LOGIN_REDIRECT_URL = WEBROOT
       
    22 
     9 
    23 
    10 # Required for Django 1.5.
    24 # Required for Django 1.5.
    11 # If horizon is running in production (DEBUG is False), set this
    25 # If horizon is running in production (DEBUG is False), set this
    12 # with the list of host/domain names that the application can serve.
    26 # with the list of host/domain names that the application can serve.
    13 # For more information see:
    27 # For more information see:
    24 # If Horizon is being served through SSL, then uncomment the following two
    38 # If Horizon is being served through SSL, then uncomment the following two
    25 # settings to better secure the cookies from security exploits
    39 # settings to better secure the cookies from security exploits
    26 CSRF_COOKIE_SECURE = True
    40 CSRF_COOKIE_SECURE = True
    27 SESSION_COOKIE_SECURE = True
    41 SESSION_COOKIE_SECURE = True
    28 
    42 
    29 # Default configuration uses /horizon as the application root.  Configure auth
       
    30 # redirects here accordingly.
       
    31 LOGIN_URL = '/horizon/auth/login/'
       
    32 LOGOUT_URL = '/horizon/auth/logout/'
       
    33 LOGIN_REDIRECT_URL = '/horizon'
       
    34 
       
    35 STATIC_ROOT = '/usr/lib/python2.7/vendor-packages/openstack_dashboard/static'
       
    36 
       
    37 # Enable Solaris theme
    43 # Enable Solaris theme
    38 TEMPLATE_DIRS = (
    44 TEMPLATE_DIRS = (
    39     '/usr/lib/python2.7/vendor-packages/openstack_dashboard/templates/solaris',
    45     '/usr/lib/python2.7/vendor-packages/openstack_dashboard/templates/solaris',
    40 )
    46 )
    41 
    47 
    42 # Application files are compressed during packaging
    48 # Application files are compressed during packaging
    43 COMPRESS_OFFLINE = True
    49 COMPRESS_OFFLINE = True
    44 
    50 
    45 # Overrides for OpenStack API versions. Use this setting to force the
    51 # Overrides for OpenStack API versions. Use this setting to force the
    46 # OpenStack dashboard to use a specific API version for a given service API.
    52 # OpenStack dashboard to use a specific API version for a given service API.
       
    53 # Versions specified here should be integers or floats, not strings.
    47 # NOTE: The version should be formatted as it appears in the URL for the
    54 # NOTE: The version should be formatted as it appears in the URL for the
    48 # service API. For example, The identity service APIs have inconsistent
    55 # service API. For example, The identity service APIs have inconsistent
    49 # use of the decimal point, so valid options would be "2.0" or "3".
    56 # use of the decimal point, so valid options would be 2.0 or 3.
    50 # OPENSTACK_API_VERSIONS = {
    57 #OPENSTACK_API_VERSIONS = {
    51 #     "data_processing": 1.1,
    58 #    "data-processing": 1.1,
    52 #     "identity": 3,
    59 #    "identity": 3,
    53 #     "volume": 2
    60 #    "volume": 2,
    54 # }
    61 #}
    55 
    62 
    56 # Set this to True if running on multi-domain model. When this is enabled, it
    63 # Set this to True if running on multi-domain model. When this is enabled, it
    57 # will require user to enter the Domain name in addition to username for login.
    64 # will require user to enter the Domain name in addition to username for login.
    58 # OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False
    65 #OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False
    59 
    66 
    60 # Overrides the default domain used when running on single-domain model
    67 # Overrides the default domain used when running on single-domain model
    61 # with Keystone V3. All entities will be created in the default domain.
    68 # with Keystone V3. All entities will be created in the default domain.
    62 # OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'
    69 #OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'
    63 
    70 
    64 # Set Console type:
    71 # Set Console type:
    65 # valid options would be "AUTO"(default), "VNC", "SPICE", "RDP" or None
    72 # valid options would be "AUTO"(default), "VNC", "SPICE", "RDP", "SERIAL" or
    66 # Set to None explicitly if you want to deactivate the console.
    73 # None. Set to None explicitly if you want to deactivate the console.
    67 # CONSOLE_TYPE = "AUTO"
    74 #CONSOLE_TYPE = "AUTO"
    68 
    75 
    69 # Default OpenStack Dashboard configuration.
    76 # Default OpenStack Dashboard configuration.
    70 HORIZON_CONFIG = {
    77 HORIZON_CONFIG = {
    71     'dashboards': ('project', 'admin', 'settings',),
       
    72     'default_dashboard': 'project',
       
    73     'user_home': 'openstack_dashboard.views.get_user_home',
    78     'user_home': 'openstack_dashboard.views.get_user_home',
    74     'ajax_queue_limit': 10,
    79     'ajax_queue_limit': 10,
    75     'auto_fade_alerts': {
    80     'auto_fade_alerts': {
    76         'delay': 3000,
    81         'delay': 3000,
    77         'fade_duration': 1500,
    82         'fade_duration': 1500,
    79     },
    84     },
    80     'help_url': "http://docs.openstack.org",
    85     'help_url': "http://docs.openstack.org",
    81     'exceptions': {'recoverable': exceptions.RECOVERABLE,
    86     'exceptions': {'recoverable': exceptions.RECOVERABLE,
    82                    'not_found': exceptions.NOT_FOUND,
    87                    'not_found': exceptions.NOT_FOUND,
    83                    'unauthorized': exceptions.UNAUTHORIZED},
    88                    'unauthorized': exceptions.UNAUTHORIZED},
    84     'angular_modules': [],
       
    85     'js_files': [],
       
    86     'customization_module': 'openstack_dashboard.overrides',
    89     'customization_module': 'openstack_dashboard.overrides',
    87 }
    90 }
    88 
    91 
    89 # Specify a regular expression to validate user passwords.
    92 # Specify a regular expression to validate user passwords.
    90 # HORIZON_CONFIG["password_validator"] = {
    93 #HORIZON_CONFIG["password_validator"] = {
    91 #     "regex": '.*',
    94 #    "regex": '.*',
    92 #     "help_text": _("Your password does not meet the requirements.")
    95 #    "help_text": _("Your password does not meet the requirements."),
    93 # }
    96 #}
    94 
    97 
    95 # Disable simplified floating IP address management for deployments with
    98 # Disable simplified floating IP address management for deployments with
    96 # multiple floating IP pools or complex network requirements.
    99 # multiple floating IP pools or complex network requirements.
    97 # HORIZON_CONFIG["simple_ip_management"] = False
   100 #HORIZON_CONFIG["simple_ip_management"] = False
    98 
   101 
    99 # Turn off browser autocompletion for forms including the login form and
   102 # Turn off browser autocompletion for forms including the login form and
   100 # the database creation workflow if so desired.
   103 # the database creation workflow if so desired.
   101 # HORIZON_CONFIG["password_autocomplete"] = "off"
   104 #HORIZON_CONFIG["password_autocomplete"] = "off"
       
   105 
       
   106 # Setting this to True will disable the reveal button for password fields,
       
   107 # including on the login form.
       
   108 #HORIZON_CONFIG["disable_password_reveal"] = False
   102 
   109 
   103 LOCAL_PATH = '/var/lib/openstack_dashboard'
   110 LOCAL_PATH = '/var/lib/openstack_dashboard'
   104 
   111 
   105 # Set custom secret key:
   112 # Set custom secret key:
   106 # You can either set it to a specific value or you can let horizon generate a
   113 # You can either set it to a specific value or you can let horizon generate a
   116     os.path.join(LOCAL_PATH, '.secret_key_store'))
   123     os.path.join(LOCAL_PATH, '.secret_key_store'))
   117 
   124 
   118 # We recommend you use memcached for development; otherwise after every reload
   125 # We recommend you use memcached for development; otherwise after every reload
   119 # of the django development server, you will have to login again. To use
   126 # of the django development server, you will have to login again. To use
   120 # memcached set CACHES to something like
   127 # memcached set CACHES to something like
   121 # CACHES = {
   128 #CACHES = {
   122 #    'default': {
   129 #    'default': {
   123 #        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
   130 #        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
   124 #        'LOCATION': '127.0.0.1:11211',
   131 #        'LOCATION': '127.0.0.1:11211',
   125 #    }
   132 #    }
   126 #}
   133 #}
   127 
   134 
   128 CACHES = {
   135 CACHES = {
   129     'default': {
   136     'default': {
   130         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
   137         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
   131     }
   138     }
   132 }
   139 }
   133 
   140 
   134 # Send email to the console by default
   141 # Send email to the console by default
   135 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
   142 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
   136 # Or send them to /dev/null
   143 # Or send them to /dev/null
   137 #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
   144 #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
   138 
   145 
   139 # Configure these for your outgoing email host
   146 # Configure these for your outgoing email host
   140 # EMAIL_HOST = 'smtp.my-company.com'
   147 #EMAIL_HOST = 'smtp.my-company.com'
   141 # EMAIL_PORT = 25
   148 #EMAIL_PORT = 25
   142 # EMAIL_HOST_USER = 'djangomail'
   149 #EMAIL_HOST_USER = 'djangomail'
   143 # EMAIL_HOST_PASSWORD = 'top-secret!'
   150 #EMAIL_HOST_PASSWORD = 'top-secret!'
   144 
   151 
   145 # For multiple regions uncomment this configuration, and add (endpoint, title).
   152 # For multiple regions uncomment this configuration, and add (endpoint, title).
   146 # AVAILABLE_REGIONS = [
   153 #AVAILABLE_REGIONS = [
   147 #     ('http://cluster1.example.com:5000/v2.0', 'cluster1'),
   154 #    ('http://cluster1.example.com:5000/v2.0', 'cluster1'),
   148 #     ('http://cluster2.example.com:5000/v2.0', 'cluster2'),
   155 #    ('http://cluster2.example.com:5000/v2.0', 'cluster2'),
   149 # ]
   156 #]
   150 
   157 
   151 OPENSTACK_HOST = "127.0.0.1"
   158 OPENSTACK_HOST = "127.0.0.1"
   152 OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
   159 OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
   153 OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
   160 OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
   154 
   161 
       
   162 # Enables keystone web single-sign-on if set to True.
       
   163 #WEBSSO_ENABLED = False
       
   164 
       
   165 # Determines which authentication choice to show as default.
       
   166 #WEBSSO_INITIAL_CHOICE = "credentials"
       
   167 
       
   168 # The list of authentication mechanisms
       
   169 # which include keystone federation protocols.
       
   170 # Current supported protocol IDs are 'saml2' and 'oidc'
       
   171 # which represent SAML 2.0, OpenID Connect respectively.
       
   172 # Do not remove the mandatory credentials mechanism.
       
   173 #WEBSSO_CHOICES = (
       
   174 #    ("credentials", _("Keystone Credentials")),
       
   175 #    ("oidc", _("OpenID Connect")),
       
   176 #    ("saml2", _("Security Assertion Markup Language")))
       
   177 
   155 # Disable SSL certificate checks (useful for self-signed certificates):
   178 # Disable SSL certificate checks (useful for self-signed certificates):
   156 # OPENSTACK_SSL_NO_VERIFY = True
   179 #OPENSTACK_SSL_NO_VERIFY = True
   157 
   180 
   158 # The CA certificate to use to verify SSL connections
   181 # The CA certificate to use to verify SSL connections
   159 # OPENSTACK_SSL_CACERT = '/path/to/cacert.pem'
   182 #OPENSTACK_SSL_CACERT = '/path/to/cacert.pem'
   160 
   183 
   161 # The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the
   184 # The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the
   162 # capabilities of the auth backend for Keystone.
   185 # capabilities of the auth backend for Keystone.
   163 # If Keystone has been configured to use LDAP as the auth backend then set
   186 # If Keystone has been configured to use LDAP as the auth backend then set
   164 # can_edit_user to False and name to 'ldap'.
   187 # can_edit_user to False and name to 'ldap'.
   168     'name': 'native',
   191     'name': 'native',
   169     'can_edit_user': True,
   192     'can_edit_user': True,
   170     'can_edit_group': True,
   193     'can_edit_group': True,
   171     'can_edit_project': True,
   194     'can_edit_project': True,
   172     'can_edit_domain': True,
   195     'can_edit_domain': True,
   173     'can_edit_role': True
   196     'can_edit_role': True,
   174 }
   197 }
   175 
   198 
   176 #Setting this to True, will add a new "Retrieve Password" action on instance,
   199 # Setting this to True, will add a new "Retrieve Password" action on instance,
   177 #allowing Admin session password retrieval/decryption.
   200 # allowing Admin session password retrieval/decryption.
   178 #OPENSTACK_ENABLE_PASSWORD_RETRIEVE = False
   201 OPENSTACK_ENABLE_PASSWORD_RETRIEVE = True
       
   202 
       
   203 # The Launch Instance user experience has been significantly enhanced.
       
   204 # You can choose whether to enable the new launch instance experience,
       
   205 # the legacy experience, or both. The legacy experience will be removed
       
   206 # in a future release, but is available as a temporary backup setting to ensure
       
   207 # compatibility with existing deployments. Further development will not be
       
   208 # done on the legacy experience. Please report any problems with the new
       
   209 # experience via the Launchpad tracking system.
       
   210 #
       
   211 # Toggle LAUNCH_INSTANCE_LEGACY_ENABLED and LAUNCH_INSTANCE_NG_ENABLED to
       
   212 # determine the experience to enable.  Set them both to true to enable
       
   213 # both.
       
   214 #LAUNCH_INSTANCE_LEGACY_ENABLED = True
       
   215 #LAUNCH_INSTANCE_NG_ENABLED = False
   179 
   216 
   180 # The Xen Hypervisor has the ability to set the mount point for volumes
   217 # The Xen Hypervisor has the ability to set the mount point for volumes
   181 # attached to instances (other Hypervisors currently do not). Setting
   218 # attached to instances (other Hypervisors currently do not). Setting
   182 # can_set_mount_point to True will add the option to set the mount point
   219 # can_set_mount_point to True will add the option to set the mount point
   183 # from the UI.
   220 # from the UI.
   184 OPENSTACK_HYPERVISOR_FEATURES = {
   221 OPENSTACK_HYPERVISOR_FEATURES = {
   185     'can_set_mount_point': False,
   222     'can_set_mount_point': False,
   186     'can_set_password': False,
   223     'can_set_password': True,
   187 }
   224 }
   188 
   225 
   189 # The OPENSTACK_CINDER_FEATURES settings can be used to enable optional
   226 # The OPENSTACK_CINDER_FEATURES settings can be used to enable optional
   190 # services provided by cinder that is not exposed by its extension API.
   227 # services provided by cinder that is not exposed by its extension API.
   191 OPENSTACK_CINDER_FEATURES = {
   228 OPENSTACK_CINDER_FEATURES = {
   192     'enable_backup': False,
   229     'enable_backup': True,
   193 }
   230 }
   194 
   231 
   195 # The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional
   232 # The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional
   196 # services provided by neutron. Options currently available are load
   233 # services provided by neutron. Options currently available are load
   197 # balancer service, security groups, quotas, VPN service.
   234 # balancer service, security groups, quotas, VPN service.
   201     'enable_ipv6': True,
   238     'enable_ipv6': True,
   202     'enable_distributed_router': False,
   239     'enable_distributed_router': False,
   203     'enable_ha_router': False,
   240     'enable_ha_router': False,
   204     'enable_lb': False,
   241     'enable_lb': False,
   205     'enable_firewall': False,
   242     'enable_firewall': False,
   206     'enable_vpn': False,
   243     'enable_vpn': True,
       
   244 
   207     # The profile_support option is used to detect if an external router can be
   245     # The profile_support option is used to detect if an external router can be
   208     # configured via the dashboard. When using specific plugins the
   246     # configured via the dashboard. When using specific plugins the
   209     # profile_support can be turned on if needed.
   247     # profile_support can be turned on if needed.
   210     'profile_support': None,
   248     'profile_support': None,
   211     #'profile_support': 'cisco',
   249     #'profile_support': 'cisco',
       
   250 
   212     # Set which provider network types are supported. Only the network types
   251     # Set which provider network types are supported. Only the network types
   213     # in this list will be available to choose from when creating a network.
   252     # in this list will be available to choose from when creating a network.
   214     # Network types include local, flat, vlan, gre, and vxlan.
   253     # Network types include local, flat, vlan, gre, and vxlan.
   215     'supported_provider_types': ['*'],
   254     'supported_provider_types': ['*'],
       
   255 
       
   256     # Set which VNIC types are supported for port binding. Only the VNIC
       
   257     # types in this list will be available to choose from when creating a
       
   258     # port.
       
   259     # VNIC types include 'normal', 'macvtap' and 'direct'.
       
   260     'supported_vnic_types': ['*']
   216 }
   261 }
   217 
   262 
   218 # The OPENSTACK_IMAGE_BACKEND settings can be used to customize features
   263 # The OPENSTACK_IMAGE_BACKEND settings can be used to customize features
   219 # in the OpenStack Dashboard related to the Image service, such as the list
   264 # in the OpenStack Dashboard related to the Image service, such as the list
   220 # of supported image formats.
   265 # of supported image formats.
   221 # OPENSTACK_IMAGE_BACKEND = {
   266 #OPENSTACK_IMAGE_BACKEND = {
   222 #     'image_formats': [
   267 #    'image_formats': [
   223 #         ('', _('Select format')),
   268 #        ('', _('Select format')),
   224 #         ('aki', _('AKI - Amazon Kernel Image')),
   269 #        ('aki', _('AKI - Amazon Kernel Image')),
   225 #         ('ami', _('AMI - Amazon Machine Image')),
   270 #        ('ami', _('AMI - Amazon Machine Image')),
   226 #         ('ari', _('ARI - Amazon Ramdisk Image')),
   271 #        ('ari', _('ARI - Amazon Ramdisk Image')),
   227 #         ('iso', _('ISO - Optical Disk Image')),
   272 #        ('iso', _('ISO - Optical Disk Image')),
   228 #         ('qcow2', _('QCOW2 - QEMU Emulator')),
   273 #        ('ova', _('OVA - Open Virtual Appliance')),
   229 #         ('raw', _('Raw')),
   274 #        ('qcow2', _('QCOW2 - QEMU Emulator')),
   230 #         ('vdi', _('VDI')),
   275 #        ('raw', _('Raw')),
   231 #         ('vhd', _('VHD')),
   276 #        ('vdi', _('VDI - Virtual Disk Image')),
   232 #         ('vmdk', _('VMDK'))
   277 #        ('vhd', ('VHD - Virtual Hard Disk')),
   233 #     ]
   278 #        ('vmdk', _('VMDK - Virtual Machine Disk')),
   234 # }
   279 #    ]
       
   280 #}
   235 
   281 
   236 # The IMAGE_CUSTOM_PROPERTY_TITLES settings is used to customize the titles for
   282 # The IMAGE_CUSTOM_PROPERTY_TITLES settings is used to customize the titles for
   237 # image custom property attributes that appear on image detail pages.
   283 # image custom property attributes that appear on image detail pages.
   238 IMAGE_CUSTOM_PROPERTY_TITLES = {
   284 IMAGE_CUSTOM_PROPERTY_TITLES = {
   239     "architecture": _("Architecture"),
   285     "architecture": _("Architecture"),
   240     "kernel_id": _("Kernel ID"),
   286     "kernel_id": _("Kernel ID"),
   241     "ramdisk_id": _("Ramdisk ID"),
   287     "ramdisk_id": _("Ramdisk ID"),
   242     "image_state": _("Euca2ools state"),
   288     "image_state": _("Euca2ools state"),
   243     "project_id": _("Project ID"),
   289     "project_id": _("Project ID"),
   244     "image_type": _("Image Type")
   290     "image_type": _("Image Type"),
   245 }
   291 }
   246 
   292 
   247 # The IMAGE_RESERVED_CUSTOM_PROPERTIES setting is used to specify which image
   293 # The IMAGE_RESERVED_CUSTOM_PROPERTIES setting is used to specify which image
   248 # custom properties should not be displayed in the Image Custom Properties
   294 # custom properties should not be displayed in the Image Custom Properties
   249 # table.
   295 # table.
   265 # on a single page before providing a paging element (a "more" link)
   311 # on a single page before providing a paging element (a "more" link)
   266 # to paginate results.
   312 # to paginate results.
   267 API_RESULT_LIMIT = 1000
   313 API_RESULT_LIMIT = 1000
   268 API_RESULT_PAGE_SIZE = 20
   314 API_RESULT_PAGE_SIZE = 20
   269 
   315 
       
   316 # The size of chunk in bytes for downloading objects from Swift
       
   317 SWIFT_FILE_TRANSFER_CHUNK_SIZE = 512 * 1024
       
   318 
       
   319 # Specify a maximum number of items to display in a dropdown.
       
   320 DROPDOWN_MAX_ITEMS = 30
       
   321 
   270 # The timezone of the server. This should correspond with the timezone
   322 # The timezone of the server. This should correspond with the timezone
   271 # of your entire OpenStack installation, and hopefully be in UTC.
   323 # of your entire OpenStack installation, and hopefully be in UTC.
   272 TIME_ZONE = "UTC"
   324 TIME_ZONE = "UTC"
   273 
   325 
   274 # When launching an instance, the menu of available flavors is
   326 # When launching an instance, the menu of available flavors is
   275 # sorted by RAM usage, ascending. If you would like a different sort order,
   327 # sorted by RAM usage, ascending. If you would like a different sort order,
   276 # you can provide another flavor attribute as sorting key. Alternatively, you
   328 # you can provide another flavor attribute as sorting key. Alternatively, you
   277 # can provide a custom callback method to use for sorting. You can also provide
   329 # can provide a custom callback method to use for sorting. You can also provide
   278 # a flag for reverse sort. For more info, see
   330 # a flag for reverse sort. For more info, see
   279 # http://docs.python.org/2/library/functions.html#sorted
   331 # http://docs.python.org/2/library/functions.html#sorted
   280 # CREATE_INSTANCE_FLAVOR_SORT = {
   332 #CREATE_INSTANCE_FLAVOR_SORT = {
   281 #     'key': 'name',
   333 #    'key': 'name',
   282 #      # or
   334 #     # or
   283 #     'key': my_awesome_callback_method,
   335 #    'key': my_awesome_callback_method,
   284 #     'reverse': False,
   336 #    'reverse': False,
   285 # }
   337 #}
       
   338 
       
   339 # Set this to True to display an 'Admin Password' field on the Change Password
       
   340 # form to verify that it is indeed the admin logged-in who wants to change
       
   341 # the password.
       
   342 # ENFORCE_PASSWORD_CHECK = False
       
   343 
       
   344 # Modules that provide /auth routes that can be used to handle different types
       
   345 # of user authentication. Add auth plugins that require extra route handling to
       
   346 # this list.
       
   347 #AUTHENTICATION_URLS = [
       
   348 #    'openstack_auth.urls',
       
   349 #]
   286 
   350 
   287 # The Horizon Policy Enforcement engine uses these values to load per service
   351 # The Horizon Policy Enforcement engine uses these values to load per service
   288 # policy rule files. The content of these files should match the files the
   352 # policy rule files. The content of these files should match the files the
   289 # OpenStack services are using to determine role based access control in the
   353 # OpenStack services are using to determine role based access control in the
   290 # target installation.
   354 # target installation.
   297 #    'compute': 'nova_policy.json',
   361 #    'compute': 'nova_policy.json',
   298 #    'volume': 'cinder_policy.json',
   362 #    'volume': 'cinder_policy.json',
   299 #    'image': 'glance_policy.json',
   363 #    'image': 'glance_policy.json',
   300 #    'orchestration': 'heat_policy.json',
   364 #    'orchestration': 'heat_policy.json',
   301 #    'network': 'neutron_policy.json',
   365 #    'network': 'neutron_policy.json',
       
   366 #    'telemetry': 'ceilometer_policy.json',
   302 #}
   367 #}
   303 
   368 
   304 # Trove user and database extension support. By default support for
   369 # Trove user and database extension support. By default support for
   305 # creating users and databases on database instances is turned on.
   370 # creating users and databases on database instances is turned on.
   306 # To disable these extensions set the permission here to something
   371 # To disable these extensions set the permission here to something
   307 # unusable such as ["!"].
   372 # unusable such as ["!"].
   308 # TROVE_ADD_USER_PERMS = []
   373 # TROVE_ADD_USER_PERMS = []
   309 # TROVE_ADD_DATABASE_PERMS = []
   374 # TROVE_ADD_DATABASE_PERMS = []
       
   375 
       
   376 # Change this patch to the appropriate static directory containing
       
   377 # two files: _variables.scss and _styles.scss
       
   378 #CUSTOM_THEME_PATH = 'static/themes/default'
   310 
   379 
   311 LOGGING = {
   380 LOGGING = {
   312     'version': 1,
   381     'version': 1,
   313     # When set to True this will disable all logging except
   382     # When set to True this will disable all logging except
   314     # for loggers specified in this configuration dictionary. Note that
   383     # for loggers specified in this configuration dictionary. Note that
   315     # if nothing is specified here and disable_existing_loggers is True,
   384     # if nothing is specified here and disable_existing_loggers is True,
   316     # django.db.backends will still log unless it is disabled explicitly.
   385     # django.db.backends will still log unless it is disabled explicitly.
   317     'disable_existing_loggers': False,
   386     'disable_existing_loggers': False,
       
   387     'formatters': {
       
   388         'verbose': {
       
   389             'format': '%(asctime)s %(process)d %(levelname)s %(name)s '
       
   390                       '%(message)s'
       
   391         },
       
   392     },
   318     'handlers': {
   393     'handlers': {
   319         'null': {
   394         'null': {
   320             'level': 'DEBUG',
   395             'level': 'DEBUG',
   321             'class': 'django.utils.log.NullHandler',
   396             'class': 'django.utils.log.NullHandler',
   322         },
   397         },
   323         'console': {
   398         'console': {
   324             # Set the level to "DEBUG" for verbose output logging.
   399             # Set the level to "DEBUG" for verbose output logging.
   325             'level': 'INFO',
   400             'level': 'INFO',
   326             'class': 'logging.StreamHandler',
   401             'class': 'logging.StreamHandler',
       
   402         },
       
   403         'file': {
       
   404             'level': 'INFO',
       
   405             'class': 'logging.FileHandler',
       
   406             'filename': '/var/log/openstack_dashboard/horizon.log',
       
   407             'formatter': 'verbose',
   327         },
   408         },
   328     },
   409     },
   329     'loggers': {
   410     'loggers': {
   330         # Logging from django.db.backends is VERY verbose, send to null
   411         # Logging from django.db.backends is VERY verbose, send to null
   331         # by default.
   412         # by default.
   543 # automatic floating IP allocation is in effect.  If it is not
   624 # automatic floating IP allocation is in effect.  If it is not
   544 # in effect, the user will be prompted to choose a floating IP
   625 # in effect, the user will be prompted to choose a floating IP
   545 # pool for use in their cluster.  False by default.  You would want
   626 # pool for use in their cluster.  False by default.  You would want
   546 # to set this to True if you were running Nova Networking with
   627 # to set this to True if you were running Nova Networking with
   547 # auto_assign_floating_ip = True.
   628 # auto_assign_floating_ip = True.
   548 # SAHARA_AUTO_IP_ALLOCATION_ENABLED = False
   629 #SAHARA_AUTO_IP_ALLOCATION_ENABLED = False
   549 
   630 
   550 # The hash algorithm to use for authentication tokens. This must
   631 # The hash algorithm to use for authentication tokens. This must
   551 # match the hash algorithm that the identity server and the
   632 # match the hash algorithm that the identity server and the
   552 # auth_token middleware are using. Allowed values are the
   633 # auth_token middleware are using. Allowed values are the
   553 # algorithms supported by Python's hashlib library.
   634 # algorithms supported by Python's hashlib library.
   554 # OPENSTACK_TOKEN_HASH_ALGORITHM = 'md5'
   635 #OPENSTACK_TOKEN_HASH_ALGORITHM = 'md5'
   555 
   636 
       
   637 # AngularJS requires some settings to be made available to
       
   638 # the client side. Some settings are required by in-tree / built-in horizon
       
   639 # features. These settings must be added to REST_API_REQUIRED_SETTINGS in the
       
   640 # form of ['SETTING_1','SETTING_2'], etc.
       
   641 #
       
   642 # You may remove settings from this list for security purposes, but do so at
       
   643 # the risk of breaking a built-in horizon feature. These settings are required
       
   644 # for horizon to function properly. Only remove them if you know what you
       
   645 # are doing. These settings may in the future be moved to be defined within
       
   646 # the enabled panel configuration.
       
   647 # You should not add settings to this list for out of tree extensions.
       
   648 # See: https://wiki.openstack.org/wiki/Horizon/RESTAPI
       
   649 REST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES']
       
   650 
       
   651 # Additional settings can be made available to the client side for
       
   652 # extensibility by specifying them in REST_API_ADDITIONAL_SETTINGS
       
   653 # !! Please use extreme caution as the settings are transferred via HTTP/S
       
   654 # and are not encrypted on the browser. This is an experimental API and
       
   655 # may be deprecated in the future without notice.
       
   656 #REST_API_ADDITIONAL_SETTINGS = []