local_settings.py revision 6854
6854N/A# -*- coding: utf-8 -*-
6854N/A
2521N/Aimport os
2521N/A
2521N/Afrom django.utils.translation import ugettext_lazy as _
2521N/A
6854N/Afrom horizon.utils import secret_key
6854N/A
2521N/Afrom openstack_dashboard import exceptions
6854N/Afrom openstack_dashboard.settings import HORIZON_CONFIG
2521N/A
4668N/ADEBUG = False
2521N/ATEMPLATE_DEBUG = DEBUG
2521N/A
5444N/A
5444N/A# WEBROOT is the location relative to Webserver root
5444N/A# should end with a slash.
5403N/AWEBROOT = '/horizon/'
6854N/A#LOGIN_URL = WEBROOT + 'auth/login/'
6854N/A#LOGOUT_URL = WEBROOT + 'auth/logout/'
5444N/A#
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
5444N/A
2892N/A# If horizon is running in production (DEBUG is False), set this
2892N/A# with the list of host/domain names that the application can serve.
2892N/A# For more information see:
2892N/A# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
6854N/AALLOWED_HOSTS = '*'
2892N/A
2521N/A# Set SSL proxy settings:
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.
2521N/A# For more information see:
6854N/A# https://docs.djangoproject.com/en/1.8/ref/settings/#secure-proxy-ssl-header
6854N/A#SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
2521N/A
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#CSRF_COOKIE_SECURE = True
6854N/A#SESSION_COOKIE_SECURE = True
2521N/A
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.
6854N/A#MESSAGES_PATH=None
2521N/A
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.
5403N/A#OPENSTACK_API_VERSIONS = {
5403N/A# "data-processing": 1.1,
5403N/A# "identity": 3,
5403N/A# "volume": 2,
6854N/A# "compute": 2,
5403N/A#}
2892N/A
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
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
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
2892N/A
2892N/A# Set Console type:
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.
5403N/A#CONSOLE_TYPE = "AUTO"
2892N/A
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#HORIZON_CONFIG["bug_url"] = "http://bug-report.example.com"
6854N/A
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
2521N/A# Specify a regular expression to validate user passwords.
5403N/A#HORIZON_CONFIG["password_validator"] = {
5403N/A# "regex": '.*',
5403N/A# "help_text": _("Your password does not meet the requirements."),
5403N/A#}
2521N/A
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
2521N/A
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
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
2521N/A
6854N/A# Enable Solaris overrides
6854N/AHORIZON_CONFIG["customization_module"] = 'openstack_dashboard.overrides'
6854N/A
2892N/ALOCAL_PATH = '/var/lib/openstack_dashboard'
2521N/A
2521N/A# Set custom secret key:
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.
3998N/ASECRET_KEY = secret_key.generate_or_read_from_file(
3998N/A os.path.join(LOCAL_PATH, '.secret_key_store'))
2521N/A
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
5403N/A#CACHES = {
2521N/A# 'default': {
3998N/A# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
3998N/A# 'LOCATION': '127.0.0.1:11211',
6854N/A# },
2521N/A#}
2521N/A
2521N/ACACHES = {
2521N/A 'default': {
5403N/A 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
6854N/A },
2521N/A}
2521N/A
2521N/A# Send email to the console by default
2521N/AEMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
2521N/A# Or send them to /dev/null
2521N/A#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
2521N/A
2521N/A# Configure these for your outgoing email host
5403N/A#EMAIL_HOST = 'smtp.my-company.com'
5403N/A#EMAIL_PORT = 25
5403N/A#EMAIL_HOST_USER = 'djangomail'
5403N/A#EMAIL_HOST_PASSWORD = 'top-secret!'
2521N/A
2521N/A# For multiple regions uncomment this configuration, and add (endpoint, title).
5403N/A#AVAILABLE_REGIONS = [
5403N/A# ('http://cluster1.example.com:5000/v2.0', 'cluster1'),
5403N/A# ('http://cluster2.example.com:5000/v2.0', 'cluster2'),
5403N/A#]
2521N/A
2521N/AOPENSTACK_HOST = "127.0.0.1"
2521N/AOPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
2892N/AOPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
2521N/A
5403N/A# Enables keystone web single-sign-on if set to True.
5403N/A#WEBSSO_ENABLED = False
5403N/A
5403N/A# Determines which authentication choice to show as default.
5403N/A#WEBSSO_INITIAL_CHOICE = "credentials"
5403N/A
6854N/A# The list of authentication mechanisms which include keystone
6854N/A# federation protocols and identity provider/federation protocol
6854N/A# mapping keys (WEBSSO_IDP_MAPPING). Current supported protocol
6854N/A# IDs are 'saml2' and 'oidc' which represent SAML 2.0, OpenID
6854N/A# Connect respectively.
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#WEBSSO_CHOICES = (
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#)
6854N/A
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#WEBSSO_IDP_MAPPING = {
6854N/A# "acme_oidc": ("acme", "oidc"),
6854N/A# "acme_saml2": ("acme", "saml2"),
6854N/A#}
5403N/A
2521N/A# Disable SSL certificate checks (useful for self-signed certificates):
5403N/A#OPENSTACK_SSL_NO_VERIFY = True
2521N/A
2892N/A# The CA certificate to use to verify SSL connections
5403N/A#OPENSTACK_SSL_CACERT = '/path/to/cacert.pem'
2892N/A
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#
2521N/A# TODO(tres): Remove these once Keystone has an API to identify auth backend.
2521N/AOPENSTACK_KEYSTONE_BACKEND = {
2521N/A 'name': 'native',
2521N/A 'can_edit_user': True,
2892N/A 'can_edit_group': True,
2892N/A 'can_edit_project': True,
2892N/A 'can_edit_domain': True,
5403N/A 'can_edit_role': True,
2521N/A}
2521N/A
5444N/A# Setting this to True, will add a new "Retrieve Password" action on instance,
5444N/A# allowing Admin session password retrieval/decryption.
4693N/AOPENSTACK_ENABLE_PASSWORD_RETRIEVE = True
3998N/A
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#
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
5403N/A# both.
6854N/ALAUNCH_INSTANCE_LEGACY_ENABLED = True
6854N/ALAUNCH_INSTANCE_NG_ENABLED = False
6854N/A
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 = {
6854N/A# 'config_drive': False,
6854N/A#}
5403N/A
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
2925N/A# from the UI.
2521N/AOPENSTACK_HYPERVISOR_FEATURES = {
2925N/A 'can_set_mount_point': False,
4693N/A 'can_set_password': True,
6854N/A 'requires_keypair': False,
3998N/A}
3998N/A
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.
3998N/AOPENSTACK_CINDER_FEATURES = {
5403N/A 'enable_backup': True,
2892N/A}
2521N/A
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/AOPENSTACK_NEUTRON_NETWORK = {
3998N/A 'enable_router': True,
3998N/A 'enable_quotas': True,
3998N/A 'enable_ipv6': True,
3998N/A 'enable_distributed_router': False,
3998N/A 'enable_ha_router': False,
2892N/A 'enable_lb': False,
2892N/A 'enable_firewall': False,
5403N/A 'enable_vpn': True,
6854N/A 'enable_fip_topology_check': True,
6854N/A
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
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 # environment.
6854N/A 'default_ipv6_subnet_pool_label': None,
5403N/A
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': None,
2892N/A #'profile_support': 'cisco',
5403N/A
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
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 # port.
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}
6854N/A
6854N/A# The OPENSTACK_HEAT_STACK settings can be used to disable password
6854N/A# field required while launching the stack.
6854N/AOPENSTACK_HEAT_STACK = {
6854N/A 'enable_user_pass': True,
2521N/A}
2521N/A
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# 'image_formats': [
5403N/A# ('', _('Select format')),
5403N/A# ('aki', _('AKI - Amazon Kernel Image')),
5403N/A# ('ami', _('AMI - Amazon Machine Image')),
5403N/A# ('ari', _('ARI - Amazon Ramdisk Image')),
6854N/A# ('docker', _('Docker')),
5403N/A# ('iso', _('ISO - Optical Disk Image')),
5403N/A# ('ova', _('OVA - Open Virtual Appliance')),
5403N/A# ('qcow2', _('QCOW2 - QEMU Emulator')),
5403N/A# ('raw', _('Raw')),
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')),
6854N/A# ],
5403N/A#}
2521N/A
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/AIMAGE_CUSTOM_PROPERTY_TITLES = {
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}
3998N/A
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
3998N/A# table.
3998N/AIMAGE_RESERVED_CUSTOM_PROPERTIES = []
3998N/A
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"
2521N/A
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"
2892N/A
2521N/A# The number of objects (Swift containers/objects or images) to display
2521N/A# on a single page before providing a paging element (a "more" link)
2521N/A# to paginate results.
2521N/AAPI_RESULT_LIMIT = 1000
2521N/AAPI_RESULT_PAGE_SIZE = 20
2521N/A
5403N/A# The size of chunk in bytes for downloading objects from Swift
5403N/ASWIFT_FILE_TRANSFER_CHUNK_SIZE = 512 * 1024
5403N/A
5403N/A# Specify a maximum number of items to display in a dropdown.
5403N/ADROPDOWN_MAX_ITEMS = 30
5403N/A
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.
2521N/ATIME_ZONE = "UTC"
2521N/A
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# http://docs.python.org/2/library/functions.html#sorted
5403N/A#CREATE_INSTANCE_FLAVOR_SORT = {
5403N/A# 'key': 'name',
5403N/A# # or
5403N/A# 'key': my_awesome_callback_method,
5403N/A# 'reverse': False,
5403N/A#}
5403N/A
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
5403N/A# the password.
6854N/A#ENFORCE_PASSWORD_CHECK = False
5403N/A
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
5403N/A# this list.
5403N/A#AUTHENTICATION_URLS = [
5403N/A# 'openstack_auth.urls',
5403N/A#]
2892N/A
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# target installation.
2892N/A
2892N/A# Path to directory containing policy.json files
2892N/A#POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf")
6854N/A
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# found at
6854N/A# http://git.openstack.org/cgit/openstack/keystone/tree/etc/ \
6854N/A# policy.v3cloudsample.json
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#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',
2892N/A#}
2892N/A
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
6854N/A# Horizon.
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# unusable such as ["!"].
6854N/A#TROVE_ADD_USER_PERMS = []
6854N/A#TROVE_ADD_DATABASE_PERMS = []
5403N/A
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
6854N/AAVAILABLE_THEMES = [
6854N/A ('default', 'Default', 'themes/default'),
6854N/A]
2892N/A
2521N/ALOGGING = {
2521N/A 'version': 1,
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 'disable_existing_loggers': False,
2521N/A 'handlers': {
2521N/A 'null': {
2521N/A 'level': 'DEBUG',
6854N/A 'class': 'logging.NullHandler',
2521N/A },
2521N/A 'console': {
2521N/A # Set the level to "DEBUG" for verbose output logging.
2521N/A 'level': 'INFO',
2521N/A 'class': 'logging.StreamHandler',
2521N/A },
5403N/A 'file': {
5403N/A 'level': 'INFO',
5403N/A 'class': 'logging.FileHandler',
5403N/A 'filename': '/var/log/openstack_dashboard/horizon.log',
5403N/A 'formatter': 'verbose',
5403N/A },
2521N/A },
2521N/A 'loggers': {
2521N/A # Logging from django.db.backends is VERY verbose, send to null
2521N/A # by default.
2521N/A 'django.db.backends': {
2521N/A 'handlers': ['null'],
2521N/A 'propagate': False,
2521N/A },
2521N/A 'requests': {
2521N/A 'handlers': ['null'],
2521N/A 'propagate': False,
2521N/A },
2521N/A 'horizon': {
2521N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2521N/A 'propagate': False,
2521N/A },
2521N/A 'openstack_dashboard': {
2521N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2521N/A 'propagate': False,
2521N/A },
2521N/A 'novaclient': {
2521N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2892N/A 'propagate': False,
2892N/A },
2892N/A 'cinderclient': {
2892N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2521N/A 'propagate': False,
2521N/A },
2521N/A 'keystoneclient': {
2521N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2521N/A 'propagate': False,
2521N/A },
2521N/A 'glanceclient': {
2521N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2892N/A 'propagate': False,
2892N/A },
2892N/A 'neutronclient': {
2892N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2892N/A 'propagate': False,
2892N/A },
2892N/A 'heatclient': {
2892N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2892N/A 'propagate': False,
2892N/A },
2892N/A 'ceilometerclient': {
2892N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2892N/A 'propagate': False,
2892N/A },
2892N/A 'swiftclient': {
2892N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2892N/A 'propagate': False,
2892N/A },
2892N/A 'openstack_auth': {
2892N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2521N/A 'propagate': False,
2521N/A },
2521N/A 'nose.plugins.manager': {
2521N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2521N/A 'propagate': False,
2892N/A },
2892N/A 'django': {
2892N/A 'handlers': ['console'],
2892N/A 'level': 'DEBUG',
2892N/A 'propagate': False,
2892N/A },
2892N/A 'iso8601': {
2892N/A 'handlers': ['null'],
2892N/A 'propagate': False,
2892N/A },
3998N/A 'scss': {
3998N/A 'handlers': ['null'],
3998N/A 'propagate': False,
3998N/A },
6854N/A },
6854N/A 'formatters': {
6854N/A 'verbose': {
6854N/A 'format': '%(asctime)s %(process)d %(levelname)s %(name)s '
6854N/A '%(message)s'
6854N/A },
6854N/A },
2521N/A}
2892N/A
3998N/A# 'direction' should not be specified for all_tcp/udp/icmp.
3998N/A# It is specified in the form.
2892N/ASECURITY_GROUP_RULES = {
2892N/A 'all_tcp': {
3998N/A 'name': _('All TCP'),
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '1',
2892N/A 'to_port': '65535',
2892N/A },
2892N/A 'all_udp': {
3998N/A 'name': _('All UDP'),
2892N/A 'ip_protocol': 'udp',
2892N/A 'from_port': '1',
2892N/A 'to_port': '65535',
2892N/A },
2892N/A 'all_icmp': {
3998N/A 'name': _('All ICMP'),
2892N/A 'ip_protocol': 'icmp',
2892N/A 'from_port': '-1',
2892N/A 'to_port': '-1',
2892N/A },
2892N/A 'ssh': {
2892N/A 'name': 'SSH',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '22',
2892N/A 'to_port': '22',
2892N/A },
2892N/A 'smtp': {
2892N/A 'name': 'SMTP',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '25',
2892N/A 'to_port': '25',
2892N/A },
2892N/A 'dns': {
2892N/A 'name': 'DNS',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '53',
2892N/A 'to_port': '53',
2892N/A },
2892N/A 'http': {
2892N/A 'name': 'HTTP',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '80',
2892N/A 'to_port': '80',
2892N/A },
2892N/A 'pop3': {
2892N/A 'name': 'POP3',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '110',
2892N/A 'to_port': '110',
2892N/A },
2892N/A 'imap': {
2892N/A 'name': 'IMAP',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '143',
2892N/A 'to_port': '143',
2892N/A },
2892N/A 'ldap': {
2892N/A 'name': 'LDAP',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '389',
2892N/A 'to_port': '389',
2892N/A },
2892N/A 'https': {
2892N/A 'name': 'HTTPS',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '443',
2892N/A 'to_port': '443',
2892N/A },
2892N/A 'smtps': {
2892N/A 'name': 'SMTPS',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '465',
2892N/A 'to_port': '465',
2892N/A },
2892N/A 'imaps': {
2892N/A 'name': 'IMAPS',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '993',
2892N/A 'to_port': '993',
2892N/A },
2892N/A 'pop3s': {
2892N/A 'name': 'POP3S',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '995',
2892N/A 'to_port': '995',
2892N/A },
2892N/A 'ms_sql': {
2892N/A 'name': 'MS SQL',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '1433',
2892N/A 'to_port': '1433',
2892N/A },
2892N/A 'mysql': {
2892N/A 'name': 'MYSQL',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '3306',
2892N/A 'to_port': '3306',
2892N/A },
2892N/A 'rdp': {
2892N/A 'name': 'RDP',
2892N/A 'ip_protocol': 'tcp',
2892N/A 'from_port': '3389',
2892N/A 'to_port': '3389',
2892N/A },
2892N/A}
3998N/A
3998N/A# Deprecation Notice:
3998N/A#
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#
3998N/A# The sample quota definitions can be found in:
3998N/A# <glance_source>/etc/metadefs/compute-quota.json
3998N/A#
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#
3998N/A# See Metadata Definitions on: http://docs.openstack.org/developer/glance/
3998N/A
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
6854N/A# for use in Horizon.
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
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'
3998N/A
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# hashing.
6854N/A#OPENSTACK_TOKEN_HASH_ENABLED = True
6854N/A
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#
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.
5403N/A# See: https://wiki.openstack.org/wiki/Horizon/RESTAPI
6854N/AREST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES',
6854N/A 'LAUNCH_INSTANCE_DEFAULTS']
5403N/A
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 = []
5638N/A
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# For more information see:
6854N/A# http://tinyurl.com/anticlickjack
6854N/A#DISALLOW_IFRAME_EMBED = True
6854N/A
6854N/ASTATIC_ROOT = '/usr/lib/python2.7/vendor-packages/openstack_dashboard/static'
6854N/A
6854N/A# Enable Solaris theme
6854N/ATEMPLATE_DIRS = (
6854N/A '/usr/lib/python2.7/vendor-packages/openstack_dashboard/templates/solaris',
6854N/A)
6854N/A
6854N/A# Application files are compressed during packaging
6854N/ACOMPRESS_OFFLINE = True
6854N/A
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
5638N/A# to False.
5638N/ASOLARIS_BOOTARGS = True