|
|
楼主 |
发表于 2022-7-16 07:53:11
|
显示全部楼层
# -*- coding: utf-8 -*-4 C7 _8 @9 E9 r
import os
& A1 @; a) e0 C, t1 y i* z- Efrom django.utils.translation import ugettext_lazy as _8 q; ]% b& Q8 a) s0 `- r8 y* b
from openstack_dashboard import exceptions0 X) C- R# }) d n. a3 K8 u
from openstack_dashboard.settings import HORIZON_CONFIG3 i) p& T( ?* h' N( m
DEBUG = False
0 ^6 [. x, e# w) r( C0 g. ~: pTEMPLATE_DEBUG = DEBUG
, A% E' O, G5 B1 j. Y' Z* ]* q3 @COMPRESS_OFFLINE = True2 r: r$ W- k$ {; w' ]2 j
# WEBROOT is the location relative to Webserver root" {; Y: g; J* l4 N- c( h4 Y8 H
# should end with a slash.
! t* o7 P ]. ~, z6 L7 a& eWEBROOT = '/'
4 s" c0 r, x3 [7 d7 m/ K- S#LOGIN_URL = WEBROOT + 'auth/login/'
7 t. f& ]! X7 D# o4 z9 G; y#LOGOUT_URL = WEBROOT + 'auth/logout/'9 |' m* B" g" h8 t* B
#
0 [* `- ]; `! w; B7 Y# LOGIN_REDIRECT_URL can be used as an alternative for
; Q" H8 {& }6 ~% [" M! @# HORIZON_CONFIG.user_home, if user_home is not set.0 O6 x2 q; v6 \* S! k% O5 s+ ^ m5 }
# Do not set it to '/home/', as this will cause circular redirect loop
3 A/ ^3 I5 t" u) ^/ t; f: [#LOGIN_REDIRECT_URL = WEBROOT! \. x5 G& c3 E4 ]& C- S) _% U
# If horizon is running in production (DEBUG is False), set this
' k0 y I& b5 Q' ~& e( K# with the list of host/domain names that the application can serve.
2 U1 K4 a4 ^ F1 s$ G# For more information see:/ [ f+ w u7 I& y% I
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
/ j" X/ Z1 a* lALLOWED_HOSTS = ['*']
8 s; v2 u, ^& J/ H
+ c$ l' J8 Q: @# Set SSL proxy settings:
( t4 z& c, V; K- d# Pass this header from the proxy after terminating the SSL,
5 V9 ]/ p1 o3 Q% v# and don't forget to strip it from the client's request.: L% F8 n `+ D1 T! Y" {! I
# For more information see:
1 H# o, c: j! _0 B$ C; \# https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
" S! [; ^9 r$ x: s9 T2 }#SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
) c3 v6 L+ f: S/ {$ N/ C9 O3 r% p+ V# If Horizon is being served through SSL, then uncomment the following two2 ]' o. Z& K3 e3 ^5 T9 E J
# settings to better secure the cookies from security exploits
; ~2 u" W1 A& M! p#CSRF_COOKIE_SECURE = True
" {0 @, n; z( [1 h0 ?# o) M! U#SESSION_COOKIE_SECURE = True
3 X S9 o W& }- R/ x v/ l* w
" X7 H* H+ u4 B2 `( r- c8 i, O# The absolute path to the directory where message files are collected.- }; ^# @" G$ C" ^: D' M+ r5 E. Z
# The message file must have a .json file extension. When the user logins to
5 X6 R6 x1 \! P0 K# horizon, the message files collected are processed and displayed to the user.
( V+ `" z5 v: a: d#MESSAGES_PATH=None5 u7 ]# o1 v* Z: r6 P2 E9 T
# Overrides for OpenStack API versions. Use this setting to force the
/ `% S a: ]3 @# M# OpenStack dashboard to use a specific API version for a given service API.# ?% @6 [& Q1 q$ X
# Versions specified here should be integers or floats, not strings.) N1 i* j- ~0 q1 V, ]
# NOTE: The version should be formatted as it appears in the URL for the
. V1 j+ a- m, A2 T2 Q8 T# service API. For example, The identity service APIs have inconsistent
. v/ J, J+ Y6 V) }/ S: ]3 W" U# use of the decimal point, so valid options would be 2.0 or 3.
6 l) w0 U, p1 r' y9 Q7 _& i# Minimum compute version to get the instance locked status is 2.9.9 B( r$ P* w8 p+ E& \* O) q
#OPENSTACK_API_VERSIONS = {
1 ~8 ~( W7 }, H8 Q! {. y) \4 F* w# "data-processing": 1.1,3 Q% T: E7 c+ _( N7 O
# "identity": 3,5 u& a# ^+ I5 f* H
# "volume": 2,
2 u9 x1 j" ]& {! `# "compute": 2,* q" ?1 A; Q/ q) _# ~7 F; }- Y
#}
- n% h: P1 W* W7 i2 e) K3 fOPENSTACK_API_VERSIONS = {
) s$ h. J9 w! j5 a7 L4 [+ s "identity": 3,! q* i0 I! F: L6 x
}! n/ i. J+ u* I8 X- a! S5 N! l
# Set this to True if running on a multi-domain model. When this is enabled, it9 B# a" a( d* y! F; g6 r1 M
# will require the user to enter the Domain name in addition to the username
5 z4 c" c1 w5 y) A; a+ Z# for login.6 K( P/ U) J; a" a U
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False) Z8 h( E7 o6 i- l
# Set this to True if you want available domains displayed as a dropdown menu% ?6 G, [9 `. @. [
# on the login screen. It is strongly advised NOT to enable this for public
5 U, T0 s, _# }) D7 s# clouds, as advertising enabled domains to unauthenticated customers, T) h4 S2 Z) {$ v- H3 D0 _2 u% ~
# irresponsibly exposes private information. This should only be used for& |! d+ q5 n% a; y* X: B. J+ o
# private clouds where the dashboard sits behind a corporate firewall.# z4 D% U5 t/ C0 u+ |( W2 U
OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN = False; c6 t' b! Q2 `6 q7 Q# j2 Z
# If OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN is enabled, this option can be used to
" y6 J, ^4 M+ P( M' M3 T5 G# set the available domains to choose from. This is a list of pairs whose first) @$ M: f+ j9 u _. e* S$ n
# value is the domain name and the second is the display name.: R5 Y$ X9 }- s0 I
OPENSTACK_KEYSTONE_DOMAIN_CHOICES = (
1 Q* }% `; g u; m2 E' E4 n ('Default', 'default'),
4 {5 x) | h. T! ]% E. D! d v)
; g2 E" e; w" j( i# Overrides the default domain used when running on single-domain model
9 ]3 |1 r: Y5 K# with Keystone V3. All entities will be created in the default domain., h( z" B3 F4 n* G% A
# NOTE: This value must be the ID of the default domain, NOT the name.
. Z* G q* y7 z8 l0 T5 i# Also, you will most likely have a value in the keystone policy file like this8 }7 d9 S; ` }
# "cloud_admin": "rule:admin_required and domain_id:<your domain id>"% K6 F, |; k5 M3 \+ m
# This value must match the domain id specified there.
+ ^; M& f" r/ Y. u/ _4 @#OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'default'
) X2 U9 U8 A7 }+ n: C# Set this to True to enable panels that provide the ability for users to
4 e, C# W6 g8 Y7 S# manage Identity Providers (IdPs) and establish a set of rules to map
5 c6 |1 D2 Q) V4 a) D% a# federation protocol attributes to Identity API attributes.
3 H& K& `) A0 o& q v' n5 i# This extension requires v3.0+ of the Identity API.! R; w" e& s- L$ x; V9 ]
#OPENSTACK_KEYSTONE_FEDERATION_MANAGEMENT = False% K0 x* r/ c/ }, |9 ?1 q
# Set Console type:) }. z9 I/ F8 s( v r
# valid options are "AUTO"(default), "VNC", "SPICE", "RDP", "SERIAL" or None
0 a4 u. Y# D* y/ K' Y1 a# Set to None explicitly if you want to deactivate the console.
+ j% S' Y# i/ Z R#CONSOLE_TYPE = "AUTO"7 K: T+ G7 y5 L% C5 f
# If provided, a "Report Bug" link will be displayed in the site header
! W: s6 [1 k7 |" g# E# which links to the value of this setting (ideally a URL containing
, P% I, b2 I; \3 {# information on how to report issues).6 _! M3 ]) E: m$ E) T. {: y
#HORIZON_CONFIG["bug_url"] = "http://bug-report.example.com"4 C0 V8 W% {& S
# Show backdrop element outside the modal, do not close the modal7 _$ X8 k! t4 L; k9 }% e
# after clicking on backdrop.
9 B) @$ r4 z$ C+ N#HORIZON_CONFIG["modal_backdrop"] = "static"$ B& W, F# A% o; `7 @; n2 Q( h
# Specify a regular expression to validate user passwords.4 B$ X& _- p, G4 I' R
#HORIZON_CONFIG["password_validator"] = {2 T/ V1 L* l% h# c
# "regex": '.*',7 ?* y: ]3 ?5 d' l; a: h
# "help_text": _("Your password does not meet the requirements."),
" g7 V! a- ~& u5 E5 C: ]6 ]( i! P4 b6 n" H#}; E" ^# E! M' ^. q
# Disable simplified floating IP address management for deployments with
6 L' x! A- g, O% g: S# multiple floating IP pools or complex network requirements.
) i4 `. p5 x: |- T" I#HORIZON_CONFIG["simple_ip_management"] = False3 d3 S) q) D" ^6 ^$ d
# Turn off browser autocompletion for forms including the login form and7 e7 X# w" A8 p# V% e
# the database creation workflow if so desired.; E: U9 o' R# Z7 _$ n* [6 X
#HORIZON_CONFIG["password_autocomplete"] = "off"- a1 w/ Y5 f; j9 O) `2 q: \1 S/ _
# Setting this to True will disable the reveal button for password fields,
$ |5 w) i+ i; x5 ^& n" g# including on the login form.4 ~/ L/ p6 ~9 s9 `, T4 @
#HORIZON_CONFIG["disable_password_reveal"] = False. t1 y! H1 [) l, U' O X
LOCAL_PATH = '/tmp'- W5 l( a" |9 t4 a- J
# Set custom secret key:
' j' n9 E9 U+ w# w! ]+ D' _# You can either set it to a specific value or you can let horizon generate a# b4 j$ m3 Y3 j- s1 }! w8 O
# default secret key that is unique on this machine, e.i. regardless of the
& e' B* r6 a" J* Q# amount of Python WSGI workers (if used behind Apache+mod_wsgi): However,
6 P3 ?: Y' D9 G. N# there may be situations where you would want to set this explicitly, e.g.
3 ]( C( O8 b! h8 k, L3 ^% A# when multiple dashboard instances are distributed on different machines3 j! V- W) v5 }: D* p- F3 J
# (usually behind a load-balancer). Either you have to make sure that a session
& U7 L+ e. v. |$ }# gets all requests routed to the same dashboard instance or you set the same( c& y I1 ^& \+ j/ T" f
# SECRET_KEY for all of them.
9 k9 R0 p) c1 W$ ]* wSECRET_KEY='RyLdZs4KeJ5z3TX48mk5biZLwlE1kzkFfbAKb9ma'
8 x L( C1 t1 `( b; S! U+ a8 Y7 R: B# We recommend you use memcached for development; otherwise after every reload0 H/ N; s4 g* [* A# R
# of the django development server, you will have to login again. To use
& O$ F3 N" x+ T, a' q4 M1 x7 {# memcached set CACHES to something like2 m3 `; l6 ~- w4 M5 i+ j* K
#CACHES = {6 ?3 v- o1 U$ a$ H3 H5 ]4 [" P
# 'default': {
+ w2 q" N4 q, y; ?( G! d$ a# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
7 {) D5 u# x' f# 'LOCATION': '127.0.0.1:11211',
+ Q; n( `& ^% C" S0 D6 J# },
* N$ c/ r: q) f) B" s#}; I v& M1 {: h1 R! S% {+ J w
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
" S3 Y5 u* p9 B% f1 h1 F# VCACHES = {
y! r( j' Q6 P( i/ K2 k 'default': {
n/ g) W) U8 [ 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',$ {5 _: e+ l3 d1 A$ b/ @
'LOCATION': ['10.144.106.6:11211','10.144.106.7:11211','10.144.106.8:11211']
- A7 M+ P* X$ J+ \' [3 S/ { } _0 S3 O% u0 ~* R/ M3 U+ d7 A5 [
}, a% t( z0 V0 T/ e& I$ A7 I
# Send email to the console by default
, g$ N M: D. O& u0 q* \5 ~EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'" \! u3 H8 P& p% b+ l5 c
# Or send them to /dev/null
9 U6 O9 @: J5 n5 _+ {8 `, b#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
& |' h& q4 b$ Q- S0 o6 a# Configure these for your outgoing email host
0 o6 X+ C$ w# c. P2 H$ i5 e#EMAIL_HOST = 'smtp.my-company.com'8 T7 p" |# h' V# r
#EMAIL_PORT = 25
9 ^9 M' m3 m+ I#EMAIL_HOST_USER = 'djangomail'! S+ t; s% U, Z# c U* A
#EMAIL_HOST_PASSWORD = 'top-secret!'. E6 L+ f2 z: l, ?0 H3 P0 @1 J
& `7 C- q- T4 R( t. eOPENSTACK_HOST = "10.144.106.253"
) c1 S7 Y) |* kOPENSTACK_KEYSTONE_URL = "http://10.144.106.253:5000"( x' _- H) S$ w5 U
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"$ g- w* z4 N& {( j) H
# Enables keystone web single-sign-on if set to True.
+ v- c* m4 `9 c$ {. C#WEBSSO_ENABLED = False
: X& E. f1 c3 u4 ^8 i0 y1 E! S" R, v- Z1 z# Determines which authentication choice to show as default.0 m: i. \ U1 f! s/ R
#WEBSSO_INITIAL_CHOICE = "credentials"
0 M2 D! u7 |* L. h U! M2 C! |. X# The list of authentication mechanisms which include keystone
: T/ s6 V+ }/ o1 o% D# federation protocols and identity provider/federation protocol
: |6 k3 ~' z# r6 H4 z# K# mapping keys (WEBSSO_IDP_MAPPING). Current supported protocol, v9 F- D7 o. N$ L5 ?
# IDs are 'saml2' and 'oidc' which represent SAML 2.0, OpenID; L3 a5 K: o, ], Q. N
# Connect respectively.
' n; R' t8 Z$ V& Q0 \( @# Do not remove the mandatory credentials mechanism.+ C4 \# }3 ^2 _. f. V
# Note: The last two tuples are sample mapping keys to a identity provider' p+ s7 {9 I" {$ T5 D1 L& ]7 M
# and federation protocol combination (WEBSSO_IDP_MAPPING). V8 D9 D' d; Z1 j1 W
#WEBSSO_CHOICES = (
+ [/ A) `+ V9 [! v/ L# ("credentials", _("Keystone Credentials")),
+ e3 ^' M, u1 g) L6 C# ("oidc", _("OpenID Connect")),8 ^. `/ f1 {2 Z- A% b, s2 b
# ("saml2", _("Security Assertion Markup Language")),
& I5 `: r0 j6 k7 z9 b; p# ("acme_oidc", "ACME - OpenID Connect"),+ ^9 u; _0 S, I6 Q% P0 L
# ("acme_saml2", "ACME - SAML2"),: Q5 b9 y; u" x! X
#)
/ f6 n9 f& Y+ A7 ~2 o# A dictionary of specific identity provider and federation protocol0 Q+ U* H- r2 B8 x; q
# combinations. From the selected authentication mechanism, the value4 u+ o6 r. _% |' G: t9 P d
# will be looked up as keys in the dictionary. If a match is found,
' l, f3 T2 L7 K& |! K# it will redirect the user to a identity provider and federation protocol# H) m1 }" U c. k
# specific WebSSO endpoint in keystone, otherwise it will use the value
, ~# G7 [, P& c# as the protocol_id when redirecting to the WebSSO by protocol endpoint.- K% r! C4 t) `1 M1 N* P
# NOTE: The value is expected to be a tuple formatted as: (<idp_id>, <protocol_id>).) m9 `/ A! t; o8 ?* n) e5 |
#WEBSSO_IDP_MAPPING = {
' k7 a( C. y8 L# D# "acme_oidc": ("acme", "oidc"),) p, s9 S2 q5 W) t8 n! c7 ]+ F: z# z
# "acme_saml2": ("acme", "saml2"),
- {# ]+ }+ X7 [/ `3 G, ~#}$ w; }7 |9 P4 M; C9 L1 w" ~; D; r. d
# Disable SSL certificate checks (useful for self-signed certificates):+ Z% @/ T. P' l* v* A9 A+ P# _
#OPENSTACK_SSL_NO_VERIFY = True* E N2 g3 u# t1 Z( R( w7 N
# The CA certificate to use to verify SSL connections# P: O7 H. b; o5 N) B$ Z3 K
#OPENSTACK_SSL_CACERT = '/path/to/cacert.pem'& }' g9 i( W/ \/ ` P! L* m9 V
# The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the
+ s4 N8 d: \( I: o! o# capabilities of the auth backend for Keystone.; v. B$ M2 ^3 _! l( c6 G- [) S
# If Keystone has been configured to use LDAP as the auth backend then set- Y5 R# u# `7 Z& h3 s! }) e
# can_edit_user to False and name to 'ldap'.
$ _$ }, {% x. r& ^#. e# l( j. z0 w4 E/ k& T" T" d
# TODO(tres): Remove these once Keystone has an API to identify auth backend.( I3 t; f. ^7 \3 A- G( m9 a
OPENSTACK_KEYSTONE_BACKEND = {2 ?+ R* m" B; D y2 l3 b# @2 x
'name': 'native',+ G5 {/ }! t% v3 ]' v* ^; U2 A. e
'can_edit_user': True,
* r% Z. u R& y/ R$ D, ] 'can_edit_group': True,
! b, M: a* Q1 H5 Z* A 'can_edit_project': True,7 n( q6 H# N. _$ _3 D
'can_edit_domain': True,% s9 X( z" q6 }/ \0 k
'can_edit_role': True,
* \; w2 B3 U+ B& h}
, T5 |/ S0 A6 p2 }2 J9 B7 j# Setting this to True, will add a new "Retrieve Password" action on instance,; Q: I- M# n- L, ^. Y
# allowing Admin session password retrieval/decryption.) a3 O6 _5 T( }. c
#OPENSTACK_ENABLE_PASSWORD_RETRIEVE = False/ V3 F; p: w) F1 O) w
# The Launch Instance user experience has been significantly enhanced.' m/ }3 _0 g+ s1 e# H9 w2 N
# You can choose whether to enable the new launch instance experience,- _% F U+ [$ U8 [1 c; r9 t
# the legacy experience, or both. The legacy experience will be removed
" `5 o* h7 u) h$ a1 y3 X# in a future release, but is available as a temporary backup setting to ensure
' _& T& A7 }# |: d/ q) N. K# compatibility with existing deployments. Further development will not be. P9 [6 O9 h# L9 ~* d6 l
# done on the legacy experience. Please report any problems with the new
0 R* \* E% I4 d' g8 `# experience via the Launchpad tracking system.
2 R0 P$ e; b, h: n6 W/ g, u2 H#/ ^9 d, U! n! ]) ^
# Toggle LAUNCH_INSTANCE_LEGACY_ENABLED and LAUNCH_INSTANCE_NG_ENABLED to
( H7 N+ ]7 @% `! [, p# determine the experience to enable. Set them both to true to enable
7 ?# i' V" r' ]6 C( H% x' Z8 }# both.: `( R4 u; t% M/ x; c j
#LAUNCH_INSTANCE_LEGACY_ENABLED = True; R' E' h# W) K& f
#LAUNCH_INSTANCE_NG_ENABLED = False- H" E' a3 t0 w3 ]# p6 [7 \- i8 V
# A dictionary of settings which can be used to provide the default values for
# ` M/ v- A0 g L) t# properties found in the Launch Instance modal./ I7 Y+ v2 P, K
#LAUNCH_INSTANCE_DEFAULTS = {
; B* ~- i: C! W9 e+ r. V6 f8 y# 'config_drive': False,
) d' f- M2 m( {9 L2 y, `# 'enable_scheduler_hints': True1 Q3 R& ] h' J A
#}
# }' y: V q4 F4 n b- ~# The Xen Hypervisor has the ability to set the mount point for volumes
& {- `0 }: p( S/ Z& h2 E" d# attached to instances (other Hypervisors currently do not). Setting4 w9 P& s- V1 F' z
# can_set_mount_point to True will add the option to set the mount point
0 i2 i' F1 s8 Y: d8 p. s5 t# from the UI.' w: Y: f5 `7 Q" f
OPENSTACK_HYPERVISOR_FEATURES = {
7 O% r1 |4 u" Z' r6 c. S$ O 'can_set_mount_point': False,
* R8 E3 E% k5 C8 V! ? 'can_set_password': False,
3 ]9 {0 o: q9 N, i1 i 'requires_keypair': False,
n) @5 O, g; x4 O8 X* @; P4 k 'enable_quotas': True+ D2 l }: f, c) P# Y
}' B8 S& z" S5 J% g% P) ^0 g) a3 d
# The OPENSTACK_CINDER_FEATURES settings can be used to enable optional
5 P; H' p U" J$ X- C# services provided by cinder that is not exposed by its extension API.3 o7 v! @1 z+ `) e$ S
OPENSTACK_CINDER_FEATURES = {/ ?' m0 B& m X. y) j3 L; p* w
'enable_backup': True,/ C$ G2 B8 E& }% I/ F
}3 P6 A, Y- m: H; Y. R* {9 @
# The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional* j4 e8 c' D( \# F2 x/ N; C
# services provided by neutron. Options currently available are load! [; t4 h( H R" C) J) c6 n
# balancer service, security groups, quotas, VPN service.+ B2 X3 t+ X/ X/ P; H' j: l e
OPENSTACK_NEUTRON_NETWORK = {
8 k8 [0 n" k( H 'enable_router': True,
, G: H& n# K+ W+ Q# B/ r( I 'enable_quotas': True,
7 w4 R4 K2 y h& R 'enable_ipv6': True,
6 w8 G9 Q4 c+ O3 d7 Q* `" o# S, o 'enable_distributed_router': False,
" b8 l0 ~6 D' B& V/ P- I r 'enable_ha_router': False,* Y* A5 ~3 ?6 m: o
'enable_lb': True,
& A3 z. E; J' Z/ n, l" e9 F 'enable_firewall': True,; @- `* V! u: `. \
'enable_vpn': True,
( l$ I9 ?: u6 N4 C) n* X 'enable_fip_topology_check': True,
% h) e% p: ?8 L2 p9 `) a; X. m2 L8 S {1 f # Default dns servers you would like to use when a subnet is
3 N" G8 g; t+ g% W3 \! ]2 ^& e9 g # created. This is only a default, users can still choose a different$ _# u! _- C( \* H {# C! U4 y" Y/ u
# list of dns servers when creating a new subnet.7 r- P& O1 Q& m
# The entries below are examples only, and are not appropriate for
4 e& P- q" |, z # real deployments
9 P. ?' p; E" b8 W0 a/ V # 'default_dns_nameservers': ["8.8.8.8", "8.8.4.4", "208.67.222.222"],0 t* j! h( x4 ? N6 c( U1 l( K
# The profile_support option is used to detect if an external router can be" S1 `. _* m. a% f
# configured via the dashboard. When using specific plugins the" ^/ Y( W$ ]$ ?! B
# profile_support can be turned on if needed.$ Y2 w0 P7 z0 K# m* T. k8 h7 H
'profile_support': None,
]* k& O D: v; n #'profile_support': 'cisco',
- c( P% i S' d2 B # Set which provider network types are supported. Only the network types3 u# C8 s5 U! H5 L* y% l! t t
# in this list will be available to choose from when creating a network.5 w4 m( }# T1 T2 w& M" o9 N
# Network types include local, flat, vlan, gre, vxlan and geneve.
: H! Z0 l6 \) n3 ^0 r # 'supported_provider_types': ['*'],, G0 i$ P% V, j/ H0 V2 C8 w2 E! n9 [
# You can configure available segmentation ID range per network type7 F1 m; l9 |9 ?3 I, r
# in your deployment.; V2 n* i- s8 {7 K' c# j' I
# 'segmentation_id_range': {
8 L2 j) u3 q% u3 n7 e- ~4 t2 U # 'vlan': [1024, 2048],
! B( G/ G% c5 s/ _, a1 V- T7 R # 'vxlan': [4094, 65536],, ?6 M# l/ _, I" h P
# },
0 q2 R3 b- I; F9 K0 z # You can define additional provider network types here.
) ]6 A5 c) Q e1 ~0 P # 'extra_provider_types': {+ q( x/ x4 V* F7 ]! Y, G- Z
# 'awesome_type': {: S9 _8 c. @" U* H) c/ v' O
# 'display_name': 'Awesome New Type',+ ~/ o; T9 U+ b: N
# 'require_physical_network': False,
: K f+ a W* k # 'require_segmentation_id': True,- W9 C& A& T8 p) Z, w# g
# }
9 O/ ]3 L, ^# U. O! {( \8 s # },
6 _" Z( b) r2 D) w' f8 a: X# H1 T # Set which VNIC types are supported for port binding. Only the VNIC3 E! Z8 s) c; a+ j) X6 \- H
# types in this list will be available to choose from when creating a! l: T6 K+ _* |, X8 ^" M
# port.
8 z0 [% [4 R& ]& ` # VNIC types include 'normal', 'macvtap' and 'direct'.
- t2 G- E* Z6 A& s, G' O' z. b- m # Set to empty list or None to disable VNIC type selection.
( r+ |( s8 |) P( w6 N4 F' o& i 'supported_vnic_types': ['*'],
6 ]& G# `( C) M8 m: I' K}1 Y c3 ~7 Z/ T, r+ ]- {- e0 I
# The OPENSTACK_HEAT_STACK settings can be used to disable password) `& H0 }3 Q6 q0 G; U% y* G' g
# field required while launching the stack.+ M8 w0 P+ K# U! u
OPENSTACK_HEAT_STACK = {# U0 L) k; I& G/ v& x; i
'enable_user_pass': True,
- a8 w% W( d/ [: d}$ c$ D$ ^) X' L) E! C8 i2 B/ ?
# The OPENSTACK_IMAGE_BACKEND settings can be used to customize features
8 y9 V2 ~8 z* a3 Z- y( H( L; R# in the OpenStack Dashboard related to the Image service, such as the list4 _5 G6 u# ^4 e8 n
# of supported image formats.
. Z6 C$ t6 F- P* O5 C( H% s#OPENSTACK_IMAGE_BACKEND = {& A+ a" m; o. _% i6 L% E `- t
# 'image_formats': [
1 y2 B6 G0 W4 K: Q2 F9 E. j7 I2 [/ @# ('', _('Select format')),
7 j/ P3 d% J" x% l# ('aki', _('AKI - Amazon Kernel Image')),( c- o6 D5 [3 v' @2 Q0 ~! m
# ('ami', _('AMI - Amazon Machine Image')),3 ?. R* s7 k) T6 y5 O( o
# ('ari', _('ARI - Amazon Ramdisk Image')),
, s% `* {+ t1 L+ f/ v# ('docker', _('Docker')),9 ~: Z Y+ D: h. e+ n
# ('iso', _('ISO - Optical Disk Image')),
9 z, i# P* [2 g2 t' e: i# ('ova', _('OVA - Open Virtual Appliance')),$ S- W( l, J/ Y0 V- @5 P& N
# ('qcow2', _('QCOW2 - QEMU Emulator')),/ V. l2 g* Q0 v9 x+ F
# ('raw', _('Raw')),1 w3 z6 {" Z& I% W6 G! D
# ('vdi', _('VDI - Virtual Disk Image')),
5 Q R' Z( z& \* q# ('vhd', _('VHD - Virtual Hard Disk')),
& C1 q3 a* A% U4 Z) x$ W1 M' q; m# ('vmdk', _('VMDK - Virtual Machine Disk')),# S% y6 x" ?7 k4 N4 t/ _' n
# ],8 L- h& H3 G# n
#}7 x2 e* z4 g9 a$ U" p+ j
# The IMAGE_CUSTOM_PROPERTY_TITLES settings is used to customize the titles for! O! i$ G2 s( ~3 l, G, l4 @: |
# image custom property attributes that appear on image detail pages.; b, I1 O8 G' K9 K# C
IMAGE_CUSTOM_PROPERTY_TITLES = {, S/ r/ Q% `* k2 U8 |: n! Y2 J1 w9 t
"architecture": _("Architecture"),
. H5 @' f/ o( j" F9 H) ~) j/ @ "kernel_id": _("Kernel ID")," |/ p' ?* x2 i: Z3 C- T B
"ramdisk_id": _("Ramdisk ID"),
6 s- C3 z8 V8 Z' I9 v "image_state": _("Euca2ools state"),: d" ~1 {9 B3 x# \
"project_id": _("Project ID"),
" A% R# M6 k5 K& Q5 y1 O "image_type": _("Image Type"),- p; X1 _& t9 f
}
5 U7 S9 x' |: c- H& h# The IMAGE_RESERVED_CUSTOM_PROPERTIES setting is used to specify which image- p2 o7 I i! H. C1 S
# custom properties should not be displayed in the Image Custom Properties
& l2 u8 K% M/ \' L; g# table.
0 ^/ O B$ ~, c. D+ D5 u$ E D( H6 nIMAGE_RESERVED_CUSTOM_PROPERTIES = []
# l6 X3 H( e; }- k1 `# Set to 'legacy' or 'direct' to allow users to upload images to glance via% a, Z+ w3 Z1 v
# Horizon server. When enabled, a file form field will appear on the create! A) T. _1 c& v, l0 ^; S0 e
# image form. If set to 'off', there will be no file form field on the create- p/ ]9 G7 H. r( u9 ]$ W
# image form. See documentation for deployment considerations.
3 c& t- y4 G' n v" M3 q' ^$ d#HORIZON_IMAGES_UPLOAD_MODE = 'legacy'$ V5 S: V V; }) |' s' q0 V: e
# OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints
`% d8 i' J9 w9 L- `: `# in the Keystone service catalog. Use this setting when Horizon is running
* V# |! r& x& N/ C* N( ~5 N# external to the OpenStack environment. The default is 'publicURL'.* W; Y; E: L: B. P
OPENSTACK_ENDPOINT_TYPE = "internalURL"
m0 b9 ?" C- b4 X. A+ K; t# SECONDARY_ENDPOINT_TYPE specifies the fallback endpoint type to use in the4 D2 ?" r2 i. `6 m$ J6 `) |* \9 A
# case that OPENSTACK_ENDPOINT_TYPE is not present in the endpoints1 u* g! Q$ L* ^) {) C3 H
# in the Keystone service catalog. Use this setting when Horizon is running
4 s- c+ `0 f6 S# t4 T# external to the OpenStack environment. The default is None. This
" T, A3 o" }" T" S! T# value should differ from OPENSTACK_ENDPOINT_TYPE if used.
~3 T2 i6 [ Y ? z#SECONDARY_ENDPOINT_TYPE = None& U7 i% D+ K# q0 C; i
# The number of objects (Swift containers/objects or images) to display4 k) f; z9 l8 @4 l: H5 R9 L
# on a single page before providing a paging element (a "more" link)) u2 N0 p/ y6 `, ~6 c4 l
# to paginate results.' _$ u9 b. Z7 k% i! ^! B
API_RESULT_LIMIT = 1000* }, u6 ^: n% E/ ]. r) z& w
API_RESULT_PAGE_SIZE = 20" R$ P/ j+ L! f$ Y2 D
# The size of chunk in bytes for downloading objects from Swift
8 p1 B5 }# a3 tSWIFT_FILE_TRANSFER_CHUNK_SIZE = 512 * 1024
, s& Y4 ~ N$ U4 r$ @0 ?' q# Specify a maximum number of items to display in a dropdown.
- ?$ ? ]" d$ I/ Y+ cDROPDOWN_MAX_ITEMS = 30
0 Y2 V) Z: ~1 z8 V/ x# The timezone of the server. This should correspond with the timezone3 G6 k; J6 F/ }: F7 W5 m
# of your entire OpenStack installation, and hopefully be in UTC.
7 j% l! d' }4 {8 P' W: E3 OTIME_ZONE = "UTC"
$ b* C# M* J* m7 H# When launching an instance, the menu of available flavors is; J5 i1 {- w7 b2 r1 l$ c
# sorted by RAM usage, ascending. If you would like a different sort order,
/ D1 n" Y+ }# `# you can provide another flavor attribute as sorting key. Alternatively, you
8 a# }/ ]) G4 I# z2 X# can provide a custom callback method to use for sorting. You can also provide# q& s2 S; F4 R; R, g
# a flag for reverse sort. For more info, see+ ^1 z! P( I/ s D
# http://docs.python.org/2/library/functions.html#sorted
8 r, N: D! ~! H p#CREATE_INSTANCE_FLAVOR_SORT = {
8 l0 O% y6 W' w6 v# 'key': 'name',; j7 n8 W z0 T; D5 l
# # or
2 V1 G" l6 U# w4 |! G# 'key': my_awesome_callback_method,. J7 y$ E7 M& }! h# v
# 'reverse': False,) l4 x. e; u2 o
#}9 U% U# d2 r( O0 d4 n* U/ F0 I+ T
# Set this to True to display an 'Admin Password' field on the Change Password. Y% C$ X* E6 r: r: p
# form to verify that it is indeed the admin logged-in who wants to change7 g8 B, c0 p" `0 g
# the password.) f% K% Q; S, p7 K! X
#ENFORCE_PASSWORD_CHECK = False `+ ]% b$ d- u% D
# Modules that provide /auth routes that can be used to handle different types8 ^9 `4 H/ T, ^/ ~
# of user authentication. Add auth plugins that require extra route handling to
; |) `2 f% [$ Z# this list.
7 l( P' ?' J4 e) p! E& M7 Y#AUTHENTICATION_URLS = [
* j- V% ~) j6 R5 L; e& X# 'openstack_auth.urls', A) Y3 y4 ]2 g, ]
#]3 W$ c8 f3 U" V0 s6 J+ F
# The Horizon Policy Enforcement engine uses these values to load per service
, o- z; C( d9 I$ h: r9 W" T# policy rule files. The content of these files should match the files the
* h6 N& E( M! L2 M8 Z! q' V# OpenStack services are using to determine role based access control in the
- G2 X. ]! d2 c& ]# target installation.) u/ ]5 b3 t) r" F
# Path to directory containing policy.json files
4 h! D6 t8 X k. _POLICY_FILES_PATH = '/etc/openstack-dashboard'
1 i! p0 ~8 W! I1 x# Map of local copy of service policy files.
3 ]; k0 E/ ]6 c1 D. H9 m# Please insure that your identity policy file matches the one being used on [" O/ y! n) q2 W- z; e
# your keystone servers. There is an alternate policy file that may be used
6 }9 }3 X e" k# in the Keystone v3 multi-domain case, policy.v3cloudsample.json.4 ] P' ?5 g, T, J) {" }& Y
# This file is not included in the Horizon repository by default but can be2 Q1 S; d+ R9 C% x3 W4 g' c
# found at
A7 s" f: _# f2 Y1 r3 o6 ]; F# http://git.openstack.org/cgit/openstack/keystone/tree/etc/ \# u( w! D7 ]4 Q
# policy.v3cloudsample.json
, @0 m' s$ l2 ~5 k- A) k# Having matching policy files on the Horizon and Keystone servers is essential
* J& d$ e3 \6 x2 S# for normal operation. This holds true for all services and their policy files.! t/ @, H( n8 t* z7 f2 Y s
#POLICY_FILES = {3 p$ Q& Q* Y, A
# 'identity': 'keystone_policy.json',+ K/ U5 \( i& N) r3 K
# 'compute': 'nova_policy.json',! \- @- v$ N1 V7 ]1 z. @* g
# 'volume': 'cinder_policy.json',
% P* r. t: r8 Y& M# 'image': 'glance_policy.json',$ Q# ^( s8 a8 y; j
# 'orchestration': 'heat_policy.json',; Z3 k6 T8 L6 _* F
# 'network': 'neutron_policy.json',
$ }# {7 g3 n! ^; A' H0 u# 'telemetry': 'ceilometer_policy.json',
# e `* u+ T5 [2 e1 l% H2 ~#}# B4 V* P k$ F& R3 a4 x) z: q4 l
# TODO: (david-lyle) remove when plugins support adding settings.6 t) f3 E4 d! F) v
# Note: Only used when trove-dashboard plugin is configured to be used by1 h. U( n5 U$ p# t5 R: O- ?3 Z
# Horizon.
/ |& g8 Z) T0 B h# Trove user and database extension support. By default support for
1 E1 U, N# I0 K8 s# creating users and databases on database instances is turned on.
" O {2 ^" X& L' ~. `# To disable these extensions set the permission here to something
0 p: |* i0 b# s2 b6 V2 j# unusable such as ["!"].
& F, f9 h" E& z& H#TROVE_ADD_USER_PERMS = []% j5 P. y/ J, j$ z4 k9 O: D
#TROVE_ADD_DATABASE_PERMS = []$ c% B1 v. @" I' q# V
# Change this patch to the appropriate list of tuples containing
8 s- l% G3 N* n! u9 e; u# a key, label and static directory containing two files:7 f5 o/ z2 u- Z' N+ X, _( S
# _variables.scss and _styles.scss3 ^, V. u) X; U% o a
#AVAILABLE_THEMES = [& P5 h2 a! ?+ I; o7 f
# ('default', 'Default', 'themes/default'),/ a& k0 V3 N- O( y
# ('material', 'Material', 'themes/material'),+ U, k' a$ z" w6 A# d' c$ f* @% U5 @
#]
" m! @4 V* D8 i4 P9 `6 ?LOGGING = {
5 L# P9 E/ F7 J8 | 'version': 1,
# u! k3 a4 w% s( S0 n! m # When set to True this will disable all logging except7 Y/ I |4 l( M: x' @
# for loggers specified in this configuration dictionary. Note that
; E z3 S( K! k. I" p$ e1 J9 p # if nothing is specified here and disable_existing_loggers is True,0 `8 K# A5 y; [- n1 n
# django.db.backends will still log unless it is disabled explicitly.0 a+ y0 r" E) M! o
'disable_existing_loggers': False,
4 k& y0 v3 E3 J! O7 l 'formatters': {
0 v" T2 G1 U# `% j8 j: I0 i 'operation': {3 N# _( \4 k/ V4 |
# The format of "%(message)s" is defined by; n, b. u! J+ v R/ r4 c6 t
# OPERATION_LOG_OPTIONS['format']
7 s3 X! m, s: t _ 'format': '%(asctime)s %(message)s'. C' ]& M2 g9 o
},
& A& F C3 ?- g! ? },
9 C) A% N6 `+ V 'handlers': {
5 S( n# B8 c; {+ t% \ 'null': {$ z+ B/ v3 H/ a) y* r/ ~
'level': 'DEBUG',& n5 b7 l4 U4 O( v$ T7 I3 }9 i; p
'class': 'logging.NullHandler',6 S) {* M4 v5 e+ x5 |( M
},3 t+ O7 g' k1 K1 q5 p5 a6 t
'console': {
5 y, [! P6 O! y Y # Set the level to "DEBUG" for verbose output logging. f* A8 y0 x. w
'level': 'INFO',
0 m3 u2 N: J& G1 [- R4 L' D8 P 'class': 'logging.StreamHandler',$ i$ W! v+ t" f6 T( n4 c* S6 }
},
) c; N6 O# l( G 'operation': {3 j- E1 F2 m' c* W
'level': 'INFO'," x' }( `) N( b9 {# i* y* l
'class': 'logging.StreamHandler',
6 l" i! p; G& j 'formatter': 'operation',
0 s, j& G: ^. Y" n" q# n },
0 ^6 F& _7 E+ |0 d) G },
0 K( h$ B& R: q& I 'loggers': {
6 X) i) @' T+ H8 b6 V% P # Logging from django.db.backends is VERY verbose, send to null* z! {: H7 V: v% N' N, ]
# by default., V' D6 p" n! @! m0 Q
'django.db.backends': {
- P; Q8 c: k A* T) v 'handlers': ['null'],3 j d% F- L% n4 `- w: F, H3 l7 s
'propagate': False,
- Y7 U6 E$ `/ \8 a8 R6 F+ q },
0 L* \4 M2 D+ C# S# u* O 'requests': {
) U0 Z, E" {! c 'handlers': ['null'],
" B& J* P/ z( k7 v 'propagate': False,0 q' F {! C# p
},3 w2 l) g! I2 c) i& C% O5 c
'horizon': {4 M) b8 \$ ?6 `. W- Y6 y6 ] }' n
'handlers': ['console'],# r& v% e: _. _; z5 |* Y1 I; v
'level': 'DEBUG',
* k: |: {0 f: Z" }1 ]1 l. H) c 'propagate': False,
3 |9 m' g3 t2 c0 [5 W. h },
! X, T' [. @( f 'horizon.operation_log': {2 S" T* c E7 l8 a, x. Q" D) ^; T* a
'handlers': ['operation'],
* ~# k& S5 s% g j# `; i& P 'level': 'INFO',
8 U9 g: |. y0 l2 @* W* u! P 'propagate': False,2 @8 G8 O1 _) T u9 [5 Q
},# i% o" C. c: U, r4 v
'openstack_dashboard': {
5 W' I/ k: @! c, R: E' \ 'handlers': ['console'],
0 c- Z$ G6 f- K4 \, b7 k 'level': 'DEBUG',3 ^/ I; R) ^ w2 Q5 @1 _+ L
'propagate': False,: a# F( H& Z* _
},
0 k& ~/ f! @, x F9 a 'novaclient': {
: b3 O+ g; j+ O- z5 l 'handlers': ['console'],
) Z% z D9 Y8 F5 @# c) C" X 'level': 'DEBUG',
/ ^, J; k$ H# M' g% a6 \ 'propagate': False,+ K0 S" P/ s: U' w- l# B( N
},
9 f/ b4 E- o/ \; a 'cinderclient': {
- v: \9 A7 ^& ?" P, _& \+ W8 U/ f 'handlers': ['console'],+ @& M8 x- B: }7 a6 |# x# C( B
'level': 'DEBUG',/ k' @- G3 o+ C0 Q k' i! S
'propagate': False,
7 j+ S1 F' n Q* T a },
; B" d3 [1 A; u' c. k5 D 'keystoneclient': {1 A' X) w0 O, @5 h z5 H3 ]. @
'handlers': ['console'],( [" W( I) x! ^& {
'level': 'DEBUG',
l* `& A4 B' i1 I" L1 @4 z 'propagate': False,
* o% x" a, K" p0 X; P },
& f: r9 m. Z P 'glanceclient': {8 P, Y* D+ P' n5 G& l
'handlers': ['console'],. v& g4 U4 l2 h' y1 q* u% }
'level': 'DEBUG',! N4 M7 j! V7 e/ v
'propagate': False,9 r; `. x/ O2 J; D& t9 E
},% Z* s$ \9 R. d# {9 C6 V
'neutronclient': {4 S0 k z0 o) \; `
'handlers': ['console'],1 q3 M1 d" a( @" Q( S
'level': 'DEBUG',3 R; i5 q( i% @3 b5 p1 U6 v( N$ M
'propagate': False,7 s) Y) G1 J1 n b3 _2 U1 w2 }
},9 E+ y- ~2 |# b- ?" E
'heatclient': { Y& A2 ~# |; f$ J
'handlers': ['console'],
4 ~. ~5 n, \3 f0 U# b$ k/ U% H+ j 'level': 'DEBUG',
0 T) G8 U& D5 L7 v+ ]8 ]3 W 'propagate': False,
+ G2 i: O$ }. r& [1 g4 _( s },
9 ^7 @0 ]9 ?+ k/ s- z0 |9 c0 ^8 H! q 'ceilometerclient': {
* d3 v5 j- u3 E t 'handlers': ['console'],) I. e- d/ [% O6 V9 A
'level': 'DEBUG',9 Z/ k$ `, t$ w$ P
'propagate': False,! E: U1 H9 f" [& B/ h" D/ ?* k( m
},9 d5 L* D3 F: ]" g" }5 }. a5 @
'swiftclient': {& e- a2 C: ^9 o3 o0 n
'handlers': ['console'],
3 J0 j+ N9 U) W# M% u 'level': 'DEBUG',2 I; k3 N; A. b8 y; C4 c s
'propagate': False,1 A/ A8 I8 p$ I- V H
},; h& n9 z/ ^8 a- o. ]. ^
'openstack_auth': {
3 x) R3 }, D0 f- n& [' g6 T& ~ 'handlers': ['console'],
9 x0 J, v! V4 Z8 s) y2 X 'level': 'DEBUG',1 m/ ]9 N [* I6 Z, l
'propagate': False,; z% A7 Y8 L# X3 Y5 D3 m
},5 m; h& l+ H- w# V, z4 Z
'nose.plugins.manager': {
9 c! V/ `& G9 v) \$ w) I% z 'handlers': ['console'],
7 r: ~) W% ^6 o1 U& O6 Y* g 'level': 'DEBUG',# l5 A! h2 P+ T8 Q
'propagate': False,
7 [% a6 i# o+ [2 N },
3 f: E3 {8 U) X8 F% U6 q8 [. w* K3 r 'django': {6 B, q! L5 T% g" c2 c1 [
'handlers': ['console'],1 A& E$ ]. {% z2 V2 F T! c
'level': 'DEBUG',
& l4 U0 {. C" c3 d 'propagate': False,
4 {' I7 f9 Z, c$ a# `% { },
% U- T5 U3 q5 S3 X/ E) J K 'iso8601': {- f/ h! }1 {. F% R& c1 s+ ^
'handlers': ['null'],
( P0 d/ G8 @# ^ 'propagate': False,6 i* O, g! t& O- W, U( G6 O: @/ H- y" E" T
},
' I& j+ T1 @) \& P3 I, s 'scss': {
$ B. \, T# ^3 ]1 a 'handlers': ['null'],
6 E$ Q) J# B2 x8 d: c6 l0 X 'propagate': False,0 ^, b) |, Y+ v# c
},
; f6 B3 l( X g/ {; z. ] },
' N- L% H* Q+ o- j: v2 m}
" P( M& t& w0 ~4 V1 ^3 T+ h# 'direction' should not be specified for all_tcp/udp/icmp.
# [# L2 \3 L, x' X' x* `# It is specified in the form.
9 g' a. P# M8 k0 ?" h i+ m3 v1 nSECURITY_GROUP_RULES = {
: O: [. `7 y# C7 @* O1 x) W' { 'all_tcp': {
8 F' K& ~3 G$ u, G) Y 'name': _('All TCP'),
7 O! B7 [6 O }" x. |4 Z 'ip_protocol': 'tcp',( u8 |. B6 H, _2 R' p5 }* M- D1 f) n
'from_port': '1',
- z9 [3 ^, `" L, e; ~5 k 'to_port': '65535',
7 |$ L! F! T, w6 L, W },
. k6 }9 R3 _1 t2 y 'all_udp': {
5 w4 d/ D+ T( |- } 'name': _('All UDP'),& \: z& f( V( v7 d$ ^
'ip_protocol': 'udp',8 w0 k2 ]- G c# O" @! t$ c
'from_port': '1',3 b: ]- X0 T5 \9 G6 V
'to_port': '65535',
, \3 }" d. x) D },+ f+ e" b0 L' Q: S
'all_icmp': {; F$ J y0 n* j. ]2 R. g
'name': _('All ICMP'),
# b9 r; T) H6 L 'ip_protocol': 'icmp',% |: y1 { ?' ]2 F. p6 j1 ? A/ b! Q
'from_port': '-1',2 c% e3 N2 I, D; N# @/ z+ B
'to_port': '-1',1 ~0 J# h# }* q: Z! H
},
5 Q8 n( L' L9 `* u \ 'ssh': {
3 y5 c- u) a5 M8 R 'name': 'SSH',
2 z/ c3 \( D/ |" i: d) e, a Q 'ip_protocol': 'tcp',
& b3 ?' P5 `% k# d3 h. ` 'from_port': '22',
3 ~ P) J% u+ a6 l6 l+ Q, j 'to_port': '22',+ W, e& M* \( e R
},: A5 T7 `4 `; m J, G
'smtp': {
9 p: S, g+ G2 `1 B/ N! ~6 S 'name': 'SMTP',7 C0 A5 E; l' Y% R
'ip_protocol': 'tcp',
; Y/ [: g: r1 q& t/ Y" z" j 'from_port': '25',0 `7 T9 Y8 z5 d" c+ v8 l
'to_port': '25',2 Y/ p, I' v" w' s& D2 ?
},4 h/ H" g( k9 p
'dns': {
& U- b! ~ [7 y2 v 'name': 'DNS',
- ]9 b& k% Q. ~; h! o2 ^ 'ip_protocol': 'tcp',
2 O. n) b9 S1 i8 Z1 b9 v* E 'from_port': '53',
0 g! \0 S' B6 d3 `: ` 'to_port': '53',
$ ?3 H$ _/ v6 N) s) w },
; {( l/ @6 u' J$ L+ R: } 'http': {$ m/ K' y2 e+ X+ A7 _: C& K
'name': 'HTTP',
) z. z ~6 ^0 w& n/ d 'ip_protocol': 'tcp',
( `+ d7 v/ b; V! {8 Z ? 'from_port': '80',* H) H1 }. ?) _) n' ?+ _" `* x. G
'to_port': '80',
# M, ~8 z" K3 w9 s' I1 B o% s },' ~# y+ J+ j, w. D4 ?+ g' J4 j g
'pop3': {( C0 B2 x( O1 t- B1 b
'name': 'POP3',
* I7 o0 V S) w8 Q2 q8 N 'ip_protocol': 'tcp',5 R& Q5 q8 L7 e/ w8 O+ v
'from_port': '110',
: } m& \: h; T& p+ F I9 x9 X2 ^ 'to_port': '110',: N5 F0 `* S: g# ^% S. A
},9 }; F- N5 u b6 x4 H
'imap': {
3 `0 J& A% T; o9 r6 n 'name': 'IMAP',/ N4 a7 H) J4 T: L
'ip_protocol': 'tcp'," c6 y6 y9 d. e0 ~" \( T/ P" R
'from_port': '143',3 F: S. g" p- y2 b& |
'to_port': '143',
) F" [) u! }! M/ B9 u# q },5 n: H( g7 X0 T( e" |! w
'ldap': {2 Q9 _. s+ |8 Z; W( p' `% l: \ b
'name': 'LDAP',
B% j) F& F9 W! H2 t6 a8 b 'ip_protocol': 'tcp',) R% C. K2 f5 b2 }* N
'from_port': '389',
+ @! B; y6 _5 J+ M5 o 'to_port': '389',8 B9 V. z; U* f
},1 b- V" N1 T5 r
'https': {7 n8 x1 g& \ E- a8 x: @
'name': 'HTTPS',0 X9 v1 S3 i4 ~: \# g
'ip_protocol': 'tcp',6 H" z9 {) l& ]" J* t9 s9 k1 \% p
'from_port': '443',, n; v/ n7 V$ H& a( S( T5 \. ^4 | U$ E
'to_port': '443',2 i3 b3 s" {" X5 Q' G
},0 O( R5 A; S9 y3 E) {. K5 j, J
'smtps': {
/ o# b+ U& ?/ B; M, p' W0 ? 'name': 'SMTPS',
1 ]: T! }8 r2 s* O 'ip_protocol': 'tcp',
# }6 q5 K! [4 k. ]; Q 'from_port': '465',/ L+ G1 P! d. L% i8 n0 R& {. p, J7 {
'to_port': '465',
; y* K: V, s0 g0 x8 b7 M },
% ^3 ^9 E2 j; Z& i 'imaps': {
% K* Q) x d9 l; u' M, l 'name': 'IMAPS',
' h; s! j! l5 G/ {/ k7 ~ 'ip_protocol': 'tcp',9 \( |( x* t0 V) g9 e
'from_port': '993',
! V& W8 S' n& b 'to_port': '993',- r( }8 R9 t/ n
},
# E( W7 t7 \) Y4 I 'pop3s': {2 a! i) m* P1 L9 o
'name': 'POP3S',) ^1 U# e8 |' x0 h7 p
'ip_protocol': 'tcp',$ _3 ?* S7 F, n% C3 b
'from_port': '995',1 M9 X6 [/ N) Y4 x$ L8 u! M* A
'to_port': '995',
7 E* w! f! D, L- x8 O4 W% x1 o+ a" b },6 e% q. Z* u# \. p0 W: v( R$ f1 }
'ms_sql': {9 G# N9 q* [0 K0 @ E' x/ r
'name': 'MS SQL',
8 w; `6 X% \ o( \3 e: w 'ip_protocol': 'tcp',
% v' S- ~& E" l# V: p 'from_port': '1433',
( b) l1 q f# N# A& J1 v 'to_port': '1433',
* A6 {, V3 l3 H- w. }0 g* j5 ^ },
! s6 S6 r A3 v& i- Z& Y% T 'mysql': {
5 H1 y+ V5 t( K- L, P 'name': 'MYSQL',( A( M# u, M {- n' }+ F
'ip_protocol': 'tcp',
! S! @4 X5 Q* I I2 v& u 'from_port': '3306',
+ q6 I6 M% U! V+ E, `. y4 A 'to_port': '3306',7 u) h+ X2 P2 T0 @' b, s2 a% F
},$ t3 h3 P6 |" S1 i8 F- N
'rdp': { A/ ?- z% `: R+ `" ]5 C
'name': 'RDP',5 E* }* r. Z9 J' }1 C
'ip_protocol': 'tcp',: n6 v; ?9 {% f( |% B
'from_port': '3389',* L# n1 D3 y# E( Y$ S; U
'to_port': '3389',
* v6 H U+ E' P3 F( \ },
4 j& Y& J! I0 ?}
: v- X* L% y$ F$ J. }# Deprecation Notice:" w3 ?- A( v7 i( {9 [- @
#
4 |0 m1 |1 R& P# The setting FLAVOR_EXTRA_KEYS has been deprecated.
4 j& K4 r8 x9 e1 g4 a$ _: u1 U) s# Please load extra spec metadata into the Glance Metadata Definition Catalog.
& u2 R5 c. O, Z#
) i7 T+ o- W- U1 F& g# The sample quota definitions can be found in:7 \& D# ^* N0 F, \9 l$ V4 u
# <glance_source>/etc/metadefs/compute-quota.json1 T- T; g5 r5 T: ?
#
0 |. R0 ^9 ]# Q. W' _8 {# The metadata definition catalog supports CLI and API:
, v M/ z! Q0 j/ f9 V3 r" _. z! u# $glance --os-image-api-version 2 help md-namespace-import+ U3 ?7 Q% q; u; @
# $glance-manage db_load_metadefs <directory_with_definition_files>
l. W/ d! D$ a) e+ J#* i! ?$ R; l3 h1 ~
# See Metadata Definitions on: https://docs.openstack.org/glance/latest/
+ j7 t! Y7 \( @0 a) j! n/ h5 P- l1 ?7 f# TODO: (david-lyle) remove when plugins support settings natively. l: R4 ]5 d# l+ i4 G7 B
# Note: This is only used when the Sahara plugin is configured and enabled3 m3 V0 _9 R4 ?: J4 A
# for use in Horizon.
5 }. o. S* x6 G( n4 c/ P0 ]# Indicate to the Sahara data processing service whether or not8 Q$ V) ]: N9 C( D* O# z( @
# automatic floating IP allocation is in effect. If it is not$ ]8 r7 e% j. B K8 n
# in effect, the user will be prompted to choose a floating IP/ x" y; x, h# W( {1 r0 ?
# pool for use in their cluster. False by default. You would want3 [" C' C1 |: X; P4 m
# to set this to True if you were running Nova Networking with
$ W9 H$ ?: N! B# auto_assign_floating_ip = True. G M+ l7 y/ n
#SAHARA_AUTO_IP_ALLOCATION_ENABLED = False
" i% a0 U) [, r+ m# The hash algorithm to use for authentication tokens. This must0 R9 b8 ?( U# P" N1 C
# match the hash algorithm that the identity server and the& U8 @8 x' S: `8 _9 e# y' x# r
# auth_token middleware are using. Allowed values are the' |8 \7 L0 U' P9 e( N0 M0 J
# algorithms supported by Python's hashlib library.1 W3 T% z, g! F- U. X
#OPENSTACK_TOKEN_HASH_ALGORITHM = 'md5'
+ v, R) E7 u4 q& {& X# AngularJS requires some settings to be made available to- H3 t2 |* n3 W! Q4 e( Y( W1 c6 i
# the client side. Some settings are required by in-tree / built-in horizon! ~4 |! R* z" k
# features. These settings must be added to REST_API_REQUIRED_SETTINGS in the
+ |8 U, ^4 y- L* `3 l. F# form of ['SETTING_1','SETTING_2'], etc.- [+ ?. J7 z8 f, S
#2 c9 @! @( o- o
# You may remove settings from this list for security purposes, but do so at% K: W- Q$ c* D) s& O0 W. `- [
# the risk of breaking a built-in horizon feature. These settings are required2 k1 a7 o, o9 Z2 h* G @% T, W
# for horizon to function properly. Only remove them if you know what you
, v' g3 Z3 u! z( S; `/ k! g$ Z# are doing. These settings may in the future be moved to be defined within
. r6 @1 [" o+ e* _+ k# ?# the enabled panel configuration.9 R) e7 v4 Q* }' y; U& r* v1 \$ I
# You should not add settings to this list for out of tree extensions.1 @0 R2 \/ i1 v9 ?: B$ R2 k! |
# See: https://wiki.openstack.org/wiki/Horizon/RESTAPI6 C9 S6 ^# f4 b# ]' b
REST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES',0 N7 c2 g0 |2 B1 p
'LAUNCH_INSTANCE_DEFAULTS',
; X* ^: q% r1 ] 'OPENSTACK_IMAGE_FORMATS']8 v) d1 g4 D! c) P! a
# Additional settings can be made available to the client side for# B& r8 {% v7 c
# extensibility by specifying them in REST_API_ADDITIONAL_SETTINGS9 b1 C" `* t+ {6 `+ [9 f4 S: B& j F3 m
# !! Please use extreme caution as the settings are transferred via HTTP/S
1 A J8 y& g9 z/ t- g# and are not encrypted on the browser. This is an experimental API and
( N5 [8 N0 ]8 P# R1 i B# may be deprecated in the future without notice.
' _. T V6 x+ s#REST_API_ADDITIONAL_SETTINGS = []6 v5 |/ e) l) b6 w
# DISALLOW_IFRAME_EMBED can be used to prevent Horizon from being embedded4 E8 Y" z d% m) H% T
# within an iframe. Legacy browsers are still vulnerable to a Cross-Frame, }1 K @' B7 ?
# Scripting (XFS) vulnerability, so this option allows extra security hardening( |( R% p$ W) v' N0 a- g/ i
# where iframes are not used in deployment. Default setting is True.: s1 ^7 S& l: r
# For more information see:: l- q7 E; d7 s; i3 q& t4 Z9 e* w
# http://tinyurl.com/anticlickjack! S9 }. A: w7 O' S2 t/ V( C
#DISALLOW_IFRAME_EMBED = True
' J8 }& r; H* o1 S8 F A8 T# Help URL can be made available for the client. To provide a help URL, edit the8 p6 p5 q* R7 g. Z9 ^, f4 G. D
# following attribute to the URL of your choice.0 a0 p! {- a3 r: @; f8 l
#HORIZON_CONFIG["help_url"] = "http://openstack.mycompany.org"
1 q, N- k; ~% ?2 T; c# Settings for OperationLogMiddleware
9 z- T3 L9 A7 m1 z# E; k1 l; b# OPERATION_LOG_ENABLED is flag to use the function to log an operation on
% a# }4 E' t/ c% q) ~# Horizon.4 D# V5 [- U- v( ]' k
# mask_targets is arrangement for appointing a target to mask.- j! F8 r$ a$ a% T, g
# method_targets is arrangement of HTTP method to output log.
0 {0 K7 @2 |* m# K# format is the log contents.* V1 r3 x3 F3 |9 [6 l. h
#OPERATION_LOG_ENABLED = False
1 x& |& ^1 n5 T2 m$ n8 `, ` H- D7 `#OPERATION_LOG_OPTIONS = {
% V( S. T- ?, g$ Z' N m: ]( z# 'mask_fields': ['password'],
4 y5 j* e. ]# @* m/ f1 O# 'target_methods': ['POST'],9 P L7 ~/ @# u+ }- G/ E
# 'format': ("[%(domain_name)s] [%(domain_id)s] [%(project_name)s]"
! J8 J; Z0 D3 M# " [%(project_id)s] [%(user_name)s] [%(user_id)s] [%(request_scheme)s]"
" ~" Y5 Q' g: F9 U# " [%(referer_url)s] [%(request_url)s] [%(message)s] [%(method)s]"
/ ?& |. H5 c# O, i+ l8 J( [# " [%(http_status)s] [%(param)s]"),
) E& ~* W9 A2 E4 o5 c! h- g% Z#}
& j/ N: ]; i0 Q8 ^% E$ Y# The default date range in the Overview panel meters - either <today> minus N4 ?# |' n0 H9 k) o. ]
# days (if the value is integer N), or from the beginning of the current month
; L7 E- q: C! f) j0 M, S. H5 V# until today (if set to None). This setting should be used to limit the amount5 t6 [! Z& ~. [/ @. ~
# of data fetched by default when rendering the Overview panel.1 A& u0 s2 l @1 Y; [) T
#OVERVIEW_DAYS_RANGE = 1
+ j" C5 T1 J/ V: e0 ^" t# To allow operators to require admin users provide a search criteria first+ A& E: l: I' c) H5 U
# before loading any data into the admin views, set the following attribute to
7 P5 o. T3 J; G, n3 U# True
' b+ v% \, x, Q) {, i4 Y J$ W#ADMIN_FILTER_DATA_FIRST=False: I. Q+ g) [; B7 I! V3 M6 F# g
& z8 T f% q( j+ G+ D# ^
7 x/ K. @9 ]0 V5 m
|
|