local_settings.py revision 4668
2892N/A# If horizon is running in production (DEBUG is False), set this 2892N/A#ALLOWED_HOSTS = ['horizon.example.com', ] 2521N/A# For Django 1.4+ pass this header from the proxy after terminating the SSL, 2521N/A# and don't forget to strip it from the client's request. 2521N/A# If Horizon is being served through SSL, then uncomment the following two 2521N/A# settings to better secure the cookies from security exploits 2521N/A# Default configuration uses /horizon as the application root. Configure auth 2521N/A# redirects here accordingly. 3998N/A# Application files are compressed during packaging 2892N/A# Overrides for OpenStack API versions. Use this setting to force the 3998N/A# OpenStack dashboard to use a specific API version for a given service API. 2892N/A# NOTE: The version should be formatted as it appears in the URL for the 2892N/A# service API. For example, The identity service APIs have inconsistent 2892N/A# use of the decimal point, so valid options would be "2.0" or "3". 2892N/A# OPENSTACK_API_VERSIONS = { 2892N/A# Set this to True if running on multi-domain model. When this is enabled, it 2892N/A# will require user to enter the Domain name in addition to username for login. 2892N/A# OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False 2892N/A# Overrides the default domain used when running on single-domain model 2892N/A# with Keystone V3. All entities will be created in the default domain. 2892N/A# OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default' 3998N/A# valid options would be "AUTO"(default), "VNC", "SPICE", "RDP" or None 3998N/A# Set to None explicitly if you want to deactivate the console. 2521N/A# Default OpenStack Dashboard configuration. 2521N/A 'dashboards': (
'project',
'admin',
'settings',),
2521N/A 'default_dashboard':
'project',
2521N/A 'user_home':
'openstack_dashboard.views.get_user_home',
2521N/A 'types': [
'alert-success',
'alert-info']
2663N/A 'customization_module':
'openstack_dashboard.overrides',
2521N/A# Specify a regular expression to validate user passwords. 2521N/A# HORIZON_CONFIG["password_validator"] = { 2521N/A# "help_text": _("Your password does not meet the requirements.") 2521N/A# Disable simplified floating IP address management for deployments with 2521N/A# multiple floating IP pools or complex network requirements. 2521N/A# HORIZON_CONFIG["simple_ip_management"] = False 3998N/A# Turn off browser autocompletion for forms including the login form and 3998N/A# the database creation workflow if so desired. 2521N/A# HORIZON_CONFIG["password_autocomplete"] = "off" 3998N/A# You can either set it to a specific value or you can let horizon generate a 2521N/A# default secret key that is unique on this machine, e.i. regardless of the 2521N/A# amount of Python WSGI workers (if used behind Apache+mod_wsgi): However, there 2521N/A# may be situations where you would want to set this explicitly, e.g. when 2521N/A# multiple dashboard instances are distributed on different machines (usually 2521N/A# behind a load-balancer). Either you have to make sure that a session gets all 2521N/A# requests routed to the same dashboard instance or you set the same SECRET_KEY 2521N/A# We recommend you use memcached for development; otherwise after every reload 2521N/A# of the django development server, you will have to login again. To use 2521N/A# memcached set CACHES to something like 3998N/A# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 3998N/A# 'LOCATION': '127.0.0.1:11211', 3998N/A 'BACKEND':
'django.core.cache.backends.locmem.LocMemCache' 2521N/A# Send email to the console by default 2521N/A#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend' 2521N/A# Configure these for your outgoing email host 2521N/A# EMAIL_HOST = 'smtp.my-company.com' 2521N/A# EMAIL_HOST_USER = 'djangomail' 2521N/A# EMAIL_HOST_PASSWORD = 'top-secret!' 2521N/A# For multiple regions uncomment this configuration, and add (endpoint, title). 2521N/A# Disable SSL certificate checks (useful for self-signed certificates): 2521N/A# OPENSTACK_SSL_NO_VERIFY = True 2892N/A# The CA certificate to use to verify SSL connections 2521N/A# The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the 2521N/A# capabilities of the auth backend for Keystone. 2521N/A# If Keystone has been configured to use LDAP as the auth backend then set 2521N/A# can_edit_user to False and name to 'ldap'. 2521N/A# TODO(tres): Remove these once Keystone has an API to identify auth backend. 3998N/A#Setting this to True, will add a new "Retrieve Password" action on instance, 3998N/A#OPENSTACK_ENABLE_PASSWORD_RETRIEVE = False 2925N/A# The Xen Hypervisor has the ability to set the mount point for volumes 2925N/A# attached to instances (other Hypervisors currently do not). Setting 2925N/A# can_set_mount_point to True will add the option to set the mount point 3998N/A# The OPENSTACK_CINDER_FEATURES settings can be used to enable optional 3998N/A# services provided by cinder that is not exposed by its extension API. 2892N/A# The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional 3998N/A# services provided by neutron. Options currently available are load 2892N/A# balancer service, security groups, quotas, VPN service. 2892N/A # The profile_support option is used to detect if an external router can be 2892N/A # configured via the dashboard. When using specific plugins the 2892N/A # profile_support can be turned on if needed. 2892N/A #'profile_support': 'cisco', 3998N/A # Set which provider network types are supported. Only the network types 3998N/A # in this list will be available to choose from when creating a network. 3998N/A # Network types include local, flat, vlan, gre, and vxlan. 3998N/A 'supported_provider_types': [
'*'],
2892N/A# The OPENSTACK_IMAGE_BACKEND settings can be used to customize features 2892N/A# in the OpenStack Dashboard related to the Image service, such as the list 2892N/A# of supported image formats. 2892N/A# OPENSTACK_IMAGE_BACKEND = { 2892N/A# ('aki', _('AKI - Amazon Kernel Image')), 2892N/A# ('ami', _('AMI - Amazon Machine Image')), 2892N/A# ('ari', _('ARI - Amazon Ramdisk Image')), 2892N/A# ('iso', _('ISO - Optical Disk Image')), 2892N/A# ('qcow2', _('QCOW2 - QEMU Emulator')), 3998N/A# The IMAGE_CUSTOM_PROPERTY_TITLES settings is used to customize the titles for 3998N/A# image custom property attributes that appear on image detail pages. 3998N/A "architecture": _(
"Architecture"),
3998N/A "kernel_id": _(
"Kernel ID"),
3998N/A "ramdisk_id": _(
"Ramdisk ID"),
3998N/A "image_state": _(
"Euca2ools state"),
3998N/A "project_id": _(
"Project ID"),
3998N/A "image_type": _(
"Image Type")
3998N/A# The IMAGE_RESERVED_CUSTOM_PROPERTIES setting is used to specify which image 3998N/A# custom properties should not be displayed in the Image Custom Properties 2521N/A# OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints 2521N/A# in the Keystone service catalog. Use this setting when Horizon is running 2892N/A# external to the OpenStack environment. The default is 'publicURL'. 2521N/A#OPENSTACK_ENDPOINT_TYPE = "publicURL" 2892N/A# SECONDARY_ENDPOINT_TYPE specifies the fallback endpoint type to use in the 2892N/A# case that OPENSTACK_ENDPOINT_TYPE is not present in the endpoints 2892N/A# in the Keystone service catalog. Use this setting when Horizon is running 2892N/A# external to the OpenStack environment. The default is None. This 2892N/A# value should differ from OPENSTACK_ENDPOINT_TYPE if used. 2892N/A#SECONDARY_ENDPOINT_TYPE = "publicURL" 2521N/A# on a single page before providing a paging element (a "more" link) 2521N/A# The timezone of the server. This should correspond with the timezone 2521N/A# of your entire OpenStack installation, and hopefully be in UTC. 2892N/A# When launching an instance, the menu of available flavors is 3998N/A# sorted by RAM usage, ascending. If you would like a different sort order, 3998N/A# you can provide another flavor attribute as sorting key. Alternatively, you 3998N/A# can provide a custom callback method to use for sorting. You can also provide 3998N/A# a flag for reverse sort. For more info, see 2892N/A# CREATE_INSTANCE_FLAVOR_SORT = { 2892N/A# 'key': my_awesome_callback_method, 2892N/A# The Horizon Policy Enforcement engine uses these values to load per service 2892N/A# policy rule files. The content of these files should match the files the 2892N/A# OpenStack services are using to determine role based access control in the 2892N/A# Path to directory containing policy.json files 2892N/A#POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf") 2892N/A# Map of local copy of service policy files 2892N/A# 'identity': 'keystone_policy.json', 3998N/A# 'compute': 'nova_policy.json', 3998N/A# 'volume': 'cinder_policy.json', 3998N/A# 'image': 'glance_policy.json', 3998N/A# 'orchestration': 'heat_policy.json', 3998N/A# 'network': 'neutron_policy.json', 2892N/A# Trove user and database extension support. By default support for 2892N/A# creating users and databases on database instances is turned on. 2892N/A# To disable these extensions set the permission here to something 2892N/A# TROVE_ADD_DATABASE_PERMS = [] 2521N/A # When set to True this will disable all logging except 2521N/A # for loggers specified in this configuration dictionary. Note that 2521N/A # if nothing is specified here and disable_existing_loggers is True, 2521N/A # django.db.backends will still log unless it is disabled explicitly. 2521N/A 'class':
'django.utils.log.NullHandler',
2521N/A # Set the level to "DEBUG" for verbose output logging. 2521N/A 'class':
'logging.StreamHandler',
2521N/A # Logging from django.db.backends is VERY verbose, send to null 3998N/A# It is specified in the form. 3998N/A# The setting FLAVOR_EXTRA_KEYS has been deprecated. 3998N/A# Please load extra spec metadata into the Glance Metadata Definition Catalog. 3998N/A# The sample quota definitions can be found in: 3998N/A# The metadata definition catalog supports CLI and API: 3998N/A# $glance --os-image-api-version 2 help md-namespace-import 3998N/A# $glance-manage db_load_metadefs <directory_with_definition_files> 3998N/A# Indicate to the Sahara data processing service whether or not 3998N/A# automatic floating IP allocation is in effect. If it is not 3998N/A# in effect, the user will be prompted to choose a floating IP 3998N/A# pool for use in their cluster. False by default. You would want 3998N/A# to set this to True if you were running Nova Networking with 3998N/A# auto_assign_floating_ip = True. 3998N/A# SAHARA_AUTO_IP_ALLOCATION_ENABLED = False 3998N/A# The hash algorithm to use for authentication tokens. This must 3998N/A# match the hash algorithm that the identity server and the 3998N/A# auth_token middleware are using. Allowed values are the 3998N/A# algorithms supported by Python's hashlib library. 3998N/A# OPENSTACK_TOKEN_HASH_ALGORITHM = 'md5'