OpenStack in a snap!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

918 lines
34 KiB

  1. # -*- coding: utf-8 -*-
  2. import os
  3. from django.utils.translation import ugettext_lazy as _
  4. from horizon.utils import secret_key
  5. from openstack_dashboard.settings import HORIZON_CONFIG
  6. DEBUG = False
  7. # This setting controls whether or not compression is enabled. Disabling
  8. # compression makes Horizon considerably slower, but makes it much easier
  9. # to debug JS and CSS changes
  10. #COMPRESS_ENABLED = not DEBUG
  11. # This setting controls whether compression happens on the fly, or offline
  12. # with `python manage.py compress`
  13. # See https://django-compressor.readthedocs.io/en/latest/usage/#offline-compression
  14. # for more information
  15. #COMPRESS_OFFLINE = not DEBUG
  16. # WEBROOT is the location relative to Webserver root
  17. # should end with a slash.
  18. WEBROOT = '/'
  19. #LOGIN_URL = WEBROOT + 'auth/login/'
  20. #LOGOUT_URL = WEBROOT + 'auth/logout/'
  21. #LOGIN_ERROR = WEBROOT + 'auth/error/'
  22. #
  23. # LOGIN_REDIRECT_URL can be used as an alternative for
  24. # HORIZON_CONFIG.user_home, if user_home is not set.
  25. # Do not set it to '/home/', as this will cause circular redirect loop
  26. #LOGIN_REDIRECT_URL = WEBROOT
  27. # If horizon is running in production (DEBUG is False), set this
  28. # with the list of host/domain names that the application can serve.
  29. # For more information see:
  30. # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
  31. #ALLOWED_HOSTS = '*'
  32. # Set SSL proxy settings:
  33. # Pass this header from the proxy after terminating the SSL,
  34. # and don't forget to strip it from the client's request.
  35. # For more information see:
  36. # https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
  37. #SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  38. # If Horizon is being served through SSL, then uncomment the following two
  39. # settings to better secure the cookies from security exploits
  40. #CSRF_COOKIE_SECURE = True
  41. #SESSION_COOKIE_SECURE = True
  42. # The absolute path to the directory where message files are collected.
  43. # The message file must have a .json file extension. When the user logins to
  44. # horizon, the message files collected are processed and displayed to the user.
  45. #MESSAGES_PATH=None
  46. # Overrides for OpenStack API versions. Use this setting to force the
  47. # OpenStack dashboard to use a specific API version for a given service API.
  48. # Versions specified here should be integers or floats, not strings.
  49. # NOTE: The version should be formatted as it appears in the URL for the
  50. # service API. For example, The identity service APIs have inconsistent
  51. # use of the decimal point, so valid options would be 2.0 or 3.
  52. # Minimum compute version to get the instance locked status is 2.9.
  53. #OPENSTACK_API_VERSIONS = {
  54. # "identity": 3,
  55. # "image": 2,
  56. # "volume": 3,
  57. # "compute": 2,
  58. #}
  59. # Set this to True if running on a multi-domain model. When this is enabled, it
  60. # will require the user to enter the Domain name in addition to the username
  61. # for login.
  62. #OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False
  63. # Set this to True if you want available domains displayed as a dropdown menu
  64. # on the login screen. It is strongly advised NOT to enable this for public
  65. # clouds, as advertising enabled domains to unauthenticated customers
  66. # irresponsibly exposes private information. This should only be used for
  67. # private clouds where the dashboard sits behind a corporate firewall.
  68. #OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN = False
  69. # If OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN is enabled, this option can be used to
  70. # set the available domains to choose from. This is a list of pairs whose first
  71. # value is the domain name and the second is the display name.
  72. #OPENSTACK_KEYSTONE_DOMAIN_CHOICES = (
  73. # ('Default', 'Default'),
  74. #)
  75. # Overrides the default domain used when running on single-domain model
  76. # with Keystone V3. All entities will be created in the default domain.
  77. # NOTE: This value must be the name of the default domain, NOT the ID.
  78. # Also, you will most likely have a value in the keystone policy file like this
  79. # "cloud_admin": "rule:admin_required and domain_id:<your domain id>"
  80. # This value must be the name of the domain whose ID is specified there.
  81. #OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'
  82. # Set this to True to enable panels that provide the ability for users to
  83. # manage Identity Providers (IdPs) and establish a set of rules to map
  84. # federation protocol attributes to Identity API attributes.
  85. # This extension requires v3.0+ of the Identity API.
  86. #OPENSTACK_KEYSTONE_FEDERATION_MANAGEMENT = False
  87. # Set Console type:
  88. # valid options are "AUTO"(default), "VNC", "SPICE", "RDP", "SERIAL", "MKS"
  89. # or None. Set to None explicitly if you want to deactivate the console.
  90. #CONSOLE_TYPE = "AUTO"
  91. # Toggle showing the openrc file for Keystone V2.
  92. # If set to false the link will be removed from the user dropdown menu
  93. # and the API Access page
  94. #SHOW_KEYSTONE_V2_RC = False
  95. # Controls whether the keystone openrc file is accesible from the user
  96. # menu and the api access panel.
  97. SHOW_OPENRC_FILE = True
  98. # Controls whether clouds.yaml is accesible from the user
  99. # menu and the api access panel.
  100. SHOW_OPENSTACK_CLOUDS_YAML = True
  101. # If provided, a "Report Bug" link will be displayed in the site header
  102. # which links to the value of this setting (ideally a URL containing
  103. # information on how to report issues).
  104. #HORIZON_CONFIG["bug_url"] = "http://bug-report.example.com"
  105. # Show backdrop element outside the modal, do not close the modal
  106. # after clicking on backdrop.
  107. #HORIZON_CONFIG["modal_backdrop"] = "static"
  108. # Specify a regular expression to validate user passwords.
  109. #HORIZON_CONFIG["password_validator"] = {
  110. # "regex": '.*',
  111. # "help_text": _("Your password does not meet the requirements."),
  112. #}
  113. # Turn off browser autocompletion for forms including the login form and
  114. # the database creation workflow if so desired.
  115. #HORIZON_CONFIG["password_autocomplete"] = "off"
  116. # Setting this to True will disable the reveal button for password fields,
  117. # including on the login form.
  118. #HORIZON_CONFIG["disable_password_reveal"] = False
  119. #LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
  120. # Set custom secret key:
  121. # You can either set it to a specific value or you can let horizon generate a
  122. # default secret key that is unique on this machine, e.i. regardless of the
  123. # amount of Python WSGI workers (if used behind Apache+mod_wsgi): However,
  124. # there may be situations where you would want to set this explicitly, e.g.
  125. # when multiple dashboard instances are distributed on different machines
  126. # (usually behind a load-balancer). Either you have to make sure that a session
  127. # gets all requests routed to the same dashboard instance or you set the same
  128. # SECRET_KEY for all of them.
  129. #SECRET_KEY = secret_key.generate_or_read_from_file(
  130. # os.path.join(LOCAL_PATH, '.secret_key_store'))
  131. # We recommend you use memcached for development; otherwise after every reload
  132. # of the django development server, you will have to login again. To use
  133. # memcached set CACHES to something like below.
  134. # For more information, see
  135. # https://docs.djangoproject.com/en/1.11/topics/http/sessions/.
  136. #CACHES = {
  137. # 'default': {
  138. # 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
  139. # },
  140. #}
  141. # If you use ``tox -e runserver`` for developments,then configure
  142. # SESSION_ENGINE to django.contrib.sessions.backends.signed_cookies
  143. # as shown below:
  144. #SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
  145. # Send email to the console by default
  146. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  147. # Or send them to /dev/null
  148. #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
  149. # Configure these for your outgoing email host
  150. #EMAIL_HOST = 'smtp.my-company.com'
  151. #EMAIL_PORT = 25
  152. #EMAIL_HOST_USER = 'djangomail'
  153. #EMAIL_HOST_PASSWORD = 'top-secret!'
  154. # For multiple regions uncomment this configuration, and add (endpoint, title).
  155. #AVAILABLE_REGIONS = [
  156. # ('http://cluster1.example.com:5000/v3', 'cluster1'),
  157. # ('http://cluster2.example.com:5000/v3', 'cluster2'),
  158. #]
  159. OPENSTACK_HOST = "127.0.0.1"
  160. OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
  161. OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
  162. # For setting the default service region on a per-endpoint basis. Note that the
  163. # default value for this setting is {}, and below is just an example of how it
  164. # should be specified.
  165. # A key of '*' is an optional global default if no other key matches.
  166. #DEFAULT_SERVICE_REGIONS = {
  167. # '*': 'microstack'
  168. # OPENSTACK_KEYSTONE_URL: 'RegionTwo'
  169. #}
  170. # Enables keystone web single-sign-on if set to True.
  171. #WEBSSO_ENABLED = False
  172. # Authentication mechanism to be selected as default.
  173. # The value must be a key from WEBSSO_CHOICES.
  174. #WEBSSO_INITIAL_CHOICE = "credentials"
  175. # The list of authentication mechanisms which include keystone
  176. # federation protocols and identity provider/federation protocol
  177. # mapping keys (WEBSSO_IDP_MAPPING). Current supported protocol
  178. # IDs are 'saml2' and 'oidc' which represent SAML 2.0, OpenID
  179. # Connect respectively.
  180. # Do not remove the mandatory credentials mechanism.
  181. # Note: The last two tuples are sample mapping keys to a identity provider
  182. # and federation protocol combination (WEBSSO_IDP_MAPPING).
  183. #WEBSSO_CHOICES = (
  184. # ("credentials", _("Keystone Credentials")),
  185. # ("oidc", _("OpenID Connect")),
  186. # ("saml2", _("Security Assertion Markup Language")),
  187. # ("acme_oidc", "ACME - OpenID Connect"),
  188. # ("acme_saml2", "ACME - SAML2"),
  189. #)
  190. # A dictionary of specific identity provider and federation protocol
  191. # combinations. From the selected authentication mechanism, the value
  192. # will be looked up as keys in the dictionary. If a match is found,
  193. # it will redirect the user to a identity provider and federation protocol
  194. # specific WebSSO endpoint in keystone, otherwise it will use the value
  195. # as the protocol_id when redirecting to the WebSSO by protocol endpoint.
  196. # NOTE: The value is expected to be a tuple formatted as: (<idp_id>, <protocol_id>).
  197. #WEBSSO_IDP_MAPPING = {
  198. # "acme_oidc": ("acme", "oidc"),
  199. # "acme_saml2": ("acme", "saml2"),
  200. #}
  201. # Enables redirection on login to the identity provider defined on
  202. # WEBSSO_DEFAULT_REDIRECT_PROTOCOL and WEBSSO_DEFAULT_REDIRECT_REGION
  203. #WEBSSO_DEFAULT_REDIRECT = False
  204. # Specifies the protocol to use for default redirection on login
  205. #WEBSSO_DEFAULT_REDIRECT_PROTOCOL = None
  206. # Specifies the region to which the connection will be established on login
  207. #WEBSSO_DEFAULT_REDIRECT_REGION = OPENSTACK_KEYSTONE_URL
  208. # Enables redirection on logout to the method specified on the identity provider.
  209. # Once logout the client will be redirected to the address specified in this
  210. # variable.
  211. #WEBSSO_DEFAULT_REDIRECT_LOGOUT = None
  212. # If set this URL will be used for web single-sign-on authentication
  213. # instead of OPENSTACK_KEYSTONE_URL. This is needed in the deployment
  214. # scenarios where network segmentation is used per security requirement.
  215. # In this case, the controllers are not reachable from public network.
  216. # Therefore, user's browser will not be able to access OPENSTACK_KEYSTONE_URL
  217. # if it is set to the internal endpoint.
  218. #WEBSSO_KEYSTONE_URL = "http://keystone-public.example.com/v3"
  219. # The Keystone Provider drop down uses Keystone to Keystone federation
  220. # to switch between Keystone service providers.
  221. # Set display name for Identity Provider (dropdown display name)
  222. #KEYSTONE_PROVIDER_IDP_NAME = "Local Keystone"
  223. # This id is used for only for comparison with the service provider IDs. This ID
  224. # should not match any service provider IDs.
  225. #KEYSTONE_PROVIDER_IDP_ID = "localkeystone"
  226. # Disable SSL certificate checks (useful for self-signed certificates):
  227. #OPENSTACK_SSL_NO_VERIFY = True
  228. # The CA certificate to use to verify SSL connections
  229. #OPENSTACK_SSL_CACERT = '/path/to/cacert.pem'
  230. # The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the
  231. # capabilities of the auth backend for Keystone.
  232. # If Keystone has been configured to use LDAP as the auth backend then set
  233. # can_edit_user to False and name to 'ldap'.
  234. #
  235. # TODO(tres): Remove these once Keystone has an API to identify auth backend.
  236. OPENSTACK_KEYSTONE_BACKEND = {
  237. 'name': 'native',
  238. 'can_edit_user': True,
  239. 'can_edit_group': True,
  240. 'can_edit_project': True,
  241. 'can_edit_domain': True,
  242. 'can_edit_role': True,
  243. }
  244. # Setting this to True, will add a new "Retrieve Password" action on instance,
  245. # allowing Admin session password retrieval/decryption.
  246. #OPENSTACK_ENABLE_PASSWORD_RETRIEVE = False
  247. # The Launch Instance user experience has been significantly enhanced.
  248. # You can choose whether to enable the new launch instance experience,
  249. # the legacy experience, or both. The legacy experience will be removed
  250. # in a future release, but is available as a temporary backup setting to ensure
  251. # compatibility with existing deployments. Further development will not be
  252. # done on the legacy experience. Please report any problems with the new
  253. # experience via the Launchpad tracking system.
  254. #
  255. # Toggle LAUNCH_INSTANCE_LEGACY_ENABLED and LAUNCH_INSTANCE_NG_ENABLED to
  256. # determine the experience to enable. Set them both to true to enable
  257. # both.
  258. #LAUNCH_INSTANCE_LEGACY_ENABLED = True
  259. #LAUNCH_INSTANCE_NG_ENABLED = False
  260. # A dictionary of settings which can be used to provide the default values for
  261. # properties found in the Launch Instance modal.
  262. #LAUNCH_INSTANCE_DEFAULTS = {
  263. # 'config_drive': False,
  264. # 'enable_scheduler_hints': True,
  265. # 'disable_image': False,
  266. # 'disable_instance_snapshot': False,
  267. # 'disable_volume': False,
  268. # 'disable_volume_snapshot': False,
  269. # 'create_volume': True,
  270. #}
  271. # The Xen Hypervisor has the ability to set the mount point for volumes
  272. # attached to instances (other Hypervisors currently do not). Setting
  273. # can_set_mount_point to True will add the option to set the mount point
  274. # from the UI.
  275. OPENSTACK_HYPERVISOR_FEATURES = {
  276. 'can_set_mount_point': False,
  277. 'can_set_password': False,
  278. 'requires_keypair': False,
  279. 'enable_quotas': True
  280. }
  281. # This settings controls whether IP addresses of servers are retrieved from
  282. # neutron in the project instance table. Setting this to ``False`` may mitigate
  283. # a performance issue in the project instance table in large deployments.
  284. #OPENSTACK_INSTANCE_RETRIEVE_IP_ADDRESSES = True
  285. # The OPENSTACK_CINDER_FEATURES settings can be used to enable optional
  286. # services provided by cinder that is not exposed by its extension API.
  287. OPENSTACK_CINDER_FEATURES = {
  288. 'enable_backup': False,
  289. }
  290. # The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional
  291. # services provided by neutron. Options currently available are load
  292. # balancer service, security groups, quotas, VPN service.
  293. OPENSTACK_NEUTRON_NETWORK = {
  294. 'enable_router': True,
  295. 'enable_quotas': True,
  296. 'enable_ipv6': True,
  297. 'enable_distributed_router': False,
  298. 'enable_ha_router': False,
  299. 'enable_fip_topology_check': True,
  300. # Default dns servers you would like to use when a subnet is
  301. # created. This is only a default, users can still choose a different
  302. # list of dns servers when creating a new subnet.
  303. # The entries below are examples only, and are not appropriate for
  304. # real deployments
  305. # 'default_dns_nameservers': ["8.8.8.8", "8.8.4.4", "208.67.222.222"],
  306. # Set which provider network types are supported. Only the network types
  307. # in this list will be available to choose from when creating a network.
  308. # Network types include local, flat, vlan, gre, vxlan and geneve.
  309. # 'supported_provider_types': ['*'],
  310. # You can configure available segmentation ID range per network type
  311. # in your deployment.
  312. # 'segmentation_id_range': {
  313. # 'vlan': [1024, 2048],
  314. # 'vxlan': [4094, 65536],
  315. # },
  316. # You can define additional provider network types here.
  317. # 'extra_provider_types': {
  318. # 'awesome_type': {
  319. # 'display_name': 'Awesome New Type',
  320. # 'require_physical_network': False,
  321. # 'require_segmentation_id': True,
  322. # }
  323. # },
  324. # Set which VNIC types are supported for port binding. Only the VNIC
  325. # types in this list will be available to choose from when creating a
  326. # port.
  327. # VNIC types include 'normal', 'direct', 'direct-physical', 'macvtap',
  328. # 'baremetal' and 'virtio-forwarder'
  329. # Set to empty list or None to disable VNIC type selection.
  330. 'supported_vnic_types': ['*'],
  331. # Set list of available physical networks to be selected in the physical
  332. # network field on the admin create network modal. If it's set to an empty
  333. # list, the field will be a regular input field.
  334. # e.g. ['default', 'test']
  335. 'physical_networks': [],
  336. }
  337. # The OPENSTACK_HEAT_STACK settings can be used to disable password
  338. # field required while launching the stack.
  339. OPENSTACK_HEAT_STACK = {
  340. 'enable_user_pass': True,
  341. }
  342. # The OPENSTACK_IMAGE_BACKEND settings can be used to customize features
  343. # in the OpenStack Dashboard related to the Image service, such as the list
  344. # of supported image formats.
  345. #OPENSTACK_IMAGE_BACKEND = {
  346. # 'image_formats': [
  347. # ('', _('Select format')),
  348. # ('aki', _('AKI - Amazon Kernel Image')),
  349. # ('ami', _('AMI - Amazon Machine Image')),
  350. # ('ari', _('ARI - Amazon Ramdisk Image')),
  351. # ('docker', _('Docker')),
  352. # ('iso', _('ISO - Optical Disk Image')),
  353. # ('ova', _('OVA - Open Virtual Appliance')),
  354. # ('qcow2', _('QCOW2 - QEMU Emulator')),
  355. # ('raw', _('Raw')),
  356. # ('vdi', _('VDI - Virtual Disk Image')),
  357. # ('vhd', _('VHD - Virtual Hard Disk')),
  358. # ('vhdx', _('VHDX - Large Virtual Hard Disk')),
  359. # ('vmdk', _('VMDK - Virtual Machine Disk')),
  360. # ],
  361. #}
  362. # The IMAGE_CUSTOM_PROPERTY_TITLES settings is used to customize the titles for
  363. # image custom property attributes that appear on image detail pages.
  364. IMAGE_CUSTOM_PROPERTY_TITLES = {
  365. "architecture": _("Architecture"),
  366. "kernel_id": _("Kernel ID"),
  367. "ramdisk_id": _("Ramdisk ID"),
  368. "image_state": _("Euca2ools state"),
  369. "project_id": _("Project ID"),
  370. "image_type": _("Image Type"),
  371. }
  372. # The IMAGE_RESERVED_CUSTOM_PROPERTIES setting is used to specify which image
  373. # custom properties should not be displayed in the Image Custom Properties
  374. # table.
  375. IMAGE_RESERVED_CUSTOM_PROPERTIES = []
  376. # Set to 'legacy' or 'direct' to allow users to upload images to glance via
  377. # Horizon server. When enabled, a file form field will appear on the create
  378. # image form. If set to 'off', there will be no file form field on the create
  379. # image form. See documentation for deployment considerations.
  380. #HORIZON_IMAGES_UPLOAD_MODE = 'legacy'
  381. # Allow a location to be set when creating or updating Glance images.
  382. # If using Glance V2, this value should be False unless the Glance
  383. # configuration and policies allow setting locations.
  384. #IMAGES_ALLOW_LOCATION = False
  385. # A dictionary of default settings for create image modal.
  386. #CREATE_IMAGE_DEFAULTS = {
  387. # 'image_visibility': "public",
  388. #}
  389. # OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints
  390. # in the Keystone service catalog. Use this setting when Horizon is running
  391. # external to the OpenStack environment. The default is 'publicURL'.
  392. #OPENSTACK_ENDPOINT_TYPE = "publicURL"
  393. # SECONDARY_ENDPOINT_TYPE specifies the fallback endpoint type to use in the
  394. # case that OPENSTACK_ENDPOINT_TYPE is not present in the endpoints
  395. # in the Keystone service catalog. Use this setting when Horizon is running
  396. # external to the OpenStack environment. The default is None. This
  397. # value should differ from OPENSTACK_ENDPOINT_TYPE if used.
  398. #SECONDARY_ENDPOINT_TYPE = None
  399. # The number of objects (Swift containers/objects or images) to display
  400. # on a single page before providing a paging element (a "more" link)
  401. # to paginate results.
  402. API_RESULT_LIMIT = 1000
  403. API_RESULT_PAGE_SIZE = 20
  404. # The size of chunk in bytes for downloading objects from Swift
  405. SWIFT_FILE_TRANSFER_CHUNK_SIZE = 512 * 1024
  406. # The default number of lines displayed for instance console log.
  407. INSTANCE_LOG_LENGTH = 35
  408. # Specify a maximum number of items to display in a dropdown.
  409. DROPDOWN_MAX_ITEMS = 30
  410. # The timezone of the server. This should correspond with the timezone
  411. # of your entire OpenStack installation, and hopefully be in UTC.
  412. TIME_ZONE = "UTC"
  413. # When launching an instance, the menu of available flavors is
  414. # sorted by RAM usage, ascending. If you would like a different sort order,
  415. # you can provide another flavor attribute as sorting key. Alternatively, you
  416. # can provide a custom callback method to use for sorting. You can also provide
  417. # a flag for reverse sort. For more info, see
  418. # http://docs.python.org/2/library/functions.html#sorted
  419. #CREATE_INSTANCE_FLAVOR_SORT = {
  420. # 'key': 'name',
  421. # # or
  422. # 'key': my_awesome_callback_method,
  423. # 'reverse': False,
  424. #}
  425. # Set this to True to display an 'Admin Password' field on the Change Password
  426. # form to verify that it is indeed the admin logged-in who wants to change
  427. # the password.
  428. #ENFORCE_PASSWORD_CHECK = False
  429. # Modules that provide /auth routes that can be used to handle different types
  430. # of user authentication. Add auth plugins that require extra route handling to
  431. # this list.
  432. #AUTHENTICATION_URLS = [
  433. # 'openstack_auth.urls',
  434. #]
  435. # The Horizon Policy Enforcement engine uses these values to load per service
  436. # policy rule files. The content of these files should match the files the
  437. # OpenStack services are using to determine role based access control in the
  438. # target installation.
  439. # Path to directory containing policy.json files
  440. #POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf")
  441. # Map of local copy of service policy files.
  442. # Please insure that your identity policy file matches the one being used on
  443. # your keystone servers. There is an alternate policy file that may be used
  444. # in the Keystone v3 multi-domain case, policy.v3cloudsample.json.
  445. # This file is not included in the Horizon repository by default but can be
  446. # found at
  447. # http://git.openstack.org/cgit/openstack/keystone/tree/etc/ \
  448. # policy.v3cloudsample.json
  449. # Having matching policy files on the Horizon and Keystone servers is essential
  450. # for normal operation. This holds true for all services and their policy files.
  451. #POLICY_FILES = {
  452. # 'identity': 'keystone_policy.json',
  453. # 'compute': 'nova_policy.json',
  454. # 'volume': 'cinder_policy.json',
  455. # 'image': 'glance_policy.json',
  456. # 'network': 'neutron_policy.json',
  457. #}
  458. # Change this patch to the appropriate list of tuples containing
  459. # a key, label and static directory containing two files:
  460. # _variables.scss and _styles.scss
  461. #AVAILABLE_THEMES = [
  462. # ('default', 'Default', 'themes/default'),
  463. # ('material', 'Material', 'themes/material'),
  464. # ('example', 'Example', 'themes/example'),
  465. #]
  466. LOGGING = {
  467. 'version': 1,
  468. # When set to True this will disable all logging except
  469. # for loggers specified in this configuration dictionary. Note that
  470. # if nothing is specified here and disable_existing_loggers is True,
  471. # django.db.backends will still log unless it is disabled explicitly.
  472. 'disable_existing_loggers': False,
  473. # If apache2 mod_wsgi is used to deploy OpenStack dashboard
  474. # timestamp is output by mod_wsgi. If WSGI framework you use does not
  475. # output timestamp for logging, add %(asctime)s in the following
  476. # format definitions.
  477. 'formatters': {
  478. 'console': {
  479. 'format': '%(levelname)s %(name)s %(message)s'
  480. },
  481. 'operation': {
  482. # The format of "%(message)s" is defined by
  483. # OPERATION_LOG_OPTIONS['format']
  484. 'format': '%(message)s'
  485. },
  486. },
  487. 'handlers': {
  488. 'null': {
  489. 'level': 'DEBUG',
  490. 'class': 'logging.NullHandler',
  491. },
  492. 'console': {
  493. # Set the level to "DEBUG" for verbose output logging.
  494. 'level': 'INFO',
  495. 'class': 'logging.StreamHandler',
  496. 'formatter': 'console',
  497. },
  498. 'operation': {
  499. 'level': 'INFO',
  500. 'class': 'logging.StreamHandler',
  501. 'formatter': 'operation',
  502. },
  503. },
  504. 'loggers': {
  505. 'horizon': {
  506. 'handlers': ['console'],
  507. 'level': 'DEBUG',
  508. 'propagate': False,
  509. },
  510. 'horizon.operation_log': {
  511. 'handlers': ['operation'],
  512. 'level': 'INFO',
  513. 'propagate': False,
  514. },
  515. 'openstack_dashboard': {
  516. 'handlers': ['console'],
  517. 'level': 'DEBUG',
  518. 'propagate': False,
  519. },
  520. 'novaclient': {
  521. 'handlers': ['console'],
  522. 'level': 'DEBUG',
  523. 'propagate': False,
  524. },
  525. 'cinderclient': {
  526. 'handlers': ['console'],
  527. 'level': 'DEBUG',
  528. 'propagate': False,
  529. },
  530. 'keystoneauth': {
  531. 'handlers': ['console'],
  532. 'level': 'DEBUG',
  533. 'propagate': False,
  534. },
  535. 'keystoneclient': {
  536. 'handlers': ['console'],
  537. 'level': 'DEBUG',
  538. 'propagate': False,
  539. },
  540. 'glanceclient': {
  541. 'handlers': ['console'],
  542. 'level': 'DEBUG',
  543. 'propagate': False,
  544. },
  545. 'neutronclient': {
  546. 'handlers': ['console'],
  547. 'level': 'DEBUG',
  548. 'propagate': False,
  549. },
  550. 'swiftclient': {
  551. 'handlers': ['console'],
  552. 'level': 'DEBUG',
  553. 'propagate': False,
  554. },
  555. 'oslo_policy': {
  556. 'handlers': ['console'],
  557. 'level': 'DEBUG',
  558. 'propagate': False,
  559. },
  560. 'openstack_auth': {
  561. 'handlers': ['console'],
  562. 'level': 'DEBUG',
  563. 'propagate': False,
  564. },
  565. 'django': {
  566. 'handlers': ['console'],
  567. 'level': 'DEBUG',
  568. 'propagate': False,
  569. },
  570. # Logging from django.db.backends is VERY verbose, send to null
  571. # by default.
  572. 'django.db.backends': {
  573. 'handlers': ['null'],
  574. 'propagate': False,
  575. },
  576. 'requests': {
  577. 'handlers': ['null'],
  578. 'propagate': False,
  579. },
  580. 'urllib3': {
  581. 'handlers': ['null'],
  582. 'propagate': False,
  583. },
  584. 'chardet.charsetprober': {
  585. 'handlers': ['null'],
  586. 'propagate': False,
  587. },
  588. 'iso8601': {
  589. 'handlers': ['null'],
  590. 'propagate': False,
  591. },
  592. 'scss': {
  593. 'handlers': ['null'],
  594. 'propagate': False,
  595. },
  596. },
  597. }
  598. # 'direction' should not be specified for all_tcp/udp/icmp.
  599. # It is specified in the form.
  600. SECURITY_GROUP_RULES = {
  601. 'all_tcp': {
  602. 'name': _('All TCP'),
  603. 'ip_protocol': 'tcp',
  604. 'from_port': '1',
  605. 'to_port': '65535',
  606. },
  607. 'all_udp': {
  608. 'name': _('All UDP'),
  609. 'ip_protocol': 'udp',
  610. 'from_port': '1',
  611. 'to_port': '65535',
  612. },
  613. 'all_icmp': {
  614. 'name': _('All ICMP'),
  615. 'ip_protocol': 'icmp',
  616. 'from_port': '-1',
  617. 'to_port': '-1',
  618. },
  619. 'ssh': {
  620. 'name': 'SSH',
  621. 'ip_protocol': 'tcp',
  622. 'from_port': '22',
  623. 'to_port': '22',
  624. },
  625. 'smtp': {
  626. 'name': 'SMTP',
  627. 'ip_protocol': 'tcp',
  628. 'from_port': '25',
  629. 'to_port': '25',
  630. },
  631. 'dns': {
  632. 'name': 'DNS',
  633. 'ip_protocol': 'tcp',
  634. 'from_port': '53',
  635. 'to_port': '53',
  636. },
  637. 'http': {
  638. 'name': 'HTTP',
  639. 'ip_protocol': 'tcp',
  640. 'from_port': '80',
  641. 'to_port': '80',
  642. },
  643. 'pop3': {
  644. 'name': 'POP3',
  645. 'ip_protocol': 'tcp',
  646. 'from_port': '110',
  647. 'to_port': '110',
  648. },
  649. 'imap': {
  650. 'name': 'IMAP',
  651. 'ip_protocol': 'tcp',
  652. 'from_port': '143',
  653. 'to_port': '143',
  654. },
  655. 'ldap': {
  656. 'name': 'LDAP',
  657. 'ip_protocol': 'tcp',
  658. 'from_port': '389',
  659. 'to_port': '389',
  660. },
  661. 'https': {
  662. 'name': 'HTTPS',
  663. 'ip_protocol': 'tcp',
  664. 'from_port': '443',
  665. 'to_port': '443',
  666. },
  667. 'smtps': {
  668. 'name': 'SMTPS',
  669. 'ip_protocol': 'tcp',
  670. 'from_port': '465',
  671. 'to_port': '465',
  672. },
  673. 'imaps': {
  674. 'name': 'IMAPS',
  675. 'ip_protocol': 'tcp',
  676. 'from_port': '993',
  677. 'to_port': '993',
  678. },
  679. 'pop3s': {
  680. 'name': 'POP3S',
  681. 'ip_protocol': 'tcp',
  682. 'from_port': '995',
  683. 'to_port': '995',
  684. },
  685. 'ms_sql': {
  686. 'name': 'MS SQL',
  687. 'ip_protocol': 'tcp',
  688. 'from_port': '1433',
  689. 'to_port': '1433',
  690. },
  691. 'mysql': {
  692. 'name': 'MYSQL',
  693. 'ip_protocol': 'tcp',
  694. 'from_port': '3306',
  695. 'to_port': '3306',
  696. },
  697. 'rdp': {
  698. 'name': 'RDP',
  699. 'ip_protocol': 'tcp',
  700. 'from_port': '3389',
  701. 'to_port': '3389',
  702. },
  703. }
  704. # Deprecation Notice:
  705. #
  706. # The setting FLAVOR_EXTRA_KEYS has been deprecated.
  707. # Please load extra spec metadata into the Glance Metadata Definition Catalog.
  708. #
  709. # The sample quota definitions can be found in:
  710. # <glance_source>/etc/metadefs/compute-quota.json
  711. #
  712. # The metadata definition catalog supports CLI and API:
  713. # $glance --os-image-api-version 2 help md-namespace-import
  714. # $glance-manage db_load_metadefs <directory_with_definition_files>
  715. #
  716. # See Metadata Definitions on:
  717. # https://docs.openstack.org/glance/latest/user/glancemetadefcatalogapi.html
  718. # AngularJS requires some settings to be made available to
  719. # the client side. Some settings are required by in-tree / built-in horizon
  720. # features. These settings must be added to REST_API_REQUIRED_SETTINGS in the
  721. # form of ['SETTING_1','SETTING_2'], etc.
  722. #
  723. # You may remove settings from this list for security purposes, but do so at
  724. # the risk of breaking a built-in horizon feature. These settings are required
  725. # for horizon to function properly. Only remove them if you know what you
  726. # are doing. These settings may in the future be moved to be defined within
  727. # the enabled panel configuration.
  728. # You should not add settings to this list for out of tree extensions.
  729. # See: https://wiki.openstack.org/wiki/Horizon/RESTAPI
  730. REST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES',
  731. 'LAUNCH_INSTANCE_DEFAULTS',
  732. 'OPENSTACK_IMAGE_FORMATS',
  733. 'OPENSTACK_KEYSTONE_BACKEND',
  734. 'OPENSTACK_KEYSTONE_DEFAULT_DOMAIN',
  735. 'CREATE_IMAGE_DEFAULTS',
  736. 'ENFORCE_PASSWORD_CHECK']
  737. # Additional settings can be made available to the client side for
  738. # extensibility by specifying them in REST_API_ADDITIONAL_SETTINGS
  739. # !! Please use extreme caution as the settings are transferred via HTTP/S
  740. # and are not encrypted on the browser. This is an experimental API and
  741. # may be deprecated in the future without notice.
  742. #REST_API_ADDITIONAL_SETTINGS = []
  743. # DISALLOW_IFRAME_EMBED can be used to prevent Horizon from being embedded
  744. # within an iframe. Legacy browsers are still vulnerable to a Cross-Frame
  745. # Scripting (XFS) vulnerability, so this option allows extra security hardening
  746. # where iframes are not used in deployment. Default setting is True.
  747. # For more information see:
  748. # http://tinyurl.com/anticlickjack
  749. #DISALLOW_IFRAME_EMBED = True
  750. # Help URL can be made available for the client. To provide a help URL, edit the
  751. # following attribute to the URL of your choice.
  752. #HORIZON_CONFIG["help_url"] = "http://openstack.mycompany.org"
  753. # Settings for OperationLogMiddleware
  754. # OPERATION_LOG_ENABLED is flag to use the function to log an operation on
  755. # Horizon.
  756. # mask_targets is arrangement for appointing a target to mask.
  757. # method_targets is arrangement of HTTP method to output log.
  758. # format is the log contents.
  759. #OPERATION_LOG_ENABLED = False
  760. #OPERATION_LOG_OPTIONS = {
  761. # 'mask_fields': ['password'],
  762. # 'target_methods': ['POST'],
  763. # 'ignored_urls': ['/js/', '/static/', '^/api/'],
  764. # 'format': ("[%(client_ip)s] [%(domain_name)s]"
  765. # " [%(domain_id)s] [%(project_name)s]"
  766. # " [%(project_id)s] [%(user_name)s] [%(user_id)s] [%(request_scheme)s]"
  767. # " [%(referer_url)s] [%(request_url)s] [%(message)s] [%(method)s]"
  768. # " [%(http_status)s] [%(param)s]"),
  769. #}
  770. # The default date range in the Overview panel meters - either <today> minus N
  771. # days (if the value is integer N), or from the beginning of the current month
  772. # until today (if set to None). This setting should be used to limit the amount
  773. # of data fetched by default when rendering the Overview panel.
  774. #OVERVIEW_DAYS_RANGE = 1
  775. # To allow operators to require users provide a search criteria first
  776. # before loading any data into the views, set the following dict
  777. # attributes to True in each one of the panels you want to enable this feature.
  778. # Follow the convention <dashboard>.<view>
  779. #FILTER_DATA_FIRST = {
  780. # 'admin.instances': False,
  781. # 'admin.images': False,
  782. # 'admin.networks': False,
  783. # 'admin.routers': False,
  784. # 'admin.volumes': False,
  785. # 'identity.users': False,
  786. # 'identity.projects': False,
  787. # 'identity.groups': False,
  788. # 'identity.roles': False
  789. #}
  790. # Dict used to restrict user private subnet cidr range.
  791. # An empty list means that user input will not be restricted
  792. # for a corresponding IP version. By default, there is
  793. # no restriction for IPv4 or IPv6. To restrict
  794. # user private subnet cidr range set ALLOWED_PRIVATE_SUBNET_CIDR
  795. # to something like
  796. #ALLOWED_PRIVATE_SUBNET_CIDR = {
  797. # 'ipv4': ['10.0.0.0/8', '192.168.0.0/16'],
  798. # 'ipv6': ['fc00::/7']
  799. #}
  800. ALLOWED_PRIVATE_SUBNET_CIDR = {'ipv4': [], 'ipv6': []}
  801. # Projects and users can have extra attributes as defined by keystone v3.
  802. # Horizon has the ability to display these extra attributes via this setting.
  803. # If you'd like to display extra data in the project or user tables, set the
  804. # corresponding dict key to the attribute name, followed by the display name.
  805. # For more information, see horizon's customization
  806. # (https://docs.openstack.org/horizon/latest/configuration/customizing.html#horizon-customization-module-overrides)
  807. #PROJECT_TABLE_EXTRA_INFO = {
  808. # 'phone_num': _('Phone Number'),
  809. #}
  810. #USER_TABLE_EXTRA_INFO = {
  811. # 'phone_num': _('Phone Number'),
  812. #}
  813. # Password will have an expiration date when using keystone v3 and enabling the
  814. # feature.
  815. # This setting allows you to set the number of days that the user will be alerted
  816. # prior to the password expiration.
  817. # Once the password expires keystone will deny the access and users must
  818. # contact an admin to change their password.
  819. #PASSWORD_EXPIRES_WARNING_THRESHOLD_DAYS = 0