local_settings.py revision 6854
5444N/A# WEBROOT is the location relative to Webserver root 5444N/A# LOGIN_REDIRECT_URL can be used as an alternative for 5444N/A# HORIZON_CONFIG.user_home, if user_home is not set. 5444N/A# Do not set it to '/home/', as this will cause circular redirect loop 6854N/A#LOGIN_REDIRECT_URL = WEBROOT 2892N/A# If horizon is running in production (DEBUG is False), set this 6854N/A# Pass this header from the proxy after terminating the SSL, 2521N/A# and don't forget to strip it from the client's request. 6854N/A#SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') 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 6854N/A#SESSION_COOKIE_SECURE = True 6854N/A# The absolute path to the directory where message files are collected. 6854N/A# The message file must have a .json file extension. When the user logins to 6854N/A# horizon, the message files collected are processed and displayed to the user. 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. 5403N/A# Versions specified here should be integers or floats, not strings. 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 5403N/A# use of the decimal point, so valid options would be 2.0 or 3. 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. 5403N/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. 6854N/A# NOTE: This value must be the ID of the default domain, NOT the name. 6854N/A# Also, you will most likely have a value in the keystone policy file like this 6854N/A# "cloud_admin": "rule:admin_required and domain_id:<your domain id>" 6854N/A# This value must match the domain id specified there. 6854N/A#OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'default' 6854N/A# Set this to True to enable panels that provide the ability for users to 6854N/A# manage Identity Providers (IdPs) and establish a set of rules to map 6854N/A# federation protocol attributes to Identity API attributes. 6854N/A# This extension requires v3.0+ of the Identity API. 6854N/A#OPENSTACK_KEYSTONE_FEDERATION_MANAGEMENT = False 6854N/A# valid options are "AUTO"(default), "VNC", "SPICE", "RDP", "SERIAL" or None 6854N/A# Set to None explicitly if you want to deactivate the console. 6854N/A# If provided, a "Report Bug" link will be displayed in the site header 6854N/A# which links to the value of this setting (ideally a URL containing 6854N/A# information on how to report issues). 6854N/A# Show backdrop element outside the modal, do not close the modal 6854N/A# after clicking on backdrop. 6854N/A#HORIZON_CONFIG["modal_backdrop"] = "static" 2521N/A# Specify a regular expression to validate user passwords. 5403N/A#HORIZON_CONFIG["password_validator"] = { 5403N/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. 5403N/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. 5403N/A#HORIZON_CONFIG["password_autocomplete"] = "off" 5403N/A# Setting this to True will disable the reveal button for password fields, 5403N/A# including on the login form. 5403N/A#HORIZON_CONFIG["disable_password_reveal"] = False 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 6854N/A# amount of Python WSGI workers (if used behind Apache+mod_wsgi): However, 6854N/A# there may be situations where you would want to set this explicitly, e.g. 6854N/A# when multiple dashboard instances are distributed on different machines 6854N/A# (usually behind a load-balancer). Either you have to make sure that a session 6854N/A# gets all requests routed to the same dashboard instance or you set the same 6854N/A# SECRET_KEY for all of them. 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', 5403N/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 5403N/A#EMAIL_HOST = 'smtp.my-company.com' 5403N/A#EMAIL_HOST_USER = 'djangomail' 5403N/A#EMAIL_HOST_PASSWORD = 'top-secret!' 2521N/A# For multiple regions uncomment this configuration, and add (endpoint, title). 5403N/A# Enables keystone web single-sign-on if set to True. 5403N/A# Determines which authentication choice to show as default. 5403N/A#WEBSSO_INITIAL_CHOICE = "credentials" 6854N/A# The list of authentication mechanisms which include keystone 6854N/A# mapping keys (WEBSSO_IDP_MAPPING). Current supported protocol 6854N/A# IDs are 'saml2' and 'oidc' which represent SAML 2.0, OpenID 5403N/A# Do not remove the mandatory credentials mechanism. 6854N/A# Note: The last two tuples are sample mapping keys to a identity provider 6854N/A# and federation protocol combination (WEBSSO_IDP_MAPPING). 5403N/A# ("credentials", _("Keystone Credentials")), 5403N/A# ("oidc", _("OpenID Connect")), 6854N/A# ("saml2", _("Security Assertion Markup Language")), 6854N/A# ("acme_oidc", "ACME - OpenID Connect"), 6854N/A# ("acme_saml2", "ACME - SAML2"), 6854N/A# A dictionary of specific identity provider and federation protocol 6854N/A# combinations. From the selected authentication mechanism, the value 6854N/A# will be looked up as keys in the dictionary. If a match is found, 6854N/A# it will redirect the user to a identity provider and federation protocol 6854N/A# specific WebSSO endpoint in keystone, otherwise it will use the value 6854N/A# as the protocol_id when redirecting to the WebSSO by protocol endpoint. 6854N/A# NOTE: The value is expected to be a tuple formatted as: 6854N/A# (<idp_id>, <protocol_id>). 6854N/A# "acme_oidc": ("acme", "oidc"), 6854N/A# "acme_saml2": ("acme", "saml2"), 2521N/A# Disable SSL certificate checks (useful for self-signed certificates): 5403N/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. 5444N/A# Setting this to True, will add a new "Retrieve Password" action on instance, 5403N/A# The Launch Instance user experience has been significantly enhanced. 5403N/A# You can choose whether to enable the new launch instance experience, 5403N/A# the legacy experience, or both. The legacy experience will be removed 5403N/A# in a future release, but is available as a temporary backup setting to ensure 5403N/A# compatibility with existing deployments. Further development will not be 5403N/A# done on the legacy experience. Please report any problems with the new 5403N/A# experience via the Launchpad tracking system. 5403N/A# Toggle LAUNCH_INSTANCE_LEGACY_ENABLED and LAUNCH_INSTANCE_NG_ENABLED to 5403N/A# determine the experience to enable. Set them both to true to enable 6854N/A# A dictionary of settings which can be used to provide the default values for 6854N/A# properties found in the Launch Instance modal. 6854N/A#LAUNCH_INSTANCE_DEFAULTS = { 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. 6854N/A # Neutron can be configured with a default Subnet Pool to be used for IPv4 6854N/A # subnet-allocation. Specify the label you wish to display in the Address 6854N/A # pool selector on the create subnet step if you want to use this feature. 6854N/A 'default_ipv4_subnet_pool_label':
None,
6854N/A # Neutron can be configured with a default Subnet Pool to be used for IPv6 6854N/A # subnet-allocation. Specify the label you wish to display in the Address 6854N/A # pool selector on the create subnet step if you want to use this feature. 6854N/A # You must set this to enable IPv6 Prefix Delegation in a PD-capable 6854N/A 'default_ipv6_subnet_pool_label':
None,
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': [
'*'],
5403N/A # Set which VNIC types are supported for port binding. Only the VNIC 5403N/A # types in this list will be available to choose from when creating a 5403N/A # VNIC types include 'normal', 'macvtap' and 'direct'. 6854N/A # Set to empty list or None to disable VNIC type selection. 6854N/A 'supported_vnic_types': [
'*'],
6854N/A# The OPENSTACK_HEAT_STACK settings can be used to disable password 6854N/A# field required while launching the stack. 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. 5403N/A#OPENSTACK_IMAGE_BACKEND = { 5403N/A# ('aki', _('AKI - Amazon Kernel Image')), 5403N/A# ('ami', _('AMI - Amazon Machine Image')), 5403N/A# ('ari', _('ARI - Amazon Ramdisk Image')), 5403N/A# ('iso', _('ISO - Optical Disk Image')), 5403N/A# ('ova', _('OVA - Open Virtual Appliance')), 5403N/A# ('qcow2', _('QCOW2 - QEMU Emulator')), 5403N/A# ('vdi', _('VDI - Virtual Disk Image')), 6854N/A# ('vhd', _('VHD - Virtual Hard Disk')), 5403N/A# ('vmdk', _('VMDK - Virtual Machine Disk')), 6854N/A# ('zfs', _('ZFS - Solaris ZFS Image')), 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"),
5403N/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) 5403N/A# The size of chunk in bytes for downloading objects from Swift 5403N/A# Specify a maximum number of items to display in a dropdown. 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 5403N/A#CREATE_INSTANCE_FLAVOR_SORT = { 5403N/A# 'key': my_awesome_callback_method, 5403N/A# Set this to True to display an 'Admin Password' field on the Change Password 5403N/A# form to verify that it is indeed the admin logged-in who wants to change 6854N/A#ENFORCE_PASSWORD_CHECK = False 5403N/A# Modules that provide /auth routes that can be used to handle different types 5403N/A# of user authentication. Add auth plugins that require extra route handling to 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") 6854N/A# Map of local copy of service policy files. 6854N/A# Please insure that your identity policy file matches the one being used on 6854N/A# your keystone servers. There is an alternate policy file that may be used 6854N/A# in the Keystone v3 multi-domain case, policy.v3cloudsample.json. 6854N/A# This file is not included in the Horizon repository by default but can be 6854N/A# Having matching policy files on the Horizon and Keystone servers is essential 6854N/A# for normal operation. This holds true for all services and their 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', 5403N/A# 'telemetry': 'ceilometer_policy.json', 6854N/A# TODO: (david-lyle) remove when plugins support adding settings. 6854N/A# Note: Only used when trove-dashboard plugin is configured to be used by 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 6854N/A#TROVE_ADD_DATABASE_PERMS = [] 6854N/A# Change this patch to the appropriate list of tuples containing 6854N/A# a key, label and static directory containing two files: 6854N/A# _variables.scss and _styles.scss 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. 6854N/A 'class':
'logging.NullHandler',
2521N/A # Set the level to "DEBUG" for verbose output logging. 2521N/A 'class':
'logging.StreamHandler',
5403N/A 'class':
'logging.FileHandler',
2521N/A # Logging from django.db.backends is VERY verbose, send to null 6854N/A 'format':
'%(asctime)s %(process)d %(levelname)s %(name)s ' 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> 6854N/A# TODO: (david-lyle) remove when plugins support settings natively 6854N/A# Note: This is only used when the Sahara plugin is configured and enabled 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. 5403N/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. 5403N/A#OPENSTACK_TOKEN_HASH_ALGORITHM = 'md5' 6854N/A# Hashing tokens from Keystone keeps the Horizon session data smaller, but it 6854N/A# doesn't work in some cases when using PKI tokens. Uncomment this value and 6854N/A# set it to False if using PKI tokens and there are 401 errors due to token 6854N/A#OPENSTACK_TOKEN_HASH_ENABLED = True 5403N/A# AngularJS requires some settings to be made available to 5403N/A# the client side. Some settings are required by in-tree / built-in horizon 5403N/A# features. These settings must be added to REST_API_REQUIRED_SETTINGS in the 5403N/A# form of ['SETTING_1','SETTING_2'], etc. 5403N/A# You may remove settings from this list for security purposes, but do so at 5403N/A# the risk of breaking a built-in horizon feature. These settings are required 5403N/A# for horizon to function properly. Only remove them if you know what you 5403N/A# are doing. These settings may in the future be moved to be defined within 5403N/A# the enabled panel configuration. 5403N/A# You should not add settings to this list for out of tree extensions. 6854N/A 'LAUNCH_INSTANCE_DEFAULTS']
5403N/A# Additional settings can be made available to the client side for 5403N/A# extensibility by specifying them in REST_API_ADDITIONAL_SETTINGS 5403N/A# !! Please use extreme caution as the settings are transferred via HTTP/S 5403N/A# and are not encrypted on the browser. This is an experimental API and 5403N/A# may be deprecated in the future without notice. 5403N/A#REST_API_ADDITIONAL_SETTINGS = [] 6854N/A# DISALLOW_IFRAME_EMBED can be used to prevent Horizon from being embedded 6854N/A# within an iframe. Legacy browsers are still vulnerable to a Cross-Frame 6854N/A# Scripting (XFS) vulnerability, so this option allows extra security hardening 6854N/A# where iframes are not used in deployment. Default setting is True. 6854N/A#DISALLOW_IFRAME_EMBED = True 6854N/A# Application files are compressed during packaging 5638N/A# Solaris kernel(8) and boot(8) options exposed in instances panel. 5638N/A# Allows a user to set boot options during instance launch and allows a user 5638N/A# to edit boot options post instance creation. If you want this disabled set