blob: c1fcabc20c6a898cb7a71e25f94b7cf8fe73963d [file] [log] [blame]
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001{%- from "glance/map.jinja" import server with context %}
Oleksandr Shyshko5a549202018-08-31 13:55:03 +03002
3{%- set connection_x509_ssl_option = '' %}
4{%- if server.database.get('x509',{}).get('enabled',False) %}
5 {%- set connection_x509_ssl_option = '&ssl_ca=' ~ server.database.x509.ca_file ~ '&ssl_cert=' ~ server.database.x509.cert_file ~ '&ssl_key=' ~ server.database.x509.key_file %}
6{%- elif server.database.get('ssl',{}).get('enabled',False) %}
7 {%- set connection_x509_ssl_option = '&ssl_ca=' ~ server.database.ssl.get('cacert_file', server.cacert_file) %}
8{%- endif %}
9
Jakub Pavlik159f6a92018-01-11 13:19:10 +010010[DEFAULT]
11
12#
13# From glance.registry
14#
15
16#
17# Set the image owner to tenant or the authenticated user.
18#
19# Assign a boolean value to determine the owner of an image. When set to
20# True, the owner of the image is the tenant. When set to False, the
21# owner of the image will be the authenticated user issuing the request.
22# Setting it to False makes the image private to the associated user and
23# sharing with other users within the same tenant (or "project")
24# requires explicit image sharing via image membership.
25#
26# Possible values:
27# * True
28# * False
29#
30# Related options:
31# * None
32#
33# (boolean value)
34#owner_is_tenant = true
35
36#
37# Role used to identify an authenticated user as administrator.
38#
39# Provide a string value representing a Keystone role to identify an
40# administrative user. Users with this role will be granted
41# administrative privileges. The default value for this option is
42# 'admin'.
43#
44# Possible values:
45# * A string value which is a valid Keystone role
46#
47# Related options:
48# * None
49#
50# (string value)
51#admin_role = admin
52
53#
54# Allow limited access to unauthenticated users.
55#
56# Assign a boolean to determine API access for unathenticated
57# users. When set to False, the API cannot be accessed by
58# unauthenticated users. When set to True, unauthenticated users can
59# access the API with read-only privileges. This however only applies
60# when using ContextMiddleware.
61#
62# Possible values:
63# * True
64# * False
65#
66# Related options:
67# * None
68#
69# (boolean value)
70#allow_anonymous_access = false
71
72#
73# Limit the request ID length.
74#
75# Provide an integer value to limit the length of the request ID to
76# the specified length. The default value is 64. Users can change this
77# to any ineteger value between 0 and 16384 however keeping in mind that
78# a larger value may flood the logs.
79#
80# Possible values:
81# * Integer value between 0 and 16384
82#
83# Related options:
84# * None
85#
86# (integer value)
87# Minimum value: 0
88#max_request_id_length = 64
89
90#
91# Allow users to add additional/custom properties to images.
92#
93# Glance defines a standard set of properties (in its schema) that
94# appear on every image. These properties are also known as
95# ``base properties``. In addition to these properties, Glance
96# allows users to add custom properties to images. These are known
97# as ``additional properties``.
98#
99# By default, this configuration option is set to ``True`` and users
100# are allowed to add additional properties. The number of additional
101# properties that can be added to an image can be controlled via
102# ``image_property_quota`` configuration option.
103#
104# Possible values:
105# * True
106# * False
107#
108# Related options:
109# * image_property_quota
110#
111# (boolean value)
112#allow_additional_image_properties = true
113
114#
115# Maximum number of image members per image.
116#
117# This limits the maximum of users an image can be shared with. Any negative
118# value is interpreted as unlimited.
119#
120# Related options:
121# * None
122#
123# (integer value)
124#image_member_quota = 128
125
126#
127# Maximum number of properties allowed on an image.
128#
129# This enforces an upper limit on the number of additional properties an image
130# can have. Any negative value is interpreted as unlimited.
131#
132# NOTE: This won't have any impact if additional properties are disabled. Please
133# refer to ``allow_additional_image_properties``.
134#
135# Related options:
136# * ``allow_additional_image_properties``
137#
138# (integer value)
139#image_property_quota = 128
140
141#
142# Maximum number of tags allowed on an image.
143#
144# Any negative value is interpreted as unlimited.
145#
146# Related options:
147# * None
148#
149# (integer value)
150#image_tag_quota = 128
151
152#
153# Maximum number of locations allowed on an image.
154#
155# Any negative value is interpreted as unlimited.
156#
157# Related options:
158# * None
159#
160# (integer value)
161#image_location_quota = 10
162
163#
164# Python module path of data access API.
165#
166# Specifies the path to the API to use for accessing the data model.
167# This option determines how the image catalog data will be accessed.
168#
169# Possible values:
170# * glance.db.sqlalchemy.api
171# * glance.db.registry.api
172# * glance.db.simple.api
173#
174# If this option is set to ``glance.db.sqlalchemy.api`` then the image
175# catalog data is stored in and read from the database via the
176# SQLAlchemy Core and ORM APIs.
177#
178# Setting this option to ``glance.db.registry.api`` will force all
179# database access requests to be routed through the Registry service.
180# This avoids data access from the Glance API nodes for an added layer
181# of security, scalability and manageability.
182#
183# NOTE: In v2 OpenStack Images API, the registry service is optional.
184# In order to use the Registry API in v2, the option
185# ``enable_v2_registry`` must be set to ``True``.
186#
187# Finally, when this configuration option is set to
188# ``glance.db.simple.api``, image catalog data is stored in and read
189# from an in-memory data structure. This is primarily used for testing.
190#
191# Related options:
192# * enable_v2_api
193# * enable_v2_registry
194#
195# (string value)
196#data_api = glance.db.sqlalchemy.api
197
198#
199# The default number of results to return for a request.
200#
201# Responses to certain API requests, like list images, may return
202# multiple items. The number of results returned can be explicitly
203# controlled by specifying the ``limit`` parameter in the API request.
204# However, if a ``limit`` parameter is not specified, this
205# configuration value will be used as the default number of results to
206# be returned for any API request.
207#
208# NOTES:
209# * The value of this configuration option may not be greater than
210# the value specified by ``api_limit_max``.
211# * Setting this to a very large value may slow down database
212# queries and increase response times. Setting this to a
213# very low value may result in poor user experience.
214#
215# Possible values:
216# * Any positive integer
217#
218# Related options:
219# * api_limit_max
220#
221# (integer value)
222# Minimum value: 1
223#limit_param_default = 25
224limit_param_default = 25
225
226#
227# Maximum number of results that could be returned by a request.
228#
229# As described in the help text of ``limit_param_default``, some
230# requests may return multiple results. The number of results to be
231# returned are governed either by the ``limit`` parameter in the
232# request or the ``limit_param_default`` configuration option.
233# The value in either case, can't be greater than the absolute maximum
234# defined by this configuration option. Anything greater than this
235# value is trimmed down to the maximum value defined here.
236#
237# NOTE: Setting this to a very large value may slow down database
238# queries and increase response times. Setting this to a
239# very low value may result in poor user experience.
240#
241# Possible values:
242# * Any positive integer
243#
244# Related options:
245# * limit_param_default
246#
247# (integer value)
248# Minimum value: 1
249#api_limit_max = 1000
250api_limit_max = 1000
251
252#
253# Show direct image location when returning an image.
254#
255# This configuration option indicates whether to show the direct image
256# location when returning image details to the user. The direct image
257# location is where the image data is stored in backend storage. This
258# image location is shown under the image property ``direct_url``.
259#
260# When multiple image locations exist for an image, the best location
261# is displayed based on the location strategy indicated by the
262# configuration option ``location_strategy``.
263#
264# NOTES:
265# * Revealing image locations can present a GRAVE SECURITY RISK as
266# image locations can sometimes include credentials. Hence, this
267# is set to ``False`` by default. Set this to ``True`` with
268# EXTREME CAUTION and ONLY IF you know what you are doing!
269# * If an operator wishes to avoid showing any image location(s)
270# to the user, then both this option and
271# ``show_multiple_locations`` MUST be set to ``False``.
272#
273# Possible values:
274# * True
275# * False
276#
277# Related options:
278# * show_multiple_locations
279# * location_strategy
280#
281# (boolean value)
282#show_image_direct_url = false
283
284# DEPRECATED:
285# Show all image locations when returning an image.
286#
287# This configuration option indicates whether to show all the image
288# locations when returning image details to the user. When multiple
289# image locations exist for an image, the locations are ordered based
290# on the location strategy indicated by the configuration opt
291# ``location_strategy``. The image locations are shown under the
292# image property ``locations``.
293#
294# NOTES:
295# * Revealing image locations can present a GRAVE SECURITY RISK as
296# image locations can sometimes include credentials. Hence, this
297# is set to ``False`` by default. Set this to ``True`` with
298# EXTREME CAUTION and ONLY IF you know what you are doing!
299# * If an operator wishes to avoid showing any image location(s)
300# to the user, then both this option and
301# ``show_image_direct_url`` MUST be set to ``False``.
302#
303# Possible values:
304# * True
305# * False
306#
307# Related options:
308# * show_image_direct_url
309# * location_strategy
310#
311# (boolean value)
312# This option is deprecated for removal since Newton.
313# Its value may be silently ignored in the future.
314# Reason: This option will be removed in the Ocata release because the same
315# functionality can be achieved with greater granularity by using policies.
316# Please see the Newton release notes for more information.
317#show_multiple_locations = false
318
319#
320# Maximum size of image a user can upload in bytes.
321#
322# An image upload greater than the size mentioned here would result
323# in an image creation failure. This configuration option defaults to
324# 1099511627776 bytes (1 TiB).
325#
326# NOTES:
327# * This value should only be increased after careful
328# consideration and must be set less than or equal to
329# 8 EiB (9223372036854775808).
330# * This value must be set with careful consideration of the
331# backend storage capacity. Setting this to a very low value
332# may result in a large number of image failures. And, setting
333# this to a very large value may result in faster consumption
334# of storage. Hence, this must be set according to the nature of
335# images created and storage capacity available.
336#
337# Possible values:
338# * Any positive number less than or equal to 9223372036854775808
339#
340# (integer value)
341# Minimum value: 1
342# Maximum value: 9223372036854775808
343#image_size_cap = 1099511627776
Pavlo Shchelokovskyybc227572020-08-06 16:30:32 +0300344{%- if server.image_size_cap is defined %}
345image_size_cap = {{ server.image_size_cap }}
346{%- endif %}
Jakub Pavlik159f6a92018-01-11 13:19:10 +0100347
348#
349# Maximum amount of image storage per tenant.
350#
351# This enforces an upper limit on the cumulative storage consumed by all images
352# of a tenant across all stores. This is a per-tenant limit.
353#
354# The default unit for this configuration option is Bytes. However, storage
355# units can be specified using case-sensitive literals ``B``, ``KB``, ``MB``,
356# ``GB`` and ``TB`` representing Bytes, KiloBytes, MegaBytes, GigaBytes and
357# TeraBytes respectively. Note that there should not be any space between the
358# value and unit. Value ``0`` signifies no quota enforcement. Negative values
359# are invalid and result in errors.
360#
361# Possible values:
362# * A string that is a valid concatenation of a non-negative integer
363# representing the storage value and an optional string literal
364# representing storage units as mentioned above.
365#
366# Related options:
367# * None
368#
369# (string value)
370#user_storage_quota = 0
371
372#
373# Deploy the v1 OpenStack Images API.
374#
375# When this option is set to ``True``, Glance service will respond to
376# requests on registered endpoints conforming to the v1 OpenStack
377# Images API.
378#
379# NOTES:
380# * If this option is enabled, then ``enable_v1_registry`` must
381# also be set to ``True`` to enable mandatory usage of Registry
382# service with v1 API.
383#
384# * If this option is disabled, then the ``enable_v1_registry``
385# option, which is enabled by default, is also recommended
386# to be disabled.
387#
388# * This option is separate from ``enable_v2_api``, both v1 and v2
389# OpenStack Images API can be deployed independent of each
390# other.
391#
392# * If deploying only the v2 Images API, this option, which is
393# enabled by default, should be disabled.
394#
395# Possible values:
396# * True
397# * False
398#
399# Related options:
400# * enable_v1_registry
401# * enable_v2_api
402#
403# (boolean value)
404#enable_v1_api = true
405
406#
407# Deploy the v2 OpenStack Images API.
408#
409# When this option is set to ``True``, Glance service will respond
410# to requests on registered endpoints conforming to the v2 OpenStack
411# Images API.
412#
413# NOTES:
414# * If this option is disabled, then the ``enable_v2_registry``
415# option, which is enabled by default, is also recommended
416# to be disabled.
417#
418# * This option is separate from ``enable_v1_api``, both v1 and v2
419# OpenStack Images API can be deployed independent of each
420# other.
421#
422# * If deploying only the v1 Images API, this option, which is
423# enabled by default, should be disabled.
424#
425# Possible values:
426# * True
427# * False
428#
429# Related options:
430# * enable_v2_registry
431# * enable_v1_api
432#
433# (boolean value)
434#enable_v2_api = true
435
436#
437# Deploy the v1 API Registry service.
438#
439# When this option is set to ``True``, the Registry service
440# will be enabled in Glance for v1 API requests.
441#
442# NOTES:
443# * Use of Registry is mandatory in v1 API, so this option must
444# be set to ``True`` if the ``enable_v1_api`` option is enabled.
445#
446# * If deploying only the v2 OpenStack Images API, this option,
447# which is enabled by default, should be disabled.
448#
449# Possible values:
450# * True
451# * False
452#
453# Related options:
454# * enable_v1_api
455#
456# (boolean value)
457#enable_v1_registry = true
458
459#
460# Deploy the v2 API Registry service.
461#
462# When this option is set to ``True``, the Registry service
463# will be enabled in Glance for v2 API requests.
464#
465# NOTES:
466# * Use of Registry is optional in v2 API, so this option
467# must only be enabled if both ``enable_v2_api`` is set to
468# ``True`` and the ``data_api`` option is set to
469# ``glance.db.registry.api``.
470#
471# * If deploying only the v1 OpenStack Images API, this option,
472# which is enabled by default, should be disabled.
473#
474# Possible values:
475# * True
476# * False
477#
478# Related options:
479# * enable_v2_api
480# * data_api
481#
482# (boolean value)
483#enable_v2_registry = true
484
485#
486# Host address of the pydev server.
487#
488# Provide a string value representing the hostname or IP of the
489# pydev server to use for debugging. The pydev server listens for
490# debug connections on this address, facilitating remote debugging
491# in Glance.
492#
493# Possible values:
494# * Valid hostname
495# * Valid IP address
496#
497# Related options:
498# * None
499#
500# (string value)
501#pydev_worker_debug_host = localhost
502
503#
504# Port number that the pydev server will listen on.
505#
506# Provide a port number to bind the pydev server to. The pydev
507# process accepts debug connections on this port and facilitates
508# remote debugging in Glance.
509#
510# Possible values:
511# * A valid port number
512#
513# Related options:
514# * None
515#
516# (port value)
517# Minimum value: 0
518# Maximum value: 65535
519#pydev_worker_debug_port = 5678
520
521#
522# AES key for encrypting store location metadata.
523#
524# Provide a string value representing the AES cipher to use for
525# encrypting Glance store metadata.
526#
527# NOTE: The AES key to use must be set to a random string of length
528# 16, 24 or 32 bytes.
529#
530# Possible values:
531# * String value representing a valid AES key
532#
533# Related options:
534# * None
535#
536# (string value)
537#metadata_encryption_key = <None>
538
539#
540# Digest algorithm to use for digital signature.
541#
542# Provide a string value representing the digest algorithm to
543# use for generating digital signatures. By default, ``sha256``
544# is used.
545#
546# To get a list of the available algorithms supported by the version
547# of OpenSSL on your platform, run the command:
548# ``openssl list-message-digest-algorithms``.
549# Examples are 'sha1', 'sha256', and 'sha512'.
550#
551# NOTE: ``digest_algorithm`` is not related to Glance's image signing
552# and verification. It is only used to sign the universally unique
553# identifier (UUID) as a part of the certificate file and key file
554# validation.
555#
556# Possible values:
557# * An OpenSSL message digest algorithm identifier
558#
559# Relation options:
560# * None
561#
562# (string value)
563#digest_algorithm = sha256
564
565#
566# IP address to bind the glance servers to.
567#
568# Provide an IP address to bind the glance server to. The default
569# value is ``0.0.0.0``.
570#
571# Edit this option to enable the server to listen on one particular
572# IP address on the network card. This facilitates selection of a
573# particular network interface for the server.
574#
575# Possible values:
576# * A valid IPv4 address
577# * A valid IPv6 address
578#
579# Related options:
580# * None
581#
582# (string value)
583#bind_host = 0.0.0.0
584bind_host = {{ server.bind.address }}
585
586#
587# Port number on which the server will listen.
588#
589# Provide a valid port number to bind the server's socket to. This
590# port is then set to identify processes and forward network messages
591# that arrive at the server. The default bind_port value for the API
592# server is 9292 and for the registry server is 9191.
593#
594# Possible values:
595# * A valid port number (0 to 65535)
596#
597# Related options:
598# * None
599#
600# (port value)
601# Minimum value: 0
602# Maximum value: 65535
603#bind_port = <None>
604bind_port = {{ server.registry.port }}
605
606#
607# Set the number of incoming connection requests.
608#
609# Provide a positive integer value to limit the number of requests in
610# the backlog queue. The default queue size is 4096.
611#
612# An incoming connection to a TCP listener socket is queued before a
613# connection can be established with the server. Setting the backlog
614# for a TCP socket ensures a limited queue size for incoming traffic.
615#
616# Possible values:
617# * Positive integer
618#
619# Related options:
620# * None
621#
622# (integer value)
623# Minimum value: 1
624#backlog = 4096
625
626#
627# Set the wait time before a connection recheck.
628#
629# Provide a positive integer value representing time in seconds which
630# is set as the idle wait time before a TCP keep alive packet can be
631# sent to the host. The default value is 600 seconds.
632#
633# Setting ``tcp_keepidle`` helps verify at regular intervals that a
634# connection is intact and prevents frequent TCP connection
635# reestablishment.
636#
637# Possible values:
638# * Positive integer value representing time in seconds
639#
640# Related options:
641# * None
642#
643# (integer value)
644# Minimum value: 1
645#tcp_keepidle = 600
646
647#
648# Absolute path to the CA file.
649#
650# Provide a string value representing a valid absolute path to
651# the Certificate Authority file to use for client authentication.
652#
653# A CA file typically contains necessary trusted certificates to
654# use for the client authentication. This is essential to ensure
655# that a secure connection is established to the server via the
656# internet.
657#
658# Possible values:
659# * Valid absolute path to the CA file
660#
661# Related options:
662# * None
663#
664# (string value)
665#ca_file = /etc/ssl/cafile
666
667#
668# Absolute path to the certificate file.
669#
670# Provide a string value representing a valid absolute path to the
671# certificate file which is required to start the API service
672# securely.
673#
674# A certificate file typically is a public key container and includes
675# the server's public key, server name, server information and the
676# signature which was a result of the verification process using the
677# CA certificate. This is required for a secure connection
678# establishment.
679#
680# Possible values:
681# * Valid absolute path to the certificate file
682#
683# Related options:
684# * None
685#
686# (string value)
687#cert_file = /etc/ssl/certs
688
689#
690# Absolute path to a private key file.
691#
692# Provide a string value representing a valid absolute path to a
693# private key file which is required to establish the client-server
694# connection.
695#
696# Possible values:
697# * Absolute path to the private key file
698#
699# Related options:
700# * None
701#
702# (string value)
703#key_file = /etc/ssl/key/key-file.pem
704
705# DEPRECATED: The HTTP header used to determine the scheme for the original
706# request, even if it was removed by an SSL terminating proxy. Typical value is
707# "HTTP_X_FORWARDED_PROTO". (string value)
708# This option is deprecated for removal.
709# Its value may be silently ignored in the future.
710# Reason: Use the http_proxy_to_wsgi middleware instead.
711#secure_proxy_ssl_header = <None>
712
713#
714# Number of Glance worker processes to start.
715#
716# Provide a non-negative integer value to set the number of child
717# process workers to service requests. By default, the number of CPUs
718# available is set as the value for ``workers``.
719#
720# Each worker process is made to listen on the port set in the
721# configuration file and contains a greenthread pool of size 1000.
722#
723# NOTE: Setting the number of workers to zero, triggers the creation
724# of a single API process with a greenthread pool of size 1000.
725#
726# Possible values:
727# * 0
728# * Positive integer value (typically equal to the number of CPUs)
729#
730# Related options:
731# * None
732#
733# (integer value)
734# Minimum value: 0
735#workers = <None>
736workers = {{ server.workers }}
737
738#
739# Maximum line size of message headers.
740#
741# Provide an integer value representing a length to limit the size of
742# message headers. The default value is 16384.
743#
744# NOTE: ``max_header_line`` may need to be increased when using large
745# tokens (typically those generated by the Keystone v3 API with big
746# service catalogs). However, it is to be kept in mind that larger
747# values for ``max_header_line`` would flood the logs.
748#
749# Setting ``max_header_line`` to 0 sets no limit for the line size of
750# message headers.
751#
752# Possible values:
753# * 0
754# * Positive integer
755#
756# Related options:
757# * None
758#
759# (integer value)
760# Minimum value: 0
761#max_header_line = 16384
762
763#
764# Set keep alive option for HTTP over TCP.
765#
766# Provide a boolean value to determine sending of keep alive packets.
767# If set to ``False``, the server returns the header
768# "Connection: close". If set to ``True``, the server returns a
769# "Connection: Keep-Alive" in its responses. This enables retention of
770# the same TCP connection for HTTP conversations instead of opening a
771# new one with each new request.
772#
773# This option must be set to ``False`` if the client socket connection
774# needs to be closed explicitly after the response is received and
775# read successfully by the client.
776#
777# Possible values:
778# * True
779# * False
780#
781# Related options:
782# * None
783#
784# (boolean value)
785#http_keepalive = true
786
787#
788# Timeout for client connections' socket operations.
789#
790# Provide a valid integer value representing time in seconds to set
791# the period of wait before an incoming connection can be closed. The
792# default value is 900 seconds.
793#
794# The value zero implies wait forever.
795#
796# Possible values:
797# * Zero
798# * Positive integer
799#
800# Related options:
801# * None
802#
803# (integer value)
804# Minimum value: 0
805#client_socket_timeout = 900
806
807#
808# From oslo.log
809#
810
811# If set to true, the logging level will be set to DEBUG instead of the default
812# INFO level. (boolean value)
813# Note: This option can be changed without restarting.
814#debug = false
815debug = false
816
817# DEPRECATED: If set to false, the logging level will be set to WARNING instead
818# of the default INFO level. (boolean value)
819# This option is deprecated for removal.
820# Its value may be silently ignored in the future.
821#verbose = true
822verbose = true
823
824# The name of a logging configuration file. This file is appended to any
825# existing logging configuration files. For details about logging configuration
826# files, see the Python logging module documentation. Note that when logging
827# configuration files are used then all logging configuration is set in the
828# configuration file and other logging configuration options are ignored (for
829# example, logging_context_format_string). (string value)
830# Note: This option can be changed without restarting.
831# Deprecated group/name - [DEFAULT]/log_config
832#log_config_append = <None>
833
834# Defines the format string for %%(asctime)s in log records. Default:
835# %(default)s . This option is ignored if log_config_append is set. (string
836# value)
837#log_date_format = %Y-%m-%d %H:%M:%S
838
839# (Optional) Name of log file to send logging output to. If no default is set,
840# logging will go to stderr as defined by use_stderr. This option is ignored if
841# log_config_append is set. (string value)
842# Deprecated group/name - [DEFAULT]/logfile
843#log_file = <None>
844log_file = /var/log/glance/registry.log
845
846# (Optional) The base directory used for relative log_file paths. This option
847# is ignored if log_config_append is set. (string value)
848# Deprecated group/name - [DEFAULT]/logdir
849#log_dir = <None>
850
851# Uses logging handler designed to watch file system. When log file is moved or
852# removed this handler will open a new log file with specified path
853# instantaneously. It makes sense only if log_file option is specified and Linux
854# platform is used. This option is ignored if log_config_append is set. (boolean
855# value)
856#watch_log_file = false
857
858# Use syslog for logging. Existing syslog format is DEPRECATED and will be
859# changed later to honor RFC5424. This option is ignored if log_config_append is
860# set. (boolean value)
861#use_syslog = false
862
863# Syslog facility to receive log lines. This option is ignored if
864# log_config_append is set. (string value)
865#syslog_log_facility = LOG_USER
866
867# Log output to standard error. This option is ignored if log_config_append is
868# set. (boolean value)
869#use_stderr = true
870
871# Format string to use for log messages with context. (string value)
872#logging_context_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
873
874# Format string to use for log messages when context is undefined. (string
875# value)
876#logging_default_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
877
878# Additional data to append to log message when logging level for the message is
879# DEBUG. (string value)
880#logging_debug_format_suffix = %(funcName)s %(pathname)s:%(lineno)d
881
882# Prefix each line of exception output with this format. (string value)
883#logging_exception_prefix = %(asctime)s.%(msecs)03d %(process)d ERROR %(name)s %(instance)s
884
885# Defines the format string for %(user_identity)s that is used in
886# logging_context_format_string. (string value)
887#logging_user_identity_format = %(user)s %(tenant)s %(domain)s %(user_domain)s %(project_domain)s
888
889# List of package logging levels in logger=LEVEL pairs. This option is ignored
890# if log_config_append is set. (list value)
891#default_log_levels = amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN,urllib3.connectionpool=WARN,websocket=WARN,requests.packages.urllib3.util.retry=WARN,urllib3.util.retry=WARN,keystonemiddleware=WARN,routes.middleware=WARN,stevedore=WARN,taskflow=WARN,keystoneauth=WARN,oslo.cache=INFO,dogpile.core.dogpile=INFO
892
893# Enables or disables publication of error events. (boolean value)
894#publish_errors = false
895
896# The format for an instance that is passed with the log message. (string value)
897#instance_format = "[instance: %(uuid)s] "
898
899# The format for an instance UUID that is passed with the log message. (string
900# value)
901#instance_uuid_format = "[instance: %(uuid)s] "
902
903# Enables or disables fatal status of deprecations. (boolean value)
904#fatal_deprecations = false
905
906#
907# From oslo.messaging
908#
909
910# Size of RPC connection pool. (integer value)
911# Deprecated group/name - [DEFAULT]/rpc_conn_pool_size
912#rpc_conn_pool_size = 30
913
914# The pool size limit for connections expiration policy (integer value)
915#conn_pool_min_size = 2
916
917# The time-to-live in sec of idle connections in the pool (integer value)
918#conn_pool_ttl = 1200
919
920# ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
921# The "host" option should point or resolve to this address. (string value)
922# Deprecated group/name - [DEFAULT]/rpc_zmq_bind_address
923#rpc_zmq_bind_address = *
924
925# MatchMaker driver. (string value)
926# Allowed values: redis, dummy
927# Deprecated group/name - [DEFAULT]/rpc_zmq_matchmaker
928#rpc_zmq_matchmaker = redis
929
930# Number of ZeroMQ contexts, defaults to 1. (integer value)
931# Deprecated group/name - [DEFAULT]/rpc_zmq_contexts
932#rpc_zmq_contexts = 1
933
934# Maximum number of ingress messages to locally buffer per topic. Default is
935# unlimited. (integer value)
936# Deprecated group/name - [DEFAULT]/rpc_zmq_topic_backlog
937#rpc_zmq_topic_backlog = <None>
938
939# Directory for holding IPC sockets. (string value)
940# Deprecated group/name - [DEFAULT]/rpc_zmq_ipc_dir
941#rpc_zmq_ipc_dir = /var/run/openstack
942
943# Name of this node. Must be a valid hostname, FQDN, or IP address. Must match
944# "host" option, if running Nova. (string value)
945# Deprecated group/name - [DEFAULT]/rpc_zmq_host
946#rpc_zmq_host = localhost
947
948# Seconds to wait before a cast expires (TTL). The default value of -1 specifies
949# an infinite linger period. The value of 0 specifies no linger period. Pending
950# messages shall be discarded immediately when the socket is closed. Only
951# supported by impl_zmq. (integer value)
952# Deprecated group/name - [DEFAULT]/rpc_cast_timeout
953#rpc_cast_timeout = -1
954
955# The default number of seconds that poll should wait. Poll raises timeout
956# exception when timeout expired. (integer value)
957# Deprecated group/name - [DEFAULT]/rpc_poll_timeout
958#rpc_poll_timeout = 1
959
960# Expiration timeout in seconds of a name service record about existing target (
961# < 0 means no timeout). (integer value)
962# Deprecated group/name - [DEFAULT]/zmq_target_expire
963#zmq_target_expire = 300
964
965# Update period in seconds of a name service record about existing target.
966# (integer value)
967# Deprecated group/name - [DEFAULT]/zmq_target_update
968#zmq_target_update = 180
969
970# Use PUB/SUB pattern for fanout methods. PUB/SUB always uses proxy. (boolean
971# value)
972# Deprecated group/name - [DEFAULT]/use_pub_sub
973#use_pub_sub = true
974
975# Use ROUTER remote proxy. (boolean value)
976# Deprecated group/name - [DEFAULT]/use_router_proxy
977#use_router_proxy = true
978
979# Minimal port number for random ports range. (port value)
980# Minimum value: 0
981# Maximum value: 65535
982# Deprecated group/name - [DEFAULT]/rpc_zmq_min_port
983#rpc_zmq_min_port = 49153
984
985# Maximal port number for random ports range. (integer value)
986# Minimum value: 1
987# Maximum value: 65536
988# Deprecated group/name - [DEFAULT]/rpc_zmq_max_port
989#rpc_zmq_max_port = 65536
990
991# Number of retries to find free port number before fail with ZMQBindError.
992# (integer value)
993# Deprecated group/name - [DEFAULT]/rpc_zmq_bind_port_retries
994#rpc_zmq_bind_port_retries = 100
995
996# Default serialization mechanism for serializing/deserializing
997# outgoing/incoming messages (string value)
998# Allowed values: json, msgpack
999# Deprecated group/name - [DEFAULT]/rpc_zmq_serialization
1000#rpc_zmq_serialization = json
1001
1002# This option configures round-robin mode in zmq socket. True means not keeping
1003# a queue when server side disconnects. False means to keep queue and messages
1004# even if server is disconnected, when the server appears we send all
1005# accumulated messages to it. (boolean value)
1006#zmq_immediate = false
1007
1008# Size of executor thread pool. (integer value)
1009# Deprecated group/name - [DEFAULT]/rpc_thread_pool_size
1010#executor_thread_pool_size = 64
1011
1012# Seconds to wait for a response from a call. (integer value)
1013#rpc_response_timeout = 60
1014
1015# A URL representing the messaging driver to use and its full configuration.
1016# (string value)
1017#transport_url = <None>
1018
1019{%- set rabbit_port = server.message_queue.get('port', 5671 if server.message_queue.get('ssl',{}).get('enabled', False) else 5672) %}
1020{%- if server.message_queue.members is defined %}
1021transport_url = rabbit://{% for member in server.message_queue.members -%}
1022 {{ server.message_queue.user }}:{{ server.message_queue.password }}@{{ member.host }}:{{ member.get('port', rabbit_port) }}
1023 {%- if not loop.last -%},{%- endif -%}
1024 {%- endfor -%}
1025 /{{ server.message_queue.virtual_host }}
1026{%- else %}
1027transport_url = rabbit://{{ server.message_queue.user }}:{{ server.message_queue.password }}@{{ server.message_queue.host }}:{{ rabbit_port }}/{{ server.message_queue.virtual_host }}
1028{%- endif %}
1029
1030# DEPRECATED: The messaging driver to use, defaults to rabbit. Other drivers
1031# include amqp and zmq. (string value)
1032# This option is deprecated for removal.
1033# Its value may be silently ignored in the future.
1034# Reason: Replaced by [DEFAULT]/transport_url
1035#rpc_backend = rabbit
1036
1037# The default exchange under which topics are scoped. May be overridden by an
1038# exchange name specified in the transport_url option. (string value)
1039#control_exchange = openstack
1040control_exchange = openstack
1041
1042
1043[database]
1044
1045#
1046# From oslo.db
1047#
1048
1049# DEPRECATED: The file name to use with SQLite. (string value)
1050# Deprecated group/name - [DEFAULT]/sqlite_db
1051# This option is deprecated for removal.
1052# Its value may be silently ignored in the future.
1053# Reason: Should use config option connection or slave_connection to connect the
1054# database.
1055#sqlite_db = oslo.sqlite
1056
1057# If True, SQLite uses synchronous mode. (boolean value)
1058# Deprecated group/name - [DEFAULT]/sqlite_synchronous
1059#sqlite_synchronous = true
1060
1061# The back end to use for the database. (string value)
1062# Deprecated group/name - [DEFAULT]/db_backend
1063#backend = sqlalchemy
1064backend = sqlalchemy
1065
1066# The SQLAlchemy connection string to use to connect to the database. (string
1067# value)
1068# Deprecated group/name - [DEFAULT]/sql_connection
1069# Deprecated group/name - [DATABASE]/sql_connection
1070# Deprecated group/name - [sql]/connection
1071#connection = <None>
Oleksandr Shyshko5a549202018-08-31 13:55:03 +03001072connection = {{ server.database.engine }}+pymysql://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}?charset=utf8{{ connection_x509_ssl_option|string }}
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001073
1074# The SQLAlchemy connection string to use to connect to the slave database.
1075# (string value)
1076#slave_connection = <None>
1077
1078# The SQL mode to be used for MySQL sessions. This option, including the
1079# default, overrides any server-set SQL mode. To use whatever SQL mode is set by
1080# the server configuration, set this to no value. Example: mysql_sql_mode=
1081# (string value)
1082#mysql_sql_mode = TRADITIONAL
1083
1084# Timeout before idle SQL connections are reaped. (integer value)
1085# Deprecated group/name - [DEFAULT]/sql_idle_timeout
1086# Deprecated group/name - [DATABASE]/sql_idle_timeout
1087# Deprecated group/name - [sql]/idle_timeout
1088#idle_timeout = 3600
1089idle_timeout = 3600
1090
1091# Minimum number of SQL connections to keep open in a pool. (integer value)
1092# Deprecated group/name - [DEFAULT]/sql_min_pool_size
1093# Deprecated group/name - [DATABASE]/sql_min_pool_size
1094#min_pool_size = 1
1095
1096# Maximum number of SQL connections to keep open in a pool. Setting a value of 0
1097# indicates no limit. (integer value)
1098# Deprecated group/name - [DEFAULT]/sql_max_pool_size
1099# Deprecated group/name - [DATABASE]/sql_max_pool_size
1100#max_pool_size = 5
1101max_pool_size = 10
1102
1103# Maximum number of database connection retries during startup. Set to -1 to
1104# specify an infinite retry count. (integer value)
1105# Deprecated group/name - [DEFAULT]/sql_max_retries
1106# Deprecated group/name - [DATABASE]/sql_max_retries
1107#max_retries = 10
1108max_retries = -1
1109
1110# Interval between retries of opening a SQL connection. (integer value)
1111# Deprecated group/name - [DEFAULT]/sql_retry_interval
1112# Deprecated group/name - [DATABASE]/reconnect_interval
1113#retry_interval = 10
1114
1115# If set, use this value for max_overflow with SQLAlchemy. (integer value)
1116# Deprecated group/name - [DEFAULT]/sql_max_overflow
1117# Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow
1118#max_overflow = 50
1119max_overflow = 30
1120
1121# Verbosity of SQL debugging information: 0=None, 100=Everything. (integer
1122# value)
1123# Minimum value: 0
1124# Maximum value: 100
1125# Deprecated group/name - [DEFAULT]/sql_connection_debug
1126#connection_debug = 0
1127
1128# Add Python stack traces to SQL as comment strings. (boolean value)
1129# Deprecated group/name - [DEFAULT]/sql_connection_trace
1130#connection_trace = false
1131
1132# If set, use this value for pool_timeout with SQLAlchemy. (integer value)
1133# Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout
1134#pool_timeout = <None>
1135
1136# Enable the experimental use of database reconnect on connection lost. (boolean
1137# value)
1138#use_db_reconnect = false
1139
1140# Seconds between retries of a database transaction. (integer value)
1141#db_retry_interval = 1
1142
1143# If True, increases the interval between retries of a database operation up to
1144# db_max_retry_interval. (boolean value)
1145#db_inc_retry_interval = true
1146
1147# If db_inc_retry_interval is set, the maximum seconds between retries of a
1148# database operation. (integer value)
1149#db_max_retry_interval = 10
1150
1151# Maximum retries in case of connection error or deadlock error before error is
1152# raised. Set to -1 to specify an infinite retry count. (integer value)
1153#db_max_retries = 20
1154
1155#
1156# From oslo.db.concurrency
1157#
1158
1159# Enable the experimental use of thread pooling for all DB API calls (boolean
1160# value)
1161# Deprecated group/name - [DEFAULT]/dbapi_use_tpool
1162#use_tpool = false
1163
1164[glance_store]
1165filesystem_store_datadir = {{ server.get('filesystem_store_datadir', '/var/lib/glance/images/') }}
1166
1167swift_store_endpoint_type = {{ server.identity.get('endpoint_type', 'publicURL') }}
1168
1169cinder_catalog_info = volumev2::{{ server.identity.get('endpoint_type', 'publicURL') }}
1170
1171# Override service catalog lookup with template for cinder endpoint
1172# e.g. http://localhost:8776/v2/%(tenant)s (string value)
1173#cinder_endpoint_template = <None>
1174
1175# Region name of this node. If specified, it will be used to locate
1176# OpenStack services for stores. (string value)
1177# Deprecated group/name - [DEFAULT]/os_region_name
1178#cinder_os_region_name = <None>
1179{% if server.identity.region is defined %}
1180cinder_os_region_name = {{ server.identity.region }}
1181{% endif %}
1182
1183[keystone_authtoken]
1184
1185#
1186# From keystonemiddleware.auth_token
1187#
1188revocation_cache_time = 10
1189auth_type = password
1190user_domain_id = {{ server.identity.get('domain', 'default') }}
1191project_domain_id = {{ server.identity.get('domain', 'default') }}
1192project_name = {{ server.identity.tenant }}
1193username = {{ server.identity.user }}
1194password = {{ server.identity.password }}
1195auth_uri={{ server.identity.get('protocol', 'http') }}://{{ server.identity.host }}:5000
1196auth_url={{ server.identity.get('protocol', 'http') }}://{{ server.identity.host }}:35357
1197{%- if server.identity.get('protocol', 'http') == 'https' %}
1198cafile={{ server.identity.get('cacert_file', server.cacert_file) }}
1199{%- endif %}
1200
1201{%- if server.cache is defined %}
Oleh Hryhorova0788a52018-10-29 16:54:30 +02001202{%- if server.cache.members is defined %}
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001203memcached_servers={%- for member in server.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
Oleh Hryhorova0788a52018-10-29 16:54:30 +02001204{%- endif %}
Oleksandr Bryndziic69e8c82018-09-28 23:27:30 +00001205 {%- if server.cache.get('security', {}).get('enabled', False) %}
1206memcache_security_strategy = {{ server.cache.security.get('strategy', 'ENCRYPT') }}
1207 {%- if server.cache.security.secret_key is not defined or not server.cache.security.secret_key %}
1208 {%- do salt.test.exception('server.cache.security.secret_key is not defined: Please add secret_key') %}
1209 {%- else %}
1210memcache_secret_key = {{ server.cache.security.secret_key }}
1211 {%- endif %}
1212 {%- endif %}
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001213{%- endif %}
Ivan Berezovskiye3ac8712019-08-28 20:17:34 +04001214{%- if server.identity.service_token_roles is defined %}
1215service_token_roles = {{ server.identity.service_token_roles }}
1216{%- endif %}
1217{%- if server.identity.service_token_roles_required is defined %}
1218service_token_roles_required = {{ server.identity.service_token_roles_required }}
1219{%- endif %}
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001220# Complete "public" Identity API endpoint. This endpoint should not be an
1221# "admin" endpoint, as it should be accessible by all end users. Unauthenticated
1222# clients are redirected to this endpoint to authenticate. Although this
1223# endpoint should ideally be unversioned, client support in the wild varies.
1224# If you're using a versioned v2 endpoint here, then this should *not* be the
1225# same endpoint the service user utilizes for validating tokens, because normal
1226# end users may not be able to reach that endpoint. (string value)
1227#auth_uri = <None>
1228
1229# API version of the admin Identity API endpoint. (string value)
1230#auth_version = <None>
1231
1232# Do not handle authorization requests within the middleware, but delegate the
1233# authorization decision to downstream WSGI components. (boolean value)
1234#delay_auth_decision = false
1235
1236# Request timeout value for communicating with Identity API server. (integer
1237# value)
1238#http_connect_timeout = <None>
1239
1240# How many times are we trying to reconnect when communicating with Identity API
1241# Server. (integer value)
1242#http_request_max_retries = 3
1243
1244# Request environment key where the Swift cache object is stored. When
1245# auth_token middleware is deployed with a Swift cache, use this option to have
1246# the middleware share a caching backend with swift. Otherwise, use the
1247# ``memcached_servers`` option instead. (string value)
1248#cache = <None>
1249
1250# Required if identity server requires client certificate (string value)
1251#certfile = <None>
1252
1253# Required if identity server requires client certificate (string value)
1254#keyfile = <None>
1255
1256# A PEM encoded Certificate Authority to use when verifying HTTPs connections.
1257# Defaults to system CAs. (string value)
1258#cafile = <None>
1259
1260# Verify HTTPS connections. (boolean value)
1261#insecure = false
1262
1263# The region in which the identity server can be found. (string value)
1264#region_name = <None>
1265
1266# Directory used to cache files related to PKI tokens. (string value)
1267#signing_dir = <None>
1268
1269# Optionally specify a list of memcached server(s) to use for caching. If left
1270# undefined, tokens will instead be cached in-process. (list value)
1271# Deprecated group/name - [keystone_authtoken]/memcache_servers
1272#memcached_servers = <None>
1273
1274# In order to prevent excessive effort spent validating tokens, the middleware
1275# caches previously-seen tokens for a configurable duration (in seconds). Set to
1276# -1 to disable caching completely. (integer value)
1277#token_cache_time = 300
1278
1279# Determines the frequency at which the list of revoked tokens is retrieved from
1280# the Identity service (in seconds). A high number of revocation events combined
1281# with a low cache duration may significantly reduce performance. Only valid for
1282# PKI tokens. (integer value)
1283#revocation_cache_time = 10
1284
1285# (Optional) If defined, indicate whether token data should be authenticated or
1286# authenticated and encrypted. If MAC, token data is authenticated (with HMAC)
1287# in the cache. If ENCRYPT, token data is encrypted and authenticated in the
1288# cache. If the value is not one of these options or empty, auth_token will
1289# raise an exception on initialization. (string value)
1290# Allowed values: None, MAC, ENCRYPT
1291#memcache_security_strategy = None
1292
1293# (Optional, mandatory if memcache_security_strategy is defined) This string is
1294# used for key derivation. (string value)
1295#memcache_secret_key = <None>
1296
1297# (Optional) Number of seconds memcached server is considered dead before it is
1298# tried again. (integer value)
1299#memcache_pool_dead_retry = 300
1300
1301# (Optional) Maximum total number of open connections to every memcached server.
1302# (integer value)
1303#memcache_pool_maxsize = 10
1304
1305# (Optional) Socket timeout in seconds for communicating with a memcached
1306# server. (integer value)
1307#memcache_pool_socket_timeout = 3
1308
1309# (Optional) Number of seconds a connection to memcached is held unused in the
1310# pool before it is closed. (integer value)
1311#memcache_pool_unused_timeout = 60
1312
1313# (Optional) Number of seconds that an operation will wait to get a memcached
1314# client connection from the pool. (integer value)
1315#memcache_pool_conn_get_timeout = 10
1316
1317# (Optional) Use the advanced (eventlet safe) memcached client pool. The
1318# advanced pool will only work under python 2.x. (boolean value)
1319#memcache_use_advanced_pool = false
1320
1321# (Optional) Indicate whether to set the X-Service-Catalog header. If False,
1322# middleware will not ask for service catalog on token validation and will not
1323# set the X-Service-Catalog header. (boolean value)
1324#include_service_catalog = true
1325
1326# Used to control the use and type of token binding. Can be set to: "disabled"
1327# to not check token binding. "permissive" (default) to validate binding
1328# information if the bind type is of a form known to the server and ignore it if
1329# not. "strict" like "permissive" but if the bind type is unknown the token will
1330# be rejected. "required" any form of token binding is needed to be allowed.
1331# Finally the name of a binding method that must be present in tokens. (string
1332# value)
1333#enforce_token_bind = permissive
1334
1335# If true, the revocation list will be checked for cached tokens. This requires
1336# that PKI tokens are configured on the identity server. (boolean value)
1337#check_revocations_for_cached = false
1338
1339# Hash algorithms to use for hashing PKI tokens. This may be a single algorithm
1340# or multiple. The algorithms are those supported by Python standard
1341# hashlib.new(). The hashes will be tried in the order given, so put the
1342# preferred one first for performance. The result of the first hash will be
1343# stored in the cache. This will typically be set to multiple values only while
1344# migrating from a less secure algorithm to a more secure one. Once all the old
1345# tokens are expired this option should be set to a single value for better
1346# performance. (list value)
1347#hash_algorithms = md5
1348
1349# Authentication type to load (string value)
1350# Deprecated group/name - [keystone_authtoken]/auth_plugin
1351#auth_type = <None>
1352
1353# Config Section from which to load plugin specific options (string value)
1354#auth_section = <None>
1355
1356
1357[matchmaker_redis]
1358
1359#
1360# From oslo.messaging
1361#
1362
1363# DEPRECATED: Host to locate redis. (string value)
1364# This option is deprecated for removal.
1365# Its value may be silently ignored in the future.
1366# Reason: Replaced by [DEFAULT]/transport_url
1367#host = 127.0.0.1
1368
1369# DEPRECATED: Use this port to connect to redis host. (port value)
1370# Minimum value: 0
1371# Maximum value: 65535
1372# This option is deprecated for removal.
1373# Its value may be silently ignored in the future.
1374# Reason: Replaced by [DEFAULT]/transport_url
1375#port = 6379
1376
1377# DEPRECATED: Password for Redis server (optional). (string value)
1378# This option is deprecated for removal.
1379# Its value may be silently ignored in the future.
1380# Reason: Replaced by [DEFAULT]/transport_url
1381#password =
1382
1383# DEPRECATED: List of Redis Sentinel hosts (fault tolerance mode) e.g.
1384# [host:port, host1:port ... ] (list value)
1385# This option is deprecated for removal.
1386# Its value may be silently ignored in the future.
1387# Reason: Replaced by [DEFAULT]/transport_url
1388#sentinel_hosts =
1389
1390# Redis replica set name. (string value)
1391#sentinel_group_name = oslo-messaging-zeromq
1392
1393# Time in ms to wait between connection attempts. (integer value)
1394#wait_timeout = 2000
1395
1396# Time in ms to wait before the transaction is killed. (integer value)
1397#check_timeout = 20000
1398
1399# Timeout in ms on blocking socket operations (integer value)
1400#socket_timeout = 10000
1401
1402
1403[oslo_messaging_amqp]
1404
1405#
1406# From oslo.messaging
1407#
1408
1409# Name for the AMQP container. must be globally unique. Defaults to a generated
1410# UUID (string value)
1411# Deprecated group/name - [amqp1]/container_name
1412#container_name = <None>
1413
1414# Timeout for inactive connections (in seconds) (integer value)
1415# Deprecated group/name - [amqp1]/idle_timeout
1416#idle_timeout = 0
1417
1418# Debug: dump AMQP frames to stdout (boolean value)
1419# Deprecated group/name - [amqp1]/trace
1420#trace = false
1421
1422# CA certificate PEM file to verify server certificate (string value)
1423# Deprecated group/name - [amqp1]/ssl_ca_file
1424#ssl_ca_file =
1425
1426# Identifying certificate PEM file to present to clients (string value)
1427# Deprecated group/name - [amqp1]/ssl_cert_file
1428#ssl_cert_file =
1429
1430# Private key PEM file used to sign cert_file certificate (string value)
1431# Deprecated group/name - [amqp1]/ssl_key_file
1432#ssl_key_file =
1433
1434# Password for decrypting ssl_key_file (if encrypted) (string value)
1435# Deprecated group/name - [amqp1]/ssl_key_password
1436#ssl_key_password = <None>
1437
1438# Accept clients using either SSL or plain TCP (boolean value)
1439# Deprecated group/name - [amqp1]/allow_insecure_clients
1440#allow_insecure_clients = false
1441
1442# Space separated list of acceptable SASL mechanisms (string value)
1443# Deprecated group/name - [amqp1]/sasl_mechanisms
1444#sasl_mechanisms =
1445
1446# Path to directory that contains the SASL configuration (string value)
1447# Deprecated group/name - [amqp1]/sasl_config_dir
1448#sasl_config_dir =
1449
1450# Name of configuration file (without .conf suffix) (string value)
1451# Deprecated group/name - [amqp1]/sasl_config_name
1452#sasl_config_name =
1453
1454# User name for message broker authentication (string value)
1455# Deprecated group/name - [amqp1]/username
1456#username =
1457
1458# Password for message broker authentication (string value)
1459# Deprecated group/name - [amqp1]/password
1460#password =
1461
1462# Seconds to pause before attempting to re-connect. (integer value)
1463# Minimum value: 1
1464#connection_retry_interval = 1
1465
1466# Increase the connection_retry_interval by this many seconds after each
1467# unsuccessful failover attempt. (integer value)
1468# Minimum value: 0
1469#connection_retry_backoff = 2
1470
1471# Maximum limit for connection_retry_interval + connection_retry_backoff
1472# (integer value)
1473# Minimum value: 1
1474#connection_retry_interval_max = 30
1475
1476# Time to pause between re-connecting an AMQP 1.0 link that failed due to a
1477# recoverable error. (integer value)
1478# Minimum value: 1
1479#link_retry_delay = 10
1480
1481# The deadline for an rpc reply message delivery. Only used when caller does not
1482# provide a timeout expiry. (integer value)
1483# Minimum value: 5
1484#default_reply_timeout = 30
1485
1486# The deadline for an rpc cast or call message delivery. Only used when caller
1487# does not provide a timeout expiry. (integer value)
1488# Minimum value: 5
1489#default_send_timeout = 30
1490
1491# The deadline for a sent notification message delivery. Only used when caller
1492# does not provide a timeout expiry. (integer value)
1493# Minimum value: 5
1494#default_notify_timeout = 30
1495
1496# Indicates the addressing mode used by the driver.
1497# Permitted values:
1498# 'legacy' - use legacy non-routable addressing
1499# 'routable' - use routable addresses
1500# 'dynamic' - use legacy addresses if the message bus does not support routing
1501# otherwise use routable addressing (string value)
1502#addressing_mode = dynamic
1503
1504# address prefix used when sending to a specific server (string value)
1505# Deprecated group/name - [amqp1]/server_request_prefix
1506#server_request_prefix = exclusive
1507
1508# address prefix used when broadcasting to all servers (string value)
1509# Deprecated group/name - [amqp1]/broadcast_prefix
1510#broadcast_prefix = broadcast
1511
1512# address prefix when sending to any server in group (string value)
1513# Deprecated group/name - [amqp1]/group_request_prefix
1514#group_request_prefix = unicast
1515
1516# Address prefix for all generated RPC addresses (string value)
1517#rpc_address_prefix = openstack.org/om/rpc
1518
1519# Address prefix for all generated Notification addresses (string value)
1520#notify_address_prefix = openstack.org/om/notify
1521
1522# Appended to the address prefix when sending a fanout message. Used by the
1523# message bus to identify fanout messages. (string value)
1524#multicast_address = multicast
1525
1526# Appended to the address prefix when sending to a particular RPC/Notification
1527# server. Used by the message bus to identify messages sent to a single
1528# destination. (string value)
1529#unicast_address = unicast
1530
1531# Appended to the address prefix when sending to a group of consumers. Used by
1532# the message bus to identify messages that should be delivered in a round-robin
1533# fashion across consumers. (string value)
1534#anycast_address = anycast
1535
1536# Exchange name used in notification addresses.
1537# Exchange name resolution precedence:
1538# Target.exchange if set
1539# else default_notification_exchange if set
1540# else control_exchange if set
1541# else 'notify' (string value)
1542#default_notification_exchange = <None>
1543default_notification_exchange = glance
1544
1545# Exchange name used in RPC addresses.
1546# Exchange name resolution precedence:
1547# Target.exchange if set
1548# else default_rpc_exchange if set
1549# else control_exchange if set
1550# else 'rpc' (string value)
1551#default_rpc_exchange = <None>
1552
1553# Window size for incoming RPC Reply messages. (integer value)
1554# Minimum value: 1
1555#reply_link_credit = 200
1556
1557# Window size for incoming RPC Request messages (integer value)
1558# Minimum value: 1
1559#rpc_server_credit = 100
1560
1561# Window size for incoming Notification messages (integer value)
1562# Minimum value: 1
1563#notify_server_credit = 100
1564
1565
1566[oslo_messaging_notifications]
1567
1568#
1569# From oslo.messaging
1570#
1571
1572# The Drivers(s) to handle sending notifications. Possible values are messaging,
1573# messagingv2, routing, log, test, noop (multi valued)
1574# Deprecated group/name - [DEFAULT]/notification_driver
1575#driver =
1576{%- if server.notification is mapping %}
1577driver = {{ server.notification.get('driver', 'messagingv2') }}
1578{%- if server.notification.topics is defined %}
1579topics = {{ server.notification.topics }}
1580{%- endif %}
1581{%- elif server.notification %}
1582driver = messagingv2
1583{%- endif %}
1584# A URL representing the messaging driver to use for notifications. If not set,
1585# we fall back to the same configuration used for RPC. (string value)
1586# Deprecated group/name - [DEFAULT]/notification_transport_url
1587#transport_url = <None>
1588
1589# AMQP topic used for OpenStack notifications. (list value)
1590# Deprecated group/name - [rpc_notifier2]/topics
1591# Deprecated group/name - [DEFAULT]/notification_topics
1592#topics = notifications
1593
1594
1595[oslo_messaging_rabbit]
1596
1597#
1598# From oslo.messaging
1599#
1600
1601{%- if server.message_queue.get('ssl',{}).get('enabled', False) %}
1602rabbit_use_ssl=true
1603
Oleksandr Bryndzii0cb07242018-09-21 15:51:00 +03001604 {%- if server.message_queue.ssl.version is defined %}
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001605kombu_ssl_version = {{ server.message_queue.ssl.version }}
Oleksandr Bryndzii0cb07242018-09-21 15:51:00 +03001606 {%- elif salt['grains.get']('pythonversion') > [2,7,8] %}
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001607kombu_ssl_version = TLSv1_2
Oleksandr Bryndzii0cb07242018-09-21 15:51:00 +03001608 {%- endif %}
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001609
Oleksandr Bryndzii0cb07242018-09-21 15:51:00 +03001610 {%- if server.message_queue.get('x509',{}).get('enabled', False) %}
1611kombu_ssl_ca_certs = {{ server.message_queue.x509.ca_file }}
Oleksandr Bryndzii0bb36722018-09-14 10:44:27 +00001612kombu_ssl_keyfile = {{ server.message_queue.x509.key_file}}
Oleksandr Bryndzii0bb36722018-09-14 10:44:27 +00001613kombu_ssl_certfile = {{ server.message_queue.x509.cert_file}}
Oleksandr Bryndzii0cb07242018-09-21 15:51:00 +03001614 {%- else %}
1615kombu_ssl_ca_certs = {{ server.message_queue.ssl.get('cacert_file', server.cacert_file) }}
1616 {%- endif %}
Oleksandr Bryndzii0bb36722018-09-14 10:44:27 +00001617
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001618{%- endif %}
1619
1620# Use durable queues in AMQP. (boolean value)
1621# Deprecated group/name - [DEFAULT]/amqp_durable_queues
1622# Deprecated group/name - [DEFAULT]/rabbit_durable_queues
1623#amqp_durable_queues = false
1624
1625# Auto-delete queues in AMQP. (boolean value)
1626# Deprecated group/name - [DEFAULT]/amqp_auto_delete
1627#amqp_auto_delete = false
1628
1629# SSL version to use (valid only if SSL enabled). Valid values are TLSv1 and
1630# SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be available on some
1631# distributions. (string value)
1632# Deprecated group/name - [DEFAULT]/kombu_ssl_version
1633#kombu_ssl_version =
1634
1635# SSL key file (valid only if SSL enabled). (string value)
1636# Deprecated group/name - [DEFAULT]/kombu_ssl_keyfile
1637#kombu_ssl_keyfile =
1638
1639# SSL cert file (valid only if SSL enabled). (string value)
1640# Deprecated group/name - [DEFAULT]/kombu_ssl_certfile
1641#kombu_ssl_certfile =
1642
1643# SSL certification authority file (valid only if SSL enabled). (string value)
1644# Deprecated group/name - [DEFAULT]/kombu_ssl_ca_certs
1645#kombu_ssl_ca_certs =
1646
Pavlo Shchelokovskyy6a8bf382020-06-18 23:41:38 +03001647# NOTE(pas-ha) default values of below option is problematic with RMQ 3.8,
1648# see PROD-34322
1649# recreating queues on a secondary broker immediately after primary broker
1650# has gone down leads to these queues being non-functional.
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001651# How long to wait before reconnecting in response to an AMQP consumer cancel
1652# notification. (floating point value)
1653# Deprecated group/name - [DEFAULT]/kombu_reconnect_delay
1654#kombu_reconnect_delay = 1.0
Pavlo Shchelokovskyy6a8bf382020-06-18 23:41:38 +03001655kombu_reconnect_delay = 5.0
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001656
1657# EXPERIMENTAL: Possible values are: gzip, bz2. If not set compression will not
1658# be used. This option may not be available in future versions. (string value)
1659#kombu_compression = <None>
1660
1661# How long to wait a missing client before abandoning to send it its replies.
1662# This value should not be longer than rpc_response_timeout. (integer value)
1663# Deprecated group/name - [oslo_messaging_rabbit]/kombu_reconnect_timeout
1664#kombu_missing_consumer_retry_timeout = 60
1665
1666# Determines how the next RabbitMQ node is chosen in case the one we are
1667# currently connected to becomes unavailable. Takes effect only if more than one
1668# RabbitMQ node is provided in config. (string value)
1669# Allowed values: round-robin, shuffle
1670#kombu_failover_strategy = round-robin
1671
1672# DEPRECATED: The RabbitMQ broker address where a single node is used. (string
1673# value)
1674# Deprecated group/name - [DEFAULT]/rabbit_host
1675# This option is deprecated for removal.
1676# Its value may be silently ignored in the future.
1677# Reason: Replaced by [DEFAULT]/transport_url
1678#rabbit_host = localhost
1679
1680# DEPRECATED: The RabbitMQ broker port where a single node is used. (port value)
1681# Minimum value: 0
1682# Maximum value: 65535
1683# Deprecated group/name - [DEFAULT]/rabbit_port
1684# This option is deprecated for removal.
1685# Its value may be silently ignored in the future.
1686# Reason: Replaced by [DEFAULT]/transport_url
1687#rabbit_port = 5672
1688
1689# DEPRECATED: RabbitMQ HA cluster host:port pairs. (list value)
1690# Deprecated group/name - [DEFAULT]/rabbit_hosts
1691# This option is deprecated for removal.
1692# Its value may be silently ignored in the future.
1693# Reason: Replaced by [DEFAULT]/transport_url
1694#rabbit_hosts = $rabbit_host:$rabbit_port
1695
1696# Connect over SSL for RabbitMQ. (boolean value)
1697# Deprecated group/name - [DEFAULT]/rabbit_use_ssl
1698#rabbit_use_ssl = false
1699
1700# DEPRECATED: The RabbitMQ userid. (string value)
1701# Deprecated group/name - [DEFAULT]/rabbit_userid
1702# This option is deprecated for removal.
1703# Its value may be silently ignored in the future.
1704# Reason: Replaced by [DEFAULT]/transport_url
1705#rabbit_userid = guest
1706
1707# DEPRECATED: The RabbitMQ password. (string value)
1708# Deprecated group/name - [DEFAULT]/rabbit_password
1709# This option is deprecated for removal.
1710# Its value may be silently ignored in the future.
1711# Reason: Replaced by [DEFAULT]/transport_url
1712#rabbit_password = guest
1713
1714# The RabbitMQ login method. (string value)
1715# Deprecated group/name - [DEFAULT]/rabbit_login_method
1716#rabbit_login_method = AMQPLAIN
1717
1718# DEPRECATED: The RabbitMQ virtual host. (string value)
1719# Deprecated group/name - [DEFAULT]/rabbit_virtual_host
1720# This option is deprecated for removal.
1721# Its value may be silently ignored in the future.
1722# Reason: Replaced by [DEFAULT]/transport_url
1723#rabbit_virtual_host = /
1724
Pavlo Shchelokovskyy6a8bf382020-06-18 23:41:38 +03001725# NOTE(pas-ha) default values of below option is problematic with RMQ 3.8,
1726# see PROD-34322
1727# recreating queues on a secondary broker immediately after primary broker
1728# has gone down leads to these queues being non-functional.
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001729# How frequently to retry connecting with RabbitMQ. (integer value)
1730#rabbit_retry_interval = 1
Pavlo Shchelokovskyy6a8bf382020-06-18 23:41:38 +03001731rabbit_retry_interval = 5
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001732
Pavlo Shchelokovskyy6a8bf382020-06-18 23:41:38 +03001733# NOTE(pas-ha) default values of below option is problematic with RMQ 3.8,
1734# see PROD-34322
1735# recreating queues on a secondary broker immediately after primary broker
1736# has gone down leads to these queues being non-functional.
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001737# How long to backoff for between retries when connecting to RabbitMQ. (integer
1738# value)
1739# Deprecated group/name - [DEFAULT]/rabbit_retry_backoff
1740#rabbit_retry_backoff = 2
Pavlo Shchelokovskyy6a8bf382020-06-18 23:41:38 +03001741rabbit_retry_backoff = 10
Jakub Pavlik159f6a92018-01-11 13:19:10 +01001742
1743# Maximum interval of RabbitMQ connection retries. Default is 30 seconds.
1744# (integer value)
1745#rabbit_interval_max = 30
1746
1747# DEPRECATED: Maximum number of RabbitMQ connection retries. Default is 0
1748# (infinite retry count). (integer value)
1749# Deprecated group/name - [DEFAULT]/rabbit_max_retries
1750# This option is deprecated for removal.
1751# Its value may be silently ignored in the future.
1752#rabbit_max_retries = 0
1753
1754# Try to use HA queues in RabbitMQ (x-ha-policy: all). If you change this
1755# option, you must wipe the RabbitMQ database. In RabbitMQ 3.0, queue mirroring
1756# is no longer controlled by the x-ha-policy argument when declaring a queue. If
1757# you just want to make sure that all queues (except those with auto-generated
1758# names) are mirrored across all nodes, run: "rabbitmqctl set_policy HA
1759# '^(?!amq\.).*' '{"ha-mode": "all"}' " (boolean value)
1760# Deprecated group/name - [DEFAULT]/rabbit_ha_queues
1761#rabbit_ha_queues = false
1762
1763# Positive integer representing duration in seconds for queue TTL (x-expires).
1764# Queues which are unused for the duration of the TTL are automatically deleted.
1765# The parameter affects only reply and fanout queues. (integer value)
1766# Minimum value: 1
1767#rabbit_transient_queues_ttl = 1800
1768
1769# Specifies the number of messages to prefetch. Setting to zero allows unlimited
1770# messages. (integer value)
1771#rabbit_qos_prefetch_count = 0
1772
1773# Number of seconds after which the Rabbit broker is considered down if
1774# heartbeat's keep-alive fails (0 disable the heartbeat). EXPERIMENTAL (integer
1775# value)
1776#heartbeat_timeout_threshold = 60
1777
1778# How often times during the heartbeat_timeout_threshold we check the heartbeat.
1779# (integer value)
1780#heartbeat_rate = 2
1781
1782# Deprecated, use rpc_backend=kombu+memory or rpc_backend=fake (boolean value)
1783# Deprecated group/name - [DEFAULT]/fake_rabbit
1784#fake_rabbit = false
1785
1786# Maximum number of channels to allow (integer value)
1787#channel_max = <None>
1788
1789# The maximum byte size for an AMQP frame (integer value)
1790#frame_max = <None>
1791
1792# How often to send heartbeats for consumer's connections (integer value)
1793#heartbeat_interval = 3
1794
1795# Enable SSL (boolean value)
1796#ssl = <None>
1797
1798# Arguments passed to ssl.wrap_socket (dict value)
1799#ssl_options = <None>
1800
1801# Set socket timeout in seconds for connection's socket (floating point value)
1802#socket_timeout = 0.25
1803
1804# Set TCP_USER_TIMEOUT in seconds for connection's socket (floating point value)
1805#tcp_user_timeout = 0.25
1806
1807# Set delay for reconnection to some host which has connection error (floating
1808# point value)
1809#host_connection_reconnect_delay = 0.25
1810
1811# Connection factory implementation (string value)
1812# Allowed values: new, single, read_write
1813#connection_factory = single
1814
1815# Maximum number of connections to keep queued. (integer value)
1816#pool_max_size = 30
1817
1818# Maximum number of connections to create above `pool_max_size`. (integer value)
1819#pool_max_overflow = 0
1820
1821# Default number of seconds to wait for a connections to available (integer
1822# value)
1823#pool_timeout = 30
1824
1825# Lifetime of a connection (since creation) in seconds or None for no recycling.
1826# Expired connections are closed on acquire. (integer value)
1827#pool_recycle = 600
1828
1829# Threshold at which inactive (since release) connections are considered stale
1830# in seconds or None for no staleness. Stale connections are closed on acquire.
1831# (integer value)
1832#pool_stale = 60
1833
1834# Persist notification messages. (boolean value)
1835#notification_persistence = false
1836
1837# Exchange name for sending notifications (string value)
1838#default_notification_exchange = ${control_exchange}_notification
1839
1840# Max number of not acknowledged message which RabbitMQ can send to notification
1841# listener. (integer value)
1842#notification_listener_prefetch_count = 100
1843
1844# Reconnecting retry count in case of connectivity problem during sending
1845# notification, -1 means infinite retry. (integer value)
1846#default_notification_retry_attempts = -1
1847
1848# Reconnecting retry delay in case of connectivity problem during sending
1849# notification message (floating point value)
1850#notification_retry_delay = 0.25
1851
1852# Time to live for rpc queues without consumers in seconds. (integer value)
1853#rpc_queue_expiration = 60
1854
1855# Exchange name for sending RPC messages (string value)
1856#default_rpc_exchange = ${control_exchange}_rpc
1857
1858# Exchange name for receiving RPC replies (string value)
1859#rpc_reply_exchange = ${control_exchange}_rpc_reply
1860
1861# Max number of not acknowledged message which RabbitMQ can send to rpc
1862# listener. (integer value)
1863#rpc_listener_prefetch_count = 100
1864
1865# Max number of not acknowledged message which RabbitMQ can send to rpc reply
1866# listener. (integer value)
1867#rpc_reply_listener_prefetch_count = 100
1868
1869# Reconnecting retry count in case of connectivity problem during sending reply.
1870# -1 means infinite retry during rpc_timeout (integer value)
1871#rpc_reply_retry_attempts = -1
1872
1873# Reconnecting retry delay in case of connectivity problem during sending reply.
1874# (floating point value)
1875#rpc_reply_retry_delay = 0.25
1876
1877# Reconnecting retry count in case of connectivity problem during sending RPC
1878# message, -1 means infinite retry. If actual retry attempts in not 0 the rpc
1879# request could be processed more then one time (integer value)
1880#default_rpc_retry_attempts = -1
1881
1882# Reconnecting retry delay in case of connectivity problem during sending RPC
1883# message (floating point value)
1884#rpc_retry_delay = 0.25
1885
1886
1887[oslo_messaging_zmq]
1888
1889#
1890# From oslo.messaging
1891#
1892
1893# ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
1894# The "host" option should point or resolve to this address. (string value)
1895# Deprecated group/name - [DEFAULT]/rpc_zmq_bind_address
1896#rpc_zmq_bind_address = *
1897
1898# MatchMaker driver. (string value)
1899# Allowed values: redis, dummy
1900# Deprecated group/name - [DEFAULT]/rpc_zmq_matchmaker
1901#rpc_zmq_matchmaker = redis
1902
1903# Number of ZeroMQ contexts, defaults to 1. (integer value)
1904# Deprecated group/name - [DEFAULT]/rpc_zmq_contexts
1905#rpc_zmq_contexts = 1
1906
1907# Maximum number of ingress messages to locally buffer per topic. Default is
1908# unlimited. (integer value)
1909# Deprecated group/name - [DEFAULT]/rpc_zmq_topic_backlog
1910#rpc_zmq_topic_backlog = <None>
1911
1912# Directory for holding IPC sockets. (string value)
1913# Deprecated group/name - [DEFAULT]/rpc_zmq_ipc_dir
1914#rpc_zmq_ipc_dir = /var/run/openstack
1915
1916# Name of this node. Must be a valid hostname, FQDN, or IP address. Must match
1917# "host" option, if running Nova. (string value)
1918# Deprecated group/name - [DEFAULT]/rpc_zmq_host
1919#rpc_zmq_host = localhost
1920
1921# Seconds to wait before a cast expires (TTL). The default value of -1 specifies
1922# an infinite linger period. The value of 0 specifies no linger period. Pending
1923# messages shall be discarded immediately when the socket is closed. Only
1924# supported by impl_zmq. (integer value)
1925# Deprecated group/name - [DEFAULT]/rpc_cast_timeout
1926#rpc_cast_timeout = -1
1927
1928# The default number of seconds that poll should wait. Poll raises timeout
1929# exception when timeout expired. (integer value)
1930# Deprecated group/name - [DEFAULT]/rpc_poll_timeout
1931#rpc_poll_timeout = 1
1932
1933# Expiration timeout in seconds of a name service record about existing target (
1934# < 0 means no timeout). (integer value)
1935# Deprecated group/name - [DEFAULT]/zmq_target_expire
1936#zmq_target_expire = 300
1937
1938# Update period in seconds of a name service record about existing target.
1939# (integer value)
1940# Deprecated group/name - [DEFAULT]/zmq_target_update
1941#zmq_target_update = 180
1942
1943# Use PUB/SUB pattern for fanout methods. PUB/SUB always uses proxy. (boolean
1944# value)
1945# Deprecated group/name - [DEFAULT]/use_pub_sub
1946#use_pub_sub = true
1947
1948# Use ROUTER remote proxy. (boolean value)
1949# Deprecated group/name - [DEFAULT]/use_router_proxy
1950#use_router_proxy = true
1951
1952# Minimal port number for random ports range. (port value)
1953# Minimum value: 0
1954# Maximum value: 65535
1955# Deprecated group/name - [DEFAULT]/rpc_zmq_min_port
1956#rpc_zmq_min_port = 49153
1957
1958# Maximal port number for random ports range. (integer value)
1959# Minimum value: 1
1960# Maximum value: 65536
1961# Deprecated group/name - [DEFAULT]/rpc_zmq_max_port
1962#rpc_zmq_max_port = 65536
1963
1964# Number of retries to find free port number before fail with ZMQBindError.
1965# (integer value)
1966# Deprecated group/name - [DEFAULT]/rpc_zmq_bind_port_retries
1967#rpc_zmq_bind_port_retries = 100
1968
1969# Default serialization mechanism for serializing/deserializing
1970# outgoing/incoming messages (string value)
1971# Allowed values: json, msgpack
1972# Deprecated group/name - [DEFAULT]/rpc_zmq_serialization
1973#rpc_zmq_serialization = json
1974
1975# This option configures round-robin mode in zmq socket. True means not keeping
1976# a queue when server side disconnects. False means to keep queue and messages
1977# even if server is disconnected, when the server appears we send all
1978# accumulated messages to it. (boolean value)
1979#zmq_immediate = false
1980
1981
1982[oslo_policy]
1983
1984#
1985# From oslo.policy
1986#
1987
1988# The JSON file that defines policies. (string value)
1989# Deprecated group/name - [DEFAULT]/policy_file
1990#policy_file = policy.json
1991policy_file = /etc/glance/policy.json
1992
1993# Default rule. Enforced when a requested rule is not found. (string value)
1994# Deprecated group/name - [DEFAULT]/policy_default_rule
1995#policy_default_rule = default
1996
1997# Directories where policy configuration files are stored. They can be relative
1998# to any directory in the search path defined by the config_dir option, or
1999# absolute paths. The file defined by policy_file must exist for these
2000# directories to be searched. Missing or empty directories are ignored. (multi
2001# valued)
2002# Deprecated group/name - [DEFAULT]/policy_dirs
2003#policy_dirs = policy.d
2004
2005
2006[paste_deploy]
2007
2008#
2009# From glance.registry
2010#
2011
2012#
2013# Deployment flavor to use in the server application pipeline.
2014#
2015# Provide a string value representing the appropriate deployment
2016# flavor used in the server application pipleline. This is typically
2017# the partial name of a pipeline in the paste configuration file with
2018# the service name removed.
2019#
2020# For example, if your paste section name in the paste configuration
2021# file is [pipeline:glance-api-keystone], set ``flavor`` to
2022# ``keystone``.
2023#
2024# Possible values:
2025# * String value representing a partial pipeline name.
2026#
2027# Related Options:
2028# * config_file
2029#
2030# (string value)
2031#flavor = keystone
2032flavor = keystone
2033
2034#
2035# Name of the paste configuration file.
2036#
2037# Provide a string value representing the name of the paste
2038# configuration file to use for configuring piplelines for
2039# server application deployments.
2040#
2041# NOTES:
2042# * Provide the name or the path relative to the glance directory
2043# for the paste configuration file and not the absolute path.
2044# * The sample paste configuration file shipped with Glance need
2045# not be edited in most cases as it comes with ready-made
2046# pipelines for all common deployment flavors.
2047#
2048# If no value is specified for this option, the ``paste.ini`` file
2049# with the prefix of the corresponding Glance service's configuration
2050# file name will be searched for in the known configuration
2051# directories. (For example, if this option is missing from or has no
2052# value set in ``glance-api.conf``, the service will look for a file
2053# named ``glance-api-paste.ini``.) If the paste configuration file is
2054# not found, the service will not start.
2055#
2056# Possible values:
2057# * A string value representing the name of the paste configuration
2058# file.
2059#
2060# Related Options:
2061# * flavor
2062#
2063# (string value)
2064#config_file = glance-api-paste.ini
2065
2066
2067[profiler]
2068
2069#
2070# From glance.registry
2071#
2072
2073#
2074# Enables the profiling for all services on this node. Default value is False
2075# (fully disable the profiling feature).
2076#
2077# Possible values:
2078#
2079# * True: Enables the feature
2080# * False: Disables the feature. The profiling cannot be started via this
2081# project
2082# operations. If the profiling is triggered by another project, this project
2083# part
2084# will be empty.
2085# (boolean value)
2086# Deprecated group/name - [profiler]/profiler_enabled
2087#enabled = false
2088
2089#
2090# Enables SQL requests profiling in services. Default value is False (SQL
2091# requests won't be traced).
2092#
2093# Possible values:
2094#
2095# * True: Enables SQL requests profiling. Each SQL query will be part of the
2096# trace and can the be analyzed by how much time was spent for that.
2097# * False: Disables SQL requests profiling. The spent time is only shown on a
2098# higher level of operations. Single SQL queries cannot be analyzed this
2099# way.
2100# (boolean value)
2101#trace_sqlalchemy = false
2102
2103#
2104# Secret key(s) to use for encrypting context data for performance profiling.
2105# This string value should have the following format: <key1>[,<key2>,...<keyn>],
2106# where each key is some random string. A user who triggers the profiling via
2107# the REST API has to set one of these keys in the headers of the REST API call
2108# to include profiling results of this node for this particular project.
2109#
2110# Both "enabled" flag and "hmac_keys" config options should be set to enable
2111# profiling. Also, to generate correct profiling information across all services
2112# at least one key needs to be consistent between OpenStack projects. This
2113# ensures it can be used from client side to generate the trace, containing
2114# information from all possible resources. (string value)
2115#hmac_keys = SECRET_KEY
2116
2117#
2118# Connection string for a notifier backend. Default value is messaging:// which
2119# sets the notifier to oslo_messaging.
2120#
2121# Examples of possible values:
2122#
2123# * messaging://: use oslo_messaging driver for sending notifications.
2124# (string value)
2125#connection_string = messaging://
Oleksandr Bryndziif87ae002019-04-24 13:20:57 +03002126
2127{%- if server.get('configmap', {}).glance_registry is defined %}
2128{%- set _data = server.configmap.glance_registry %}
2129{%- include "oslo_templates/files/configmap/configmap.conf" %}
2130{%- endif %}