Merge "Update horizon local settings conf files for Juno"

This commit is contained in:
Jenkins 2014-08-25 20:37:59 +00:00 committed by Gerrit Code Review
commit 5ed97b396d
2 changed files with 207 additions and 127 deletions

View File

@ -6,6 +6,7 @@ This file is used to list changes made in each version of the openstack-dashboar
* Upgrading to Juno
* Upgrading berkshelf from 2.0.18 to 3.1.5
* Allow enable_filewall and enable_vpn to be configured via attributes
* Sync conf files with Juno
## 9.1
* python_packages database client attributes have been moved to the -common cookbook

View File

@ -62,7 +62,7 @@ OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "<%= node["openstack"]["dashboard"]["keyston
<% end %>
# Set Console type:
# valid options would be "AUTO", "VNC" or "SPICE"
# valid options would be "AUTO", "VNC", "SPICE" or "RDP"
CONSOLE_TYPE = "<%= node["openstack"]["dashboard"]["console_type"] %>"
# Default OpenStack Dashboard configuration.
@ -80,6 +80,8 @@ HORIZON_CONFIG = {
'exceptions': {'recoverable': exceptions.RECOVERABLE,
'not_found': exceptions.NOT_FOUND,
'unauthorized': exceptions.UNAUTHORIZED},
'angular_modules': [],
'js_files': [],
}
# Specify a regular expression to validate user passwords.
@ -92,7 +94,8 @@ HORIZON_CONFIG = {
# multiple floating IP pools or complex network requirements.
HORIZON_CONFIG["simple_ip_management"] = <%= node['openstack']['dashboard']['simple_ip_management'] ? 'True' : 'False' %>
# Turn off browser autocompletion for the login form if so desired.
# Turn off browser autocompletion for forms including the login form and
# the database creation workflow if so desired.
HORIZON_CONFIG["password_autocomplete"] = "<%= node['openstack']['dashboard']['password_autocomplete'] %>"
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
@ -159,6 +162,9 @@ OPENSTACK_KEYSTONE_DEFAULT_ROLE = "<%= node["openstack"]["dashboard"]["keystone_
# Disable SSL certificate checks (useful for self-signed certificates):
# OPENSTACK_SSL_NO_VERIFY = True
# The CA certificate to use to verify SSL connections
# OPENSTACK_SSL_CACERT = '/path/to/cacert.pem'
# The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the
# capabilities of the auth backend for Keystone.
# If Keystone has been configured to use LDAP as the auth backend then set
@ -174,12 +180,27 @@ OPENSTACK_KEYSTONE_BACKEND = {
'can_edit_role': <%= node["openstack"]["dashboard"]["keystone_backend"]["can_edit_role"] ? "True" : "False" %>,
}
#Setting this to True, will add a new "Retrieve Password" action on instance,
#allowing Admin session password retrieval/decryption.
#OPENSTACK_ENABLE_PASSWORD_RETRIEVE = False
# The Xen Hypervisor has the ability to set the mount point for volumes
# attached to instances (other Hypervisors currently do not). Setting
# can_set_mount_point to True will add the option to set the mount point
# from the UI.
OPENSTACK_HYPERVISOR_FEATURES = {
'can_set_mount_point': True,
'can_set_password': False,
}
# The OPENSTACK_CINDER_FEATURES settings can be used to enable optional
# services provided by cinder that is not exposed by its extension API.
OPENSTACK_CINDER_FEATURES = {
'enable_backup': False,
}
# The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional
# services provided by neutron. Options currenly available are load
# services provided by neutron. Options currently available are load
# balancer service, security groups, quotas, VPN service.
OPENSTACK_NEUTRON_NETWORK = {
'enable_lb': <%= node['openstack']['dashboard']['neutron']['enable_lb'] ? 'True' : 'False' %>,
@ -191,35 +212,55 @@ OPENSTACK_NEUTRON_NETWORK = {
# profile_support can be turned on if needed.
'profile_support': None,
#'profile_support': 'cisco',
# Set which provider network types are supported. Only the network types
# in this list will be available to choose from when creating a network.
# Network types include local, flat, vlan, gre, and vxlan.
'supported_provider_types': ['*'],
}
# The OPENSTACK_IMAGE_BACKEND settings can be used to customize features
# in the OpenStack Dashboard related to the Image service, such as the list
# of supported image formats.
# OPENSTACK_IMAGE_BACKEND = {
# 'image_formats': [
# ('', ''),
# ('aki', _('AKI - Amazon Kernel Image')),
# ('ami', _('AMI - Amazon Machine Image')),
# ('ari', _('ARI - Amazon Ramdisk Image')),
# ('iso', _('ISO - Optical Disk Image')),
# ('qcow2', _('QCOW2 - QEMU Emulator')),
# ('raw', _('Raw')),
# ('vdi', _('VDI')),
# ('vhd', _('VHD')),
# ('vmdk', _('VMDK'))
# ]
# 'image_formats': [
# ('', _('Select format')),
# ('aki', _('AKI - Amazon Kernel Image')),
# ('ami', _('AMI - Amazon Machine Image')),
# ('ari', _('ARI - Amazon Ramdisk Image')),
# ('iso', _('ISO - Optical Disk Image')),
# ('qcow2', _('QCOW2 - QEMU Emulator')),
# ('raw', _('Raw')),
# ('vdi', _('VDI')),
# ('vhd', _('VHD')),
# ('vmdk', _('VMDK'))
# ]
# }
# The IMAGE_CUSTOM_PROPERTY_TITLES settings is used to customize the titles for
# image custom property attributes that appear on image detail pages.
IMAGE_CUSTOM_PROPERTY_TITLES = {
"architecture": _("Architecture"),
"kernel_id": _("Kernel ID"),
"ramdisk_id": _("Ramdisk ID"),
"image_state": _("Euca2ools state"),
"project_id": _("Project ID"),
"image_type": _("Image Type")
}
# The IMAGE_RESERVED_CUSTOM_PROPERTIES setting is used to specify which image
# custom properties should not be displayed in the Image Custom Properties
# table.
IMAGE_RESERVED_CUSTOM_PROPERTIES = []
# OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints
# in the Keystone service catalog. Use this setting when Horizon is running
# external to the OpenStack environment. The default is 'internalURL'.
# external to the OpenStack environment. The default is 'publicURL'.
#OPENSTACK_ENDPOINT_TYPE = "publicURL"
# SECONDARY_ENDPOINT_TYPE specifies the fallback endpoint type to use in the
# case that OPENSTACK_ENDPOINT_TYPE is not present in the endpoints
# in the Keystone service catalog. Use this setting when Horizon is running
# external to the OpenStack environment. The default is None. This
# external to the OpenStack environment. The default is None. This
# value should differ from OPENSTACK_ENDPOINT_TYPE if used.
#SECONDARY_ENDPOINT_TYPE = "publicURL"
@ -234,13 +275,16 @@ API_RESULT_PAGE_SIZE = 20
TIME_ZONE = "UTC"
# When launching an instance, the menu of available flavors is
# sorted by RAM usage, ascending. Provide a callback method here
# (and/or a flag for reverse sort) for the sorted() method if you'd
# like a different behaviour. For more info, see
# sorted by RAM usage, ascending. If you would like a different sort order,
# you can provide another flavor attribute as sorting key. Alternatively, you
# can provide a custom callback method to use for sorting. You can also provide
# a flag for reverse sort. For more info, see
# http://docs.python.org/2/library/functions.html#sorted
# CREATE_INSTANCE_FLAVOR_SORT = {
# 'key': my_awesome_callback_method,
# 'reverse': False,
# 'key': 'name',
# # or
# 'key': my_awesome_callback_method,
# 'reverse': False,
# }
# The Horizon Policy Enforcement engine uses these values to load per service
@ -252,8 +296,12 @@ TIME_ZONE = "UTC"
#POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf")
# Map of local copy of service policy files
#POLICY_FILES = {
# 'identity': 'keystone_policy.json',
# 'compute': 'nova_policy.json'
# 'identity': 'keystone_policy.json',
# 'compute': 'nova_policy.json',
# 'volume': 'cinder_policy.json',
# 'image': 'glance_policy.json',
# 'orchestration': 'heat_policy.json',
# 'network': 'neutron_policy.json',
#}
# Trove user and database extension support. By default support for
@ -264,111 +312,117 @@ TIME_ZONE = "UTC"
# TROVE_ADD_DATABASE_PERMS = []
LOGGING = {
'version': 1,
# When set to True this will disable all logging except
# for loggers specified in this configuration dictionary. Note that
# if nothing is specified here and disable_existing_loggers is True,
# django.db.backends will still log unless it is disabled explicitly.
'disable_existing_loggers': False,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
},
'console': {
# Set the level to "DEBUG" for verbose output logging.
'level': '<%= node["openstack"]["dashboard"]["debug"] ? "DEBUG" : "INFO" %>',
'class': 'logging.StreamHandler',
},
},
'loggers': {
# Logging from django.db.backends is VERY verbose, send to null
# by default.
'django.db.backends': {
'handlers': ['null'],
'propagate': False,
},
'requests': {
'handlers': ['null'],
'propagate': False,
},
'horizon': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["horizon"] %>',
'propagate': False,
},
'openstack_dashboard': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["openstack_dashboard"] %>',
'propagate': False,
},
'novaclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["novaclient"] %>',
'propagate': False,
},
'cinderclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["cinderclient"] %>',
'propagate': False,
},
'keystoneclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["keystoneclient"] %>',
'propagate': False,
},
'glanceclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["glanceclient"] %>',
'propagate': False,
},
'neutronclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["neutronclient"] %>',
'propagate': False,
},
'heatclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["heatclient"] %>',
'propagate': False,
},
'ceilometerclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["ceilometerclient"] %>',
'propagate': False,
},
'troveclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["troveclient"] %>',
'propagate': False,
},
'swiftclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["swiftclient"] %>',
'propagate': False,
},
'openstack_auth': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["openstack_auth"] %>',
'propagate': False,
},
'nose.plugins.manager': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["nose.plugins.manager"] %>',
'propagate': False,
},
'django': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["django"] %>',
'propagate': False,
},
'iso8601': {
'handlers': ['null'],
'propagate': False,
},
}
'version': 1,
# When set to True this will disable all logging except
# for loggers specified in this configuration dictionary. Note that
# if nothing is specified here and disable_existing_loggers is True,
# django.db.backends will still log unless it is disabled explicitly.
'disable_existing_loggers': False,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
},
'console': {
# Set the level to "DEBUG" for verbose output logging.
'level': '<%= node["openstack"]["dashboard"]["debug"] ? "DEBUG" : "INFO" %>',
'class': 'logging.StreamHandler',
},
},
'loggers': {
# Logging from django.db.backends is VERY verbose, send to null
# by default.
'django.db.backends': {
'handlers': ['null'],
'propagate': False,
},
'requests': {
'handlers': ['null'],
'propagate': False,
},
'horizon': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["horizon"] %>',
'propagate': False,
},
'openstack_dashboard': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["openstack_dashboard"] %>',
'propagate': False,
},
'novaclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["novaclient"] %>',
'propagate': False,
},
'cinderclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["cinderclient"] %>',
'propagate': False,
},
'keystoneclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["keystoneclient"] %>',
'propagate': False,
},
'glanceclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["glanceclient"] %>',
'propagate': False,
},
'neutronclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["neutronclient"] %>',
'propagate': False,
},
'heatclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["heatclient"] %>',
'propagate': False,
},
'ceilometerclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["ceilometerclient"] %>',
'propagate': False,
},
'troveclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["troveclient"] %>',
'propagate': False,
},
'swiftclient': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["swiftclient"] %>',
'propagate': False,
},
'openstack_auth': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["openstack_auth"] %>',
'propagate': False,
},
'nose.plugins.manager': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["nose.plugins.manager"] %>',
'propagate': False,
},
'django': {
'handlers': ['console'],
'level': '<%= node["openstack"]["dashboard"]["log_level"]["django"] %>',
'propagate': False,
},
'iso8601': {
'handlers': ['null'],
'propagate': False,
},
'scss': {
'handlers': ['null'],
'propagate': False,
},
}
}
# 'direction' should not be specified for all_tcp/udp/icmp.
# It is specified in the form.
SECURITY_GROUP_RULES = {
'all_tcp': {
'name': _('All TCP'),
@ -474,6 +528,31 @@ SECURITY_GROUP_RULES = {
},
}
FLAVOR_EXTRA_KEYS = {
'flavor_keys': [
('quota:disk_read_bytes_sec', _('Quota: Read bytes')),
('quota:disk_write_bytes_sec', _('Quota: Write bytes')),
('quota:cpu_quota', _('Quota: CPU')),
('quota:cpu_period', _('Quota: CPU period')),
('quota:vif_inbound_average', _('Quota: Inbound average')),
('quota:vif_outbound_average', _('Quota: Outbound average')),
('hw:cpu_sockets', _('Quota: CPU sockets')),
('hw:cpu_cores', _('Quota: CPU cores')),
('hw:cpu_threads', _('Quota: CPU threads')),
('hw:cpu_max_sockets', _('Quota: Max CPU sockets')),
('hw:cpu_max_cores', _('Quota: Max CPU cores')),
('hw:cpu_max_threads', _('Quota: Max CPU threads')),
]
}
# Indicate to the Sahara data processing service whether or not
# automatic floating IP allocation is in effect. If it is not
# in effect, the user will be prompted to choose a floating IP
# pool for use in their cluster. False by default. You would want
# to set this to True if you were running Nova Networking with
# auto_assign_floating_ip = True.
# SAHARA_AUTO_IP_ALLOCATION_ENABLED = False
<% django_backends = {'mysql' => 'django.db.backends.mysql',
'sqlite' => 'django.db.backends.sqlite3',
'postgresql' => 'django.db.backends.postgresql_psycopg2',