blob: ed410f87330d84ce6d17e9f6d20348030c617f96 [file] [log] [blame]
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001{%- from "glance/map.jinja" import server with context %}
Petr Michalec72b35382016-12-04 10:27:27 +01002{% set storage_engines = server.storage.engine.split(',') %}
Jakub Pavlik7e02d742016-04-11 12:18:48 +02003[DEFAULT]
4
5#
6# From glance.api
7#
8
9# When true, this option sets the owner of an image to be the tenant.
10# Otherwise, the owner of the image will be the authenticated user
11# issuing the request. (boolean value)
12#owner_is_tenant = true
13
14# Role used to identify an authenticated user as administrator.
15# (string value)
16#admin_role = admin
17
18# Allow unauthenticated users to access the API with read-only
19# privileges. This only applies when using ContextMiddleware. (boolean
20# value)
21#allow_anonymous_access = false
22
23# Limits request ID length. (integer value)
24#max_request_id_length = 64
25
26# Public url to use for versions endpoint. The default is None, which
27# will use the request's host_url attribute to populate the URL base.
28# If Glance is operating behind a proxy, you will want to change this
29# to represent the proxy's URL. (string value)
30#public_endpoint = <None>
31
32# Whether to allow users to specify image properties beyond what the
33# image schema provides (boolean value)
34#allow_additional_image_properties = true
35
36# Maximum number of image members per image. Negative values evaluate
37# to unlimited. (integer value)
38#image_member_quota = 128
39
40# Maximum number of properties allowed on an image. Negative values
41# evaluate to unlimited. (integer value)
42#image_property_quota = 128
43
44# Maximum number of tags allowed on an image. Negative values evaluate
45# to unlimited. (integer value)
46#image_tag_quota = 128
47
48# Maximum number of locations allowed on an image. Negative values
49# evaluate to unlimited. (integer value)
50#image_location_quota = 10
51
52# Python module path of data access API (string value)
53#data_api = glance.db.sqlalchemy.api
54
55# Default value for the number of items returned by a request if not
56# specified explicitly in the request (integer value)
57#limit_param_default = 25
58
59# Maximum permissible number of items that could be returned by a
60# request (integer value)
61#api_limit_max = 1000
62
63# Whether to include the backend image storage location in image
64# properties. Revealing storage location can be a security risk, so
65# use this setting with caution! (boolean value)
66#show_image_direct_url = false
67show_image_direct_url = true
68
69# Whether to include the backend image locations in image properties.
70# For example, if using the file system store a URL of
71# "file:///path/to/image" will be returned to the user in the
72# 'direct_url' meta-data field. Revealing storage location can be a
73# security risk, so use this setting with caution! Setting this to
74# true overrides the show_image_direct_url option. (boolean value)
75#show_multiple_locations = false
76
77# Maximum size of image a user can upload in bytes. Defaults to
78# 1099511627776 bytes (1 TB).WARNING: this value should only be
79# increased after careful consideration and must be set to a value
80# under 8 EB (9223372036854775808). (integer value)
81# Maximum value: 9223372036854775808
82#image_size_cap = 1099511627776
83
84# Set a system wide quota for every user. This value is the total
85# capacity that a user can use across all storage systems. A value of
86# 0 means unlimited.Optional unit can be specified for the value.
87# Accepted units are B, KB, MB, GB and TB representing Bytes,
88# KiloBytes, MegaBytes, GigaBytes and TeraBytes respectively. If no
89# unit is specified then Bytes is assumed. Note that there should not
90# be any space between value and unit and units are case sensitive.
91# (string value)
92#user_storage_quota = 0
93
94# Deploy the v1 OpenStack Images API. (boolean value)
95#enable_v1_api = true
96
97# Deploy the v2 OpenStack Images API. (boolean value)
98#enable_v2_api = true
99
100# Deploy the v1 OpenStack Registry API. (boolean value)
101#enable_v1_registry = true
102
103# Deploy the v2 OpenStack Registry API. (boolean value)
104#enable_v2_registry = true
105
106# The hostname/IP of the pydev process listening for debug connections
107# (string value)
108#pydev_worker_debug_host = <None>
109
110# The port on which a pydev process is listening for connections.
111# (port value)
112# Minimum value: 0
113# Maximum value: 65535
114#pydev_worker_debug_port = 5678
115
116# AES key for encrypting store 'location' metadata. This includes, if
117# used, Swift or S3 credentials. Should be set to a random string of
118# length 16, 24 or 32 bytes (string value)
119#metadata_encryption_key = <None>
120
121# Digest algorithm which will be used for digital signature. Use the
122# command "openssl list-message-digest-algorithms" to get the
123# available algorithms supported by the version of OpenSSL on the
124# platform. Examples are "sha1", "sha256", "sha512", etc. (string
125# value)
126#digest_algorithm = sha256
127
128# This value sets what strategy will be used to determine the image
129# location order. Currently two strategies are packaged with Glance
130# 'location_order' and 'store_type'. (string value)
131# Allowed values: location_order, store_type
132#location_strategy = location_order
133
134# The location of the property protection file.This file contains the
135# rules for property protections and the roles/policies associated
136# with it. If this config value is not specified, by default, property
137# protections won't be enforced. If a value is specified and the file
138# is not found, then the glance-api service will not start. (string
139# value)
140#property_protection_file = <None>
141
142# This config value indicates whether "roles" or "policies" are used
143# in the property protection file. (string value)
144# Allowed values: roles, policies
145#property_protection_rule_format = roles
146
147# Modules of exceptions that are permitted to be recreated upon
148# receiving exception data from an rpc call. (list value)
149#allowed_rpc_exception_modules = glance.common.exception,builtins,exceptions
150
151# Address to bind the server. Useful when selecting a particular
152# network interface. (string value)
153#bind_host = 0.0.0.0
154bind_host = {{ server.bind.address }}
155
156# The port on which the server will listen. (port value)
157# Minimum value: 0
158# Maximum value: 65535
159#bind_port = <None>
160bind_port = {{ server.bind.port }}
161
162# The number of child process workers that will be created to service
163# requests. The default will be equal to the number of CPUs available.
164# (integer value)
165#workers = <None>
166workers = {{ server.workers }}
167
168# Maximum line size of message headers to be accepted. max_header_line
169# may need to be increased when using large tokens (typically those
170# generated by the Keystone v3 API with big service catalogs (integer
171# value)
172#max_header_line = 16384
173
174# If False, server will return the header "Connection: close", If
175# True, server will return "Connection: Keep-Alive" in its responses.
176# In order to close the client socket connection explicitly after the
177# response is sent and read successfully by the client, you simply
178# have to set this option to False when you create a wsgi server.
179# (boolean value)
180#http_keepalive = true
181
182# Timeout for client connections' socket operations. If an incoming
183# connection is idle for this number of seconds it will be closed. A
184# value of '0' means wait forever. (integer value)
185#client_socket_timeout = 900
186
187# The backlog value that will be used when creating the TCP listener
188# socket. (integer value)
189#backlog = 4096
190backlog = 4096
191
192# The value for the socket option TCP_KEEPIDLE. This is the time in
193# seconds that the connection must be idle before TCP starts sending
194# keepalive probes. (integer value)
195#tcp_keepidle = 600
196
197# CA certificate file to use to verify connecting clients. (string
198# value)
199#ca_file = <None>
200
201# Certificate file to use when starting API server securely. (string
202# value)
203#cert_file = <None>
204
205# Private key file to use when starting API server securely. (string
206# value)
207#key_file = <None>
208
209# The path to the sqlite file database that will be used for image
210# cache management. (string value)
211#image_cache_sqlite_db = cache.db
212
213# The driver to use for image cache management. (string value)
214#image_cache_driver = sqlite
215
216# The upper limit (the maximum size of accumulated cache in bytes)
217# beyond which the cache pruner, if running, starts cleaning the image
218# cache. (integer value)
219#image_cache_max_size = 10737418240
220
221# The amount of time to let an incomplete image remain in the cache,
222# before the cache cleaner, if running, will remove the incomplete
223# image. (integer value)
224#image_cache_stall_time = 86400
225
226# Base directory that the image cache uses. (string value)
227#image_cache_dir = <None>
228image_cache_dir = /var/lib/glance/image-cache/
229
230# Default publisher_id for outgoing notifications. (string value)
231#default_publisher_id = image.localhost
232
233# List of disabled notifications. A notification can be given either
234# as a notification type to disable a single event, or as a
235# notification group prefix to disable all events within a group.
236# Example: if this config option is set to ["image.create",
237# "metadef_namespace"], then "image.create" notification will not be
238# sent after image is created and none of the notifications for
239# metadefinition namespaces will be sent. (list value)
240#disabled_notifications =
241
242# Address to find the registry server. (string value)
243#registry_host = 0.0.0.0
244registry_host = {{ server.registry.host }}
245
246# Port the registry server is listening on. (port value)
247# Minimum value: 0
248# Maximum value: 65535
249#registry_port = 9191
250registry_port = {{ server.registry.port }}
251
252# Whether to pass through the user token when making requests to the
253# registry. To prevent failures with token expiration during big files
254# upload, it is recommended to set this parameter to False.If
255# "use_user_token" is not in effect, then admin credentials can be
256# specified. (boolean value)
257# This option is deprecated for removal.
258# Its value may be silently ignored in the future.
259# Reason: This option was considered harmful and has been deprecated
260# in M release. It will be removed in O release. For more information
261# read OSSN-0060. Related functionality with uploading big images has
262# been implemented with Keystone trusts support.
263#use_user_token = true
264
265# The administrators user name. If "use_user_token" is not in effect,
266# then admin credentials can be specified. (string value)
267# This option is deprecated for removal.
268# Its value may be silently ignored in the future.
269# Reason: This option was considered harmful and has been deprecated
270# in M release. It will be removed in O release. For more information
271# read OSSN-0060. Related functionality with uploading big images has
272# been implemented with Keystone trusts support.
273#admin_user = <None>
274
275# The administrators password. If "use_user_token" is not in effect,
276# then admin credentials can be specified. (string value)
277# This option is deprecated for removal.
278# Its value may be silently ignored in the future.
279# Reason: This option was considered harmful and has been deprecated
280# in M release. It will be removed in O release. For more information
281# read OSSN-0060. Related functionality with uploading big images has
282# been implemented with Keystone trusts support.
283#admin_password = <None>
284
285# The tenant name of the administrative user. If "use_user_token" is
286# not in effect, then admin tenant name can be specified. (string
287# value)
288# This option is deprecated for removal.
289# Its value may be silently ignored in the future.
290# Reason: This option was considered harmful and has been deprecated
291# in M release. It will be removed in O release. For more information
292# read OSSN-0060. Related functionality with uploading big images has
293# been implemented with Keystone trusts support.
294#admin_tenant_name = <None>
295
296# The URL to the keystone service. If "use_user_token" is not in
297# effect and using keystone auth, then URL of keystone can be
298# specified. (string value)
299# This option is deprecated for removal.
300# Its value may be silently ignored in the future.
301# Reason: This option was considered harmful and has been deprecated
302# in M release. It will be removed in O release. For more information
303# read OSSN-0060. Related functionality with uploading big images has
304# been implemented with Keystone trusts support.
305#auth_url = <None>
306
307# The strategy to use for authentication. If "use_user_token" is not
308# in effect, then auth strategy can be specified. (string value)
309# This option is deprecated for removal.
310# Its value may be silently ignored in the future.
311# Reason: This option was considered harmful and has been deprecated
312# in M release. It will be removed in O release. For more information
313# read OSSN-0060. Related functionality with uploading big images has
314# been implemented with Keystone trusts support.
315#auth_strategy = noauth
316
317# The region for the authentication service. If "use_user_token" is
318# not in effect and using keystone auth, then region name can be
319# specified. (string value)
320# This option is deprecated for removal.
321# Its value may be silently ignored in the future.
322# Reason: This option was considered harmful and has been deprecated
323# in M release. It will be removed in O release. For more information
324# read OSSN-0060. Related functionality with uploading big images has
325# been implemented with Keystone trusts support.
326#auth_region = <None>
327{% if server.identity.region is defined %}
328auth_region = {{ server.identity.region }}
329{% endif %}
330
331# The protocol to use for communication with the registry server.
332# Either http or https. (string value)
333#registry_client_protocol = http
334registry_client_protocol = http
335
336# The path to the key file to use in SSL connections to the registry
337# server, if any. Alternately, you may set the GLANCE_CLIENT_KEY_FILE
338# environment variable to a filepath of the key file (string value)
339#registry_client_key_file = <None>
340
341# The path to the cert file to use in SSL connections to the registry
342# server, if any. Alternately, you may set the GLANCE_CLIENT_CERT_FILE
343# environment variable to a filepath of the CA cert file (string
344# value)
345#registry_client_cert_file = <None>
346
347# The path to the certifying authority cert file to use in SSL
348# connections to the registry server, if any. Alternately, you may set
349# the GLANCE_CLIENT_CA_FILE environment variable to a filepath of the
350# CA cert file. (string value)
351#registry_client_ca_file = <None>
352
353# When using SSL in connections to the registry server, do not require
354# validation via a certifying authority. This is the registry's
355# equivalent of specifying --insecure on the command line using
356# glanceclient for the API. (boolean value)
357#registry_client_insecure = false
358
359# The period of time, in seconds, that the API server will wait for a
360# registry request to complete. A value of 0 implies no timeout.
361# (integer value)
362#registry_client_timeout = 600
363
364# Whether to pass through headers containing user and tenant
365# information when making requests to the registry. This allows the
366# registry to use the context middleware without keystonemiddleware's
367# auth_token middleware, removing calls to the keystone auth service.
368# It is recommended that when using this option, secure communication
369# between glance api and glance registry is ensured by means other
370# than auth_token middleware. (boolean value)
371#send_identity_headers = false
372
373# The amount of time in seconds to delay before performing a delete.
374# (integer value)
375#scrub_time = 0
376
377# The size of thread pool to be used for scrubbing images. The default
378# is one, which signifies serial scrubbing. Any value above one
379# indicates the max number of images that may be scrubbed in parallel.
380# (integer value)
381#scrub_pool_size = 1
382
383# Turn on/off delayed delete. (boolean value)
384#delayed_delete = false
385
386#
387# From oslo.log
388#
389
390# If set to true, the logging level will be set to DEBUG instead of
391# the default INFO level. (boolean value)
392#debug = false
393debug = false
394
395# If set to false, the logging level will be set to WARNING instead of
396# the default INFO level. (boolean value)
397# This option is deprecated for removal.
398# Its value may be silently ignored in the future.
399#verbose = true
400verbose = true
401
402# The name of a logging configuration file. This file is appended to
403# any existing logging configuration files. For details about logging
404# configuration files, see the Python logging module documentation.
405# Note that when logging configuration files are used then all logging
406# configuration is set in the configuration file and other logging
407# configuration options are ignored (for example,
408# logging_context_format_string). (string value)
409# Deprecated group/name - [DEFAULT]/log_config
410#log_config_append = <None>
411
412# Defines the format string for %%(asctime)s in log records. Default:
413# %(default)s . This option is ignored if log_config_append is set.
414# (string value)
415#log_date_format = %Y-%m-%d %H:%M:%S
416
417# (Optional) Name of log file to send logging output to. If no default
418# is set, logging will go to stderr as defined by use_stderr. This
419# option is ignored if log_config_append is set. (string value)
420# Deprecated group/name - [DEFAULT]/logfile
421#log_file = <None>
422log_file = /var/log/glance/api.log
423
424# (Optional) The base directory used for relative log_file paths.
425# This option is ignored if log_config_append is set. (string value)
426# Deprecated group/name - [DEFAULT]/logdir
427#log_dir = <None>
428
429# Uses logging handler designed to watch file system. When log file is
430# moved or removed this handler will open a new log file with
431# specified path instantaneously. It makes sense only if log_file
432# option is specified and Linux platform is used. This option is
433# ignored if log_config_append is set. (boolean value)
434#watch_log_file = false
435
436# Use syslog for logging. Existing syslog format is DEPRECATED and
437# will be changed later to honor RFC5424. This option is ignored if
438# log_config_append is set. (boolean value)
439#use_syslog = false
440
441# Syslog facility to receive log lines. This option is ignored if
442# log_config_append is set. (string value)
443#syslog_log_facility = LOG_USER
444
445# Log output to standard error. This option is ignored if
446# log_config_append is set. (boolean value)
447#use_stderr = true
448
449# Format string to use for log messages with context. (string value)
450#logging_context_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
451
452# Format string to use for log messages when context is undefined.
453# (string value)
454#logging_default_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
455
456# Additional data to append to log message when logging level for the
457# message is DEBUG. (string value)
458#logging_debug_format_suffix = %(funcName)s %(pathname)s:%(lineno)d
459
460# Prefix each line of exception output with this format. (string
461# value)
462#logging_exception_prefix = %(asctime)s.%(msecs)03d %(process)d ERROR %(name)s %(instance)s
463
464# Defines the format string for %(user_identity)s that is used in
465# logging_context_format_string. (string value)
466#logging_user_identity_format = %(user)s %(tenant)s %(domain)s %(user_domain)s %(project_domain)s
467
468# List of package logging levels in logger=LEVEL pairs. This option is
469# ignored if log_config_append is set. (list value)
470#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
471
472# Enables or disables publication of error events. (boolean value)
473#publish_errors = false
474
475# The format for an instance that is passed with the log message.
476# (string value)
477#instance_format = "[instance: %(uuid)s] "
478
479# The format for an instance UUID that is passed with the log message.
480# (string value)
481#instance_uuid_format = "[instance: %(uuid)s] "
482
483# Enables or disables fatal status of deprecations. (boolean value)
484#fatal_deprecations = false
485
486#
487# From oslo.messaging
488#
489
490# Size of RPC connection pool. (integer value)
491# Deprecated group/name - [DEFAULT]/rpc_conn_pool_size
492#rpc_conn_pool_size = 30
493
494# ZeroMQ bind address. Should be a wildcard (*), an ethernet
495# interface, or IP. The "host" option should point or resolve to this
496# address. (string value)
497#rpc_zmq_bind_address = *
498
499# MatchMaker driver. (string value)
500# Allowed values: redis, dummy
501#rpc_zmq_matchmaker = redis
502
503# Type of concurrency used. Either "native" or "eventlet" (string
504# value)
505#rpc_zmq_concurrency = eventlet
506
507# Number of ZeroMQ contexts, defaults to 1. (integer value)
508#rpc_zmq_contexts = 1
509
510# Maximum number of ingress messages to locally buffer per topic.
511# Default is unlimited. (integer value)
512#rpc_zmq_topic_backlog = <None>
513
514# Directory for holding IPC sockets. (string value)
515#rpc_zmq_ipc_dir = /var/run/openstack
516
517# Name of this node. Must be a valid hostname, FQDN, or IP address.
518# Must match "host" option, if running Nova. (string value)
519#rpc_zmq_host = localhost
520
521# Seconds to wait before a cast expires (TTL). The default value of -1
522# specifies an infinite linger period. The value of 0 specifies no
523# linger period. Pending messages shall be discarded immediately when
524# the socket is closed. Only supported by impl_zmq. (integer value)
525#rpc_cast_timeout = -1
526
527# The default number of seconds that poll should wait. Poll raises
528# timeout exception when timeout expired. (integer value)
529#rpc_poll_timeout = 1
530
531# Expiration timeout in seconds of a name service record about
532# existing target ( < 0 means no timeout). (integer value)
533#zmq_target_expire = 120
534
535# Use PUB/SUB pattern for fanout methods. PUB/SUB always uses proxy.
536# (boolean value)
537#use_pub_sub = true
538
539# Minimal port number for random ports range. (port value)
540# Minimum value: 0
541# Maximum value: 65535
542#rpc_zmq_min_port = 49152
543
544# Maximal port number for random ports range. (integer value)
545# Minimum value: 1
546# Maximum value: 65536
547#rpc_zmq_max_port = 65536
548
549# Number of retries to find free port number before fail with
550# ZMQBindError. (integer value)
551#rpc_zmq_bind_port_retries = 100
552
553# Size of executor thread pool. (integer value)
554# Deprecated group/name - [DEFAULT]/rpc_thread_pool_size
555#executor_thread_pool_size = 64
556
557# Seconds to wait for a response from a call. (integer value)
558#rpc_response_timeout = 60
559
560# A URL representing the messaging driver to use and its full
561# configuration. If not set, we fall back to the rpc_backend option
562# and driver specific configuration. (string value)
563#transport_url = <None>
564
565# The messaging driver to use, defaults to rabbit. Other drivers
566# include amqp and zmq. (string value)
567#rpc_backend = rabbit
568
569# The default exchange under which topics are scoped. May be
570# overridden by an exchange name specified in the transport_url
571# option. (string value)
572#control_exchange = openstack
573control_exchange = openstack
574
575
576[cors]
577
578#
579# From oslo.middleware.cors
580#
581
582# Indicate whether this resource may be shared with the domain
583# received in the requests "origin" header. (list value)
584#allowed_origin = <None>
585
586# Indicate that the actual request can include user credentials
587# (boolean value)
588#allow_credentials = true
589
590# Indicate which headers are safe to expose to the API. Defaults to
591# HTTP Simple Headers. (list value)
592#expose_headers = X-Image-Meta-Checksum,X-Auth-Token,X-Subject-Token,X-Service-Token,X-OpenStack-Request-ID
593
594# Maximum cache age of CORS preflight requests. (integer value)
595#max_age = 3600
596
597# Indicate which methods can be used during the actual request. (list
598# value)
599#allow_methods = GET,PUT,POST,DELETE,PATCH
600
601# Indicate which header field names may be used during the actual
602# request. (list value)
603#allow_headers = Content-MD5,X-Image-Meta-Checksum,X-Storage-Token,Accept-Encoding,X-Auth-Token,X-Identity-Status,X-Roles,X-Service-Catalog,X-User-Id,X-Tenant-Id,X-OpenStack-Request-ID
604
605
606[cors.subdomain]
607
608#
609# From oslo.middleware.cors
610#
611
612# Indicate whether this resource may be shared with the domain
613# received in the requests "origin" header. (list value)
614#allowed_origin = <None>
615
616# Indicate that the actual request can include user credentials
617# (boolean value)
618#allow_credentials = true
619
620# Indicate which headers are safe to expose to the API. Defaults to
621# HTTP Simple Headers. (list value)
622#expose_headers = X-Image-Meta-Checksum,X-Auth-Token,X-Subject-Token,X-Service-Token,X-OpenStack-Request-ID
623
624# Maximum cache age of CORS preflight requests. (integer value)
625#max_age = 3600
626
627# Indicate which methods can be used during the actual request. (list
628# value)
629#allow_methods = GET,PUT,POST,DELETE,PATCH
630
631# Indicate which header field names may be used during the actual
632# request. (list value)
633#allow_headers = Content-MD5,X-Image-Meta-Checksum,X-Storage-Token,Accept-Encoding,X-Auth-Token,X-Identity-Status,X-Roles,X-Service-Catalog,X-User-Id,X-Tenant-Id,X-OpenStack-Request-ID
634
635
636[database]
637
638#
639# From oslo.db
640#
641
642# The file name to use with SQLite. (string value)
643# Deprecated group/name - [DEFAULT]/sqlite_db
644#sqlite_db = oslo.sqlite
645
646# If True, SQLite uses synchronous mode. (boolean value)
647# Deprecated group/name - [DEFAULT]/sqlite_synchronous
648#sqlite_synchronous = true
649
650# The back end to use for the database. (string value)
651# Deprecated group/name - [DEFAULT]/db_backend
652#backend = sqlalchemy
653backend = sqlalchemy
654
655# The SQLAlchemy connection string to use to connect to the database.
656# (string value)
657# Deprecated group/name - [DEFAULT]/sql_connection
658# Deprecated group/name - [DATABASE]/sql_connection
659# Deprecated group/name - [sql]/connection
660#connection = <None>
661connection = {{ server.database.engine }}+pymysql://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}
662
663# The SQLAlchemy connection string to use to connect to the slave
664# database. (string value)
665#slave_connection = <None>
666
667# The SQL mode to be used for MySQL sessions. This option, including
668# the default, overrides any server-set SQL mode. To use whatever SQL
669# mode is set by the server configuration, set this to no value.
670# Example: mysql_sql_mode= (string value)
671#mysql_sql_mode = TRADITIONAL
672
673# Timeout before idle SQL connections are reaped. (integer value)
674# Deprecated group/name - [DEFAULT]/sql_idle_timeout
675# Deprecated group/name - [DATABASE]/sql_idle_timeout
676# Deprecated group/name - [sql]/idle_timeout
677#idle_timeout = 3600
678idle_timeout = 3600
679
680# Minimum number of SQL connections to keep open in a pool. (integer
681# value)
682# Deprecated group/name - [DEFAULT]/sql_min_pool_size
683# Deprecated group/name - [DATABASE]/sql_min_pool_size
684#min_pool_size = 1
685
686# Maximum number of SQL connections to keep open in a pool. (integer
687# value)
688# Deprecated group/name - [DEFAULT]/sql_max_pool_size
689# Deprecated group/name - [DATABASE]/sql_max_pool_size
690#max_pool_size = <None>
691
692# Maximum number of database connection retries during startup. Set to
693# -1 to specify an infinite retry count. (integer value)
694# Deprecated group/name - [DEFAULT]/sql_max_retries
695# Deprecated group/name - [DATABASE]/sql_max_retries
696#max_retries = 10
697max_retries = -1
698
699# Interval between retries of opening a SQL connection. (integer
700# value)
701# Deprecated group/name - [DEFAULT]/sql_retry_interval
702# Deprecated group/name - [DATABASE]/reconnect_interval
703#retry_interval = 10
704
705# If set, use this value for max_overflow with SQLAlchemy. (integer
706# value)
707# Deprecated group/name - [DEFAULT]/sql_max_overflow
708# Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow
709#max_overflow = 50
710max_overflow = 30
711
712# Verbosity of SQL debugging information: 0=None, 100=Everything.
713# (integer value)
714# Deprecated group/name - [DEFAULT]/sql_connection_debug
715#connection_debug = 0
716
717# Add Python stack traces to SQL as comment strings. (boolean value)
718# Deprecated group/name - [DEFAULT]/sql_connection_trace
719#connection_trace = false
720
721# If set, use this value for pool_timeout with SQLAlchemy. (integer
722# value)
723# Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout
724#pool_timeout = <None>
725
726# Enable the experimental use of database reconnect on connection
727# lost. (boolean value)
728#use_db_reconnect = false
729
730# Seconds between retries of a database transaction. (integer value)
731#db_retry_interval = 1
732
733# If True, increases the interval between retries of a database
734# operation up to db_max_retry_interval. (boolean value)
735#db_inc_retry_interval = true
736
737# If db_inc_retry_interval is set, the maximum seconds between retries
738# of a database operation. (integer value)
739#db_max_retry_interval = 10
740
741# Maximum retries in case of connection error or deadlock error before
742# error is raised. Set to -1 to specify an infinite retry count.
743# (integer value)
744#db_max_retries = 20
745
746#
747# From oslo.db.concurrency
748#
749
750# Enable the experimental use of thread pooling for all DB API calls
751# (boolean value)
752# Deprecated group/name - [DEFAULT]/dbapi_use_tpool
753#use_tpool = false
754
755
756[glance_store]
757
758#
759# From glance.store
760#
761
762# List of stores enabled. Valid stores are: cinder, file, http, rbd,
763# sheepdog, swift, s3, vsphere (list value)
764#stores = file,http
Petr Michalec72b35382016-12-04 10:27:27 +0100765{%- if 'file' in storage_engines %}
Jakub Pavlik7e02d742016-04-11 12:18:48 +0200766default_store = file
767stores = file,http
768{%- else %}
Petr Michalec72b35382016-12-04 10:27:27 +0100769default_store = {{ storage_engines[0] }}
Jakub Pavlik7e02d742016-04-11 12:18:48 +0200770stores = {{ server.storage.engine }}
771{%- endif %}
772# Default scheme to use to store image data. The scheme must be
773# registered by one of the stores defined by the 'stores' config
774# option. (string value)
775#default_store = file
776
777# Minimum interval seconds to execute updating dynamic storage
778# capabilities based on backend status then. It's not a periodic
779# routine, the update logic will be executed only when interval
780# seconds elapsed and an operation of store has triggered. The feature
781# will be enabled only when the option value greater then zero.
782# (integer value)
783#store_capabilities_update_min_interval = 0
784
785# Specify the path to the CA bundle file to use in verifying the
786# remote server certificate. (string value)
787#https_ca_certificates_file = <None>
788
789# If true, the remote server certificate is not verified. If false,
790# then the default CA truststore is used for verification. This option
791# is ignored if "https_ca_certificates_file" is set. (boolean value)
792#https_insecure = true
793
794# Specify the http/https proxy information that should be used to
795# connect to the remote server. The proxy information should be a key
796# value pair of the scheme and proxy. e.g. http:10.0.0.1:3128. You can
797# specify proxies for multiple schemes by seperating the key value
798# pairs with a comma.e.g. http:10.0.0.1:3128, https:10.0.0.1:1080.
799# (dict value)
800#http_proxy_information =
801
802# If True, swiftclient won't check for a valid SSL certificate when
803# authenticating. (boolean value)
804#swift_store_auth_insecure = false
805
806# A string giving the CA certificate file to use in SSL connections
807# for verifying certs. (string value)
808#swift_store_cacert = <None>
809
810# The region of the swift endpoint to be used for single tenant. This
811# setting is only necessary if the tenant has multiple swift
812# endpoints. (string value)
813#swift_store_region = <None>
814
815# If set, the configured endpoint will be used. If None, the storage
816# url from the auth response will be used. (string value)
817#swift_store_endpoint = <None>
818
819# A string giving the endpoint type of the swift service to use
820# (publicURL, adminURL or internalURL). This setting is only used if
821# swift_store_auth_version is 2. (string value)
822#swift_store_endpoint_type = publicURL
823
824# A string giving the service type of the swift service to use. This
825# setting is only used if swift_store_auth_version is 2. (string
826# value)
827#swift_store_service_type = object-store
828
829# Container within the account that the account should use for storing
830# images in Swift when using single container mode. In multiple
831# container mode, this will be the prefix for all containers. (string
832# value)
833#swift_store_container = glance
834
835# The size, in MB, that Glance will start chunking image files and do
836# a large object manifest in Swift. (integer value)
837#swift_store_large_object_size = 5120
838
839# The amount of data written to a temporary disk buffer during the
840# process of chunking the image file. (integer value)
841#swift_store_large_object_chunk_size = 200
842
843# A boolean value that determines if we create the container if it
844# does not exist. (boolean value)
845#swift_store_create_container_on_put = false
846
847# If set to True, enables multi-tenant storage mode which causes
848# Glance images to be stored in tenant specific Swift accounts.
849# (boolean value)
850#swift_store_multi_tenant = false
851
852# When set to 0, a single-tenant store will only use one container to
853# store all images. When set to an integer value between 1 and 32, a
854# single-tenant store will use multiple containers to store images,
855# and this value will determine how many containers are created.Used
856# only when swift_store_multi_tenant is disabled. The total number of
857# containers that will be used is equal to 16^N, so if this config
858# option is set to 2, then 16^2=256 containers will be used to store
859# images. (integer value)
860#swift_store_multiple_containers_seed = 0
861
862# A list of tenants that will be granted read/write access on all
863# Swift containers created by Glance in multi-tenant mode. (list
864# value)
865#swift_store_admin_tenants =
866
867# If set to False, disables SSL layer compression of https swift
868# requests. Setting to False may improve performance for images which
869# are already in a compressed format, eg qcow2. (boolean value)
870#swift_store_ssl_compression = true
871
872# The number of times a Swift download will be retried before the
873# request fails. (integer value)
874#swift_store_retry_get_count = 0
875
876# The period of time (in seconds) before token expirationwhen
877# glance_store will try to reques new user token. Default value 60 sec
878# means that if token is going to expire in 1 min then glance_store
879# request new user token. (integer value)
880#swift_store_expire_soon_interval = 60
881
882# If set to True create a trust for each add/get request to Multi-
883# tenant store in order to prevent authentication token to be expired
884# during uploading/downloading data. If set to False then user token
885# is used for Swift connection (so no overhead on trust creation).
886# Please note that this option is considered only and only if
887# swift_store_multi_tenant=True (boolean value)
888#swift_store_use_trusts = true
889
890# The reference to the default swift account/backing store parameters
891# to use for adding new images. (string value)
892#default_swift_reference = ref1
893
894# Version of the authentication service to use. Valid versions are 2
895# and 3 for keystone and 1 (deprecated) for swauth and rackspace.
896# (deprecated - use "auth_version" in swift_store_config_file) (string
897# value)
898#swift_store_auth_version = 2
899
900# The address where the Swift authentication service is listening.
901# (deprecated - use "auth_address" in swift_store_config_file) (string
902# value)
903#swift_store_auth_address = <None>
904
905# The user to authenticate against the Swift authentication service
906# (deprecated - use "user" in swift_store_config_file) (string value)
907#swift_store_user = <None>
908
909# Auth key for the user authenticating against the Swift
910# authentication service. (deprecated - use "key" in
911# swift_store_config_file) (string value)
912#swift_store_key = <None>
913
914# The config file that has the swift account(s)configs. (string value)
915#swift_store_config_file = <None>
916
Petr Michalec72b35382016-12-04 10:27:27 +0100917{%- if 'rbd' in storage_engines %}
Jakub Pavlik7e02d742016-04-11 12:18:48 +0200918# RADOS images will be chunked into objects of this size (in
919# megabytes). For best performance, this should be a power of two.
920# (integer value)
921#rbd_store_chunk_size = 8
922rbd_store_chunk_size = {{ server.storage.chunk_size }}
923
924# RADOS pool in which images are stored. (string value)
925#rbd_store_pool = images
926rbd_store_pool = {{ server.storage.pool }}
927
928# RADOS user to authenticate as (only applicable if using Cephx. If
929# <None>, a default will be chosen based on the client. section in
930# rbd_store_ceph_conf) (string value)
931#rbd_store_user = <None>
932rbd_store_user = {{ server.storage.user }}
933
934# Ceph configuration file path. If <None>, librados will locate the
935# default config. If using cephx authentication, this file should
936# include a reference to the right keyring in a client.<USER> section
937# (string value)
938#rbd_store_ceph_conf = /etc/ceph/ceph.conf
939rbd_store_ceph_conf = /etc/ceph/ceph.conf
940
941# Timeout value (in seconds) used when connecting to ceph cluster. If
942# value <= 0, no timeout is set and default librados value is used.
943# (integer value)
944#rados_connect_timeout = 0
945{%- endif %}
946
947# Info to match when looking for cinder in the service catalog. Format
948# is : separated values of the form:
949# <service_type>:<service_name>:<endpoint_type> (string value)
950#cinder_catalog_info = volumev2::publicURL
951
952# Override service catalog lookup with template for cinder endpoint
953# e.g. http://localhost:8776/v2/%(tenant)s (string value)
954#cinder_endpoint_template = <None>
955
956# Region name of this node. If specified, it will be used to locate
957# OpenStack services for stores. (string value)
958# Deprecated group/name - [DEFAULT]/os_region_name
959#cinder_os_region_name = <None>
960{% if server.identity.region is defined %}
961cinder_os_region_name = {{ server.identity.region }}
962{% endif %}
963
964# Location of ca certicates file to use for cinder client requests.
965# (string value)
966#cinder_ca_certificates_file = <None>
967
968# Number of cinderclient retries on failed http calls (integer value)
969#cinder_http_retries = 3
970
971# Time period of time in seconds to wait for a cinder volume
972# transition to complete. (integer value)
973#cinder_state_transition_timeout = 300
974
975# Allow to perform insecure SSL requests to cinder (boolean value)
976#cinder_api_insecure = false
977
978# The address where the Cinder authentication service is listening. If
979# <None>, the cinder endpoint in the service catalog is used. (string
980# value)
981#cinder_store_auth_address = <None>
982
983# User name to authenticate against Cinder. If <None>, the user of
984# current context is used. (string value)
985#cinder_store_user_name = <None>
986
987# Password for the user authenticating against Cinder. If <None>, the
988# current context auth token is used. (string value)
989#cinder_store_password = <None>
990
991# Project name where the image is stored in Cinder. If <None>, the
992# project in current context is used. (string value)
993#cinder_store_project_name = <None>
994
995# Path to the rootwrap configuration file to use for running commands
996# as root. (string value)
997#rootwrap_config = /etc/glance/rootwrap.conf
998
999# The host where the S3 server is listening. (string value)
1000#s3_store_host = <None>
1001
1002# The S3 query token access key. (string value)
1003#s3_store_access_key = <None>
1004
1005# The S3 query token secret key. (string value)
1006#s3_store_secret_key = <None>
1007
1008# The S3 bucket to be used to store the Glance data. (string value)
1009#s3_store_bucket = <None>
1010
1011# The local directory where uploads will be staged before they are
1012# transferred into S3. (string value)
1013#s3_store_object_buffer_dir = <None>
1014
1015# A boolean to determine if the S3 bucket should be created on upload
1016# if it does not exist or if an error should be returned to the user.
1017# (boolean value)
1018#s3_store_create_bucket_on_put = false
1019
1020# The S3 calling format used to determine the bucket. Either subdomain
1021# or path can be used. (string value)
1022#s3_store_bucket_url_format = subdomain
1023
1024# What size, in MB, should S3 start chunking image files and do a
1025# multipart upload in S3. (integer value)
1026#s3_store_large_object_size = 100
1027
1028# What multipart upload part size, in MB, should S3 use when uploading
1029# parts. The size must be greater than or equal to 5M. (integer value)
1030#s3_store_large_object_chunk_size = 10
1031
1032# The number of thread pools to perform a multipart upload in S3.
1033# (integer value)
1034#s3_store_thread_pools = 10
1035
1036# Enable the use of a proxy. (boolean value)
1037#s3_store_enable_proxy = false
1038
1039# Address or hostname for the proxy server. (string value)
1040#s3_store_proxy_host = <None>
1041
1042# The port to use when connecting over a proxy. (integer value)
1043#s3_store_proxy_port = 8080
1044
1045# The username to connect to the proxy. (string value)
1046#s3_store_proxy_user = <None>
1047
1048# The password to use when connecting over a proxy. (string value)
1049#s3_store_proxy_password = <None>
1050
1051# Images will be chunked into objects of this size (in megabytes). For
1052# best performance, this should be a power of two. (integer value)
1053#sheepdog_store_chunk_size = 64
1054
1055# Port of sheep daemon. (integer value)
1056#sheepdog_store_port = 7000
1057
1058# IP address of sheep daemon. (string value)
1059#sheepdog_store_address = localhost
1060
1061# Directory to which the Filesystem backend store writes images.
1062# (string value)
1063#filesystem_store_datadir = /var/lib/glance/images
1064filesystem_store_datadir=/var/lib/glance/images/
1065
1066# List of directories and its priorities to which the Filesystem
1067# backend store writes images. (multi valued)
1068#filesystem_store_datadirs =
1069
1070# The path to a file which contains the metadata to be returned with
1071# any location associated with this store. The file must contain a
1072# valid JSON object. The object should contain the keys 'id' and
1073# 'mountpoint'. The value for both keys should be 'string'. (string
1074# value)
1075#filesystem_store_metadata_file = <None>
1076
1077# The required permission for created image file. In this way the user
1078# other service used, e.g. Nova, who consumes the image could be the
1079# exclusive member of the group that owns the files created. Assigning
1080# it less then or equal to zero means don't change the default
1081# permission of the file. This value will be decoded as an octal
1082# digit. (integer value)
1083#filesystem_store_file_perm = 0
1084
1085# ESX/ESXi or vCenter Server target system. The server value can be an
1086# IP address or a DNS name. (string value)
1087#vmware_server_host = <None>
1088
1089# Username for authenticating with VMware ESX/VC server. (string
1090# value)
1091#vmware_server_username = <None>
1092
1093# Password for authenticating with VMware ESX/VC server. (string
1094# value)
1095#vmware_server_password = <None>
1096
1097# Number of times VMware ESX/VC server API must be retried upon
1098# connection related issues. (integer value)
1099#vmware_api_retry_count = 10
1100
1101# The interval used for polling remote tasks invoked on VMware ESX/VC
1102# server. (integer value)
1103#vmware_task_poll_interval = 5
1104
1105# The name of the directory where the glance images will be stored in
1106# the VMware datastore. (string value)
1107#vmware_store_image_dir = /openstack_glance
1108
1109# If true, the ESX/vCenter server certificate is not verified. If
1110# false, then the default CA truststore is used for verification. This
1111# option is ignored if "vmware_ca_file" is set. (boolean value)
1112# Deprecated group/name - [DEFAULT]/vmware_api_insecure
1113#vmware_insecure = false
1114
1115# Specify a CA bundle file to use in verifying the ESX/vCenter server
1116# certificate. (string value)
1117#vmware_ca_file = <None>
1118
1119# A list of datastores where the image can be stored. This option may
1120# be specified multiple times for specifying multiple datastores. The
1121# datastore name should be specified after its datacenter path,
1122# seperated by ":". An optional weight may be given after the
1123# datastore name, seperated again by ":". Thus, the required format
1124# becomes <datacenter_path>:<datastore_name>:<optional_weight>. When
1125# adding an image, the datastore with highest weight will be selected,
1126# unless there is not enough free space available in cases where the
1127# image size is already known. If no weight is given, it is assumed to
1128# be zero and the directory will be considered for selection last. If
1129# multiple datastores have the same weight, then the one with the most
1130# free space available is selected. (multi valued)
1131#vmware_datastores =
1132
1133
1134[image_format]
1135
1136#
1137# From glance.api
1138#
1139
1140# Supported values for the 'container_format' image attribute (list
1141# value)
1142# Deprecated group/name - [DEFAULT]/container_formats
1143#container_formats = ami,ari,aki,bare,ovf,ova,docker
1144
1145# Supported values for the 'disk_format' image attribute (list value)
1146# Deprecated group/name - [DEFAULT]/disk_formats
1147#disk_formats = ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso
1148
1149[keystone_authtoken]
1150revocation_cache_time = 10
1151auth_type = password
1152user_domain_id = {{ server.identity.get('domain', 'default') }}
1153project_domain_id = {{ server.identity.get('domain', 'default') }}
1154project_name = {{ server.identity.tenant }}
1155username = {{ server.identity.user }}
1156password = {{ server.identity.password }}
1157auth_uri=http://{{ server.identity.host }}:5000
1158auth_url=http://{{ server.identity.host }}:35357
1159
1160{%- if server.cache is defined %}
1161memcached_servers={%- for member in server.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
1162{%- endif %}
1163
1164#
1165# From keystonemiddleware.auth_token
1166#
1167
1168# Complete public Identity API endpoint. (string value)
1169#auth_uri = <None>
1170
1171# API version of the admin Identity API endpoint. (string value)
1172#auth_version = <None>
1173
1174# Do not handle authorization requests within the middleware, but
1175# delegate the authorization decision to downstream WSGI components.
1176# (boolean value)
1177#delay_auth_decision = false
1178
1179# Request timeout value for communicating with Identity API server.
1180# (integer value)
1181#http_connect_timeout = <None>
1182
1183# How many times are we trying to reconnect when communicating with
1184# Identity API Server. (integer value)
1185#http_request_max_retries = 3
1186
1187# Env key for the swift cache. (string value)
1188#cache = <None>
1189
1190# Required if identity server requires client certificate (string
1191# value)
1192#certfile = <None>
1193
1194# Required if identity server requires client certificate (string
1195# value)
1196#keyfile = <None>
1197
1198# A PEM encoded Certificate Authority to use when verifying HTTPs
1199# connections. Defaults to system CAs. (string value)
1200#cafile = <None>
1201
1202# Verify HTTPS connections. (boolean value)
1203#insecure = false
1204
1205# The region in which the identity server can be found. (string value)
1206#region_name = <None>
1207
1208# Directory used to cache files related to PKI tokens. (string value)
1209#signing_dir = <None>
1210
1211# Optionally specify a list of memcached server(s) to use for caching.
1212# If left undefined, tokens will instead be cached in-process. (list
1213# value)
1214# Deprecated group/name - [DEFAULT]/memcache_servers
1215#memcached_servers = <None>
1216
1217# In order to prevent excessive effort spent validating tokens, the
1218# middleware caches previously-seen tokens for a configurable duration
1219# (in seconds). Set to -1 to disable caching completely. (integer
1220# value)
1221#token_cache_time = 300
1222
1223# Determines the frequency at which the list of revoked tokens is
1224# retrieved from the Identity service (in seconds). A high number of
1225# revocation events combined with a low cache duration may
1226# significantly reduce performance. (integer value)
1227#revocation_cache_time = 10
1228
1229# (Optional) If defined, indicate whether token data should be
1230# authenticated or authenticated and encrypted. If MAC, token data is
1231# authenticated (with HMAC) in the cache. If ENCRYPT, token data is
1232# encrypted and authenticated in the cache. If the value is not one of
1233# these options or empty, auth_token will raise an exception on
1234# initialization. (string value)
1235# Allowed values: None, MAC, ENCRYPT
1236#memcache_security_strategy = None
1237
1238# (Optional, mandatory if memcache_security_strategy is defined) This
1239# string is used for key derivation. (string value)
1240#memcache_secret_key = <None>
1241
1242# (Optional) Number of seconds memcached server is considered dead
1243# before it is tried again. (integer value)
1244#memcache_pool_dead_retry = 300
1245
1246# (Optional) Maximum total number of open connections to every
1247# memcached server. (integer value)
1248#memcache_pool_maxsize = 10
1249
1250# (Optional) Socket timeout in seconds for communicating with a
1251# memcached server. (integer value)
1252#memcache_pool_socket_timeout = 3
1253
1254# (Optional) Number of seconds a connection to memcached is held
1255# unused in the pool before it is closed. (integer value)
1256#memcache_pool_unused_timeout = 60
1257
1258# (Optional) Number of seconds that an operation will wait to get a
1259# memcached client connection from the pool. (integer value)
1260#memcache_pool_conn_get_timeout = 10
1261
1262# (Optional) Use the advanced (eventlet safe) memcached client pool.
1263# The advanced pool will only work under python 2.x. (boolean value)
1264#memcache_use_advanced_pool = false
1265
1266# (Optional) Indicate whether to set the X-Service-Catalog header. If
1267# False, middleware will not ask for service catalog on token
1268# validation and will not set the X-Service-Catalog header. (boolean
1269# value)
1270#include_service_catalog = true
1271
1272# Used to control the use and type of token binding. Can be set to:
1273# "disabled" to not check token binding. "permissive" (default) to
1274# validate binding information if the bind type is of a form known to
1275# the server and ignore it if not. "strict" like "permissive" but if
1276# the bind type is unknown the token will be rejected. "required" any
1277# form of token binding is needed to be allowed. Finally the name of a
1278# binding method that must be present in tokens. (string value)
1279#enforce_token_bind = permissive
1280
1281# If true, the revocation list will be checked for cached tokens. This
1282# requires that PKI tokens are configured on the identity server.
1283# (boolean value)
1284#check_revocations_for_cached = false
1285
1286# Hash algorithms to use for hashing PKI tokens. This may be a single
1287# algorithm or multiple. The algorithms are those supported by Python
1288# standard hashlib.new(). The hashes will be tried in the order given,
1289# so put the preferred one first for performance. The result of the
1290# first hash will be stored in the cache. This will typically be set
1291# to multiple values only while migrating from a less secure algorithm
1292# to a more secure one. Once all the old tokens are expired this
1293# option should be set to a single value for better performance. (list
1294# value)
1295#hash_algorithms = md5
1296
1297# Authentication type to load (unknown value)
1298# Deprecated group/name - [DEFAULT]/auth_plugin
1299#auth_type = <None>
1300
1301# Config Section from which to load plugin specific options (unknown
1302# value)
1303#auth_section = <None>
1304
1305
1306[matchmaker_redis]
1307
1308#
1309# From oslo.messaging
1310#
1311
1312# Host to locate redis. (string value)
1313#host = 127.0.0.1
1314
1315# Use this port to connect to redis host. (port value)
1316# Minimum value: 0
1317# Maximum value: 65535
1318#port = 6379
1319
1320# Password for Redis server (optional). (string value)
1321#password =
1322
1323# List of Redis Sentinel hosts (fault tolerance mode) e.g.
1324# [host:port, host1:port ... ] (list value)
1325#sentinel_hosts =
1326
1327# Redis replica set name. (string value)
1328#sentinel_group_name = oslo-messaging-zeromq
1329
1330# Time in ms to wait between connection attempts. (integer value)
1331#wait_timeout = 500
1332
1333# Time in ms to wait before the transaction is killed. (integer value)
1334#check_timeout = 20000
1335
1336# Timeout in ms on blocking socket operations (integer value)
1337#socket_timeout = 1000
1338
1339
1340[oslo_concurrency]
1341
1342#
1343# From oslo.concurrency
1344#
1345
1346# Enables or disables inter-process locks. (boolean value)
1347# Deprecated group/name - [DEFAULT]/disable_process_locking
1348#disable_process_locking = false
1349
1350# Directory to use for lock files. For security, the specified
1351# directory should only be writable by the user running the processes
1352# that need locking. Defaults to environment variable OSLO_LOCK_PATH.
1353# If external locks are used, a lock path must be set. (string value)
1354# Deprecated group/name - [DEFAULT]/lock_path
1355#lock_path = <None>
1356
1357
1358[oslo_messaging_amqp]
1359
1360#
1361# From oslo.messaging
1362#
1363
1364# address prefix used when sending to a specific server (string value)
1365# Deprecated group/name - [amqp1]/server_request_prefix
1366#server_request_prefix = exclusive
1367
1368# address prefix used when broadcasting to all servers (string value)
1369# Deprecated group/name - [amqp1]/broadcast_prefix
1370#broadcast_prefix = broadcast
1371
1372# address prefix when sending to any server in group (string value)
1373# Deprecated group/name - [amqp1]/group_request_prefix
1374#group_request_prefix = unicast
1375
1376# Name for the AMQP container (string value)
1377# Deprecated group/name - [amqp1]/container_name
1378#container_name = <None>
1379
1380# Timeout for inactive connections (in seconds) (integer value)
1381# Deprecated group/name - [amqp1]/idle_timeout
1382#idle_timeout = 0
1383
1384# Debug: dump AMQP frames to stdout (boolean value)
1385# Deprecated group/name - [amqp1]/trace
1386#trace = false
1387
1388# CA certificate PEM file to verify server certificate (string value)
1389# Deprecated group/name - [amqp1]/ssl_ca_file
1390#ssl_ca_file =
1391
1392# Identifying certificate PEM file to present to clients (string
1393# value)
1394# Deprecated group/name - [amqp1]/ssl_cert_file
1395#ssl_cert_file =
1396
1397# Private key PEM file used to sign cert_file certificate (string
1398# value)
1399# Deprecated group/name - [amqp1]/ssl_key_file
1400#ssl_key_file =
1401
1402# Password for decrypting ssl_key_file (if encrypted) (string value)
1403# Deprecated group/name - [amqp1]/ssl_key_password
1404#ssl_key_password = <None>
1405
1406# Accept clients using either SSL or plain TCP (boolean value)
1407# Deprecated group/name - [amqp1]/allow_insecure_clients
1408#allow_insecure_clients = false
1409
1410# Space separated list of acceptable SASL mechanisms (string value)
1411# Deprecated group/name - [amqp1]/sasl_mechanisms
1412#sasl_mechanisms =
1413
1414# Path to directory that contains the SASL configuration (string
1415# value)
1416# Deprecated group/name - [amqp1]/sasl_config_dir
1417#sasl_config_dir =
1418
1419# Name of configuration file (without .conf suffix) (string value)
1420# Deprecated group/name - [amqp1]/sasl_config_name
1421#sasl_config_name =
1422
1423# User name for message broker authentication (string value)
1424# Deprecated group/name - [amqp1]/username
1425#username =
1426
1427# Password for message broker authentication (string value)
1428# Deprecated group/name - [amqp1]/password
1429#password =
1430
1431
1432[oslo_messaging_notifications]
1433
1434#
1435# From oslo.messaging
1436#
1437
1438# The Drivers(s) to handle sending notifications. Possible values are
1439# messaging, messagingv2, routing, log, test, noop (multi valued)
1440# Deprecated group/name - [DEFAULT]/notification_driver
1441#driver =
Simon Pasquierd82939e2016-12-14 15:21:07 +01001442{%- if server.notification is mapping %}
1443driver = {{ server.notification.get('driver', 'messagingv2') }}
1444{%- if server.notification.topics is defined %}
1445topics = {{ server.notification.topics }}
1446{%- endif %}
1447{%- elif server.notification %}
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001448driver = messagingv2
Simon Pasquierd82939e2016-12-14 15:21:07 +01001449{%- endif %}
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001450
1451# A URL representing the messaging driver to use for notifications. If
1452# not set, we fall back to the same configuration used for RPC.
1453# (string value)
1454# Deprecated group/name - [DEFAULT]/notification_transport_url
1455#transport_url = <None>
1456
1457# AMQP topic used for OpenStack notifications. (list value)
1458# Deprecated group/name - [rpc_notifier2]/topics
1459# Deprecated group/name - [DEFAULT]/notification_topics
1460#topics = notifications
1461
1462
1463[oslo_messaging_rabbit]
1464
1465#
1466# From oslo.messaging
1467#
1468
1469# Use durable queues in AMQP. (boolean value)
1470# Deprecated group/name - [DEFAULT]/amqp_durable_queues
1471# Deprecated group/name - [DEFAULT]/rabbit_durable_queues
1472#amqp_durable_queues = false
1473
1474# Auto-delete queues in AMQP. (boolean value)
1475# Deprecated group/name - [DEFAULT]/amqp_auto_delete
1476#amqp_auto_delete = false
1477
1478# SSL version to use (valid only if SSL enabled). Valid values are
1479# TLSv1 and SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be
1480# available on some distributions. (string value)
1481# Deprecated group/name - [DEFAULT]/kombu_ssl_version
1482#kombu_ssl_version =
1483
1484# SSL key file (valid only if SSL enabled). (string value)
1485# Deprecated group/name - [DEFAULT]/kombu_ssl_keyfile
1486#kombu_ssl_keyfile =
1487
1488# SSL cert file (valid only if SSL enabled). (string value)
1489# Deprecated group/name - [DEFAULT]/kombu_ssl_certfile
1490#kombu_ssl_certfile =
1491
1492# SSL certification authority file (valid only if SSL enabled).
1493# (string value)
1494# Deprecated group/name - [DEFAULT]/kombu_ssl_ca_certs
1495#kombu_ssl_ca_certs =
1496
1497# How long to wait before reconnecting in response to an AMQP consumer
1498# cancel notification. (floating point value)
1499# Deprecated group/name - [DEFAULT]/kombu_reconnect_delay
1500#kombu_reconnect_delay = 1.0
1501
1502# EXPERIMENTAL: Possible values are: gzip, bz2. If not set compression
1503# will not be used. This option may notbe available in future
1504# versions. (string value)
1505#kombu_compression = <None>
1506
1507# How long to wait a missing client beforce abandoning to send it its
1508# replies. This value should not be longer than rpc_response_timeout.
1509# (integer value)
1510# Deprecated group/name - [DEFAULT]/kombu_reconnect_timeout
1511#kombu_missing_consumer_retry_timeout = 60
1512
1513# Determines how the next RabbitMQ node is chosen in case the one we
1514# are currently connected to becomes unavailable. Takes effect only if
1515# more than one RabbitMQ node is provided in config. (string value)
1516# Allowed values: round-robin, shuffle
1517#kombu_failover_strategy = round-robin
1518
Jiri Konecny0456cfa2016-04-20 16:47:25 +02001519{%- if server.message_queue.members is defined %}
1520rabbit_hosts = {% for member in server.message_queue.members -%}
1521 {{ member.host }}:{{ member.get('port', 5672) }}
1522 {%- if not loop.last -%},{%- endif -%}
1523 {%- endfor -%}
1524{%- else %}
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001525rabbit_host = {{ server.message_queue.host }}
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001526rabbit_port = {{ server.message_queue.port }}
Jiri Konecny0456cfa2016-04-20 16:47:25 +02001527{%- endif %}
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001528
1529# Connect over SSL for RabbitMQ. (boolean value)
1530# Deprecated group/name - [DEFAULT]/rabbit_use_ssl
1531#rabbit_use_ssl = false
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001532rabbit_userid = {{ server.message_queue.user }}
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001533rabbit_password = {{ server.message_queue.password }}
1534
1535# The RabbitMQ login method. (string value)
1536# Deprecated group/name - [DEFAULT]/rabbit_login_method
1537#rabbit_login_method = AMQPLAIN
Jakub Pavlik7e02d742016-04-11 12:18:48 +02001538rabbit_virtual_host = {{ server.message_queue.virtual_host }}
1539
1540# How frequently to retry connecting with RabbitMQ. (integer value)
1541#rabbit_retry_interval = 1
1542
1543# How long to backoff for between retries when connecting to RabbitMQ.
1544# (integer value)
1545# Deprecated group/name - [DEFAULT]/rabbit_retry_backoff
1546#rabbit_retry_backoff = 2
1547
1548# Maximum interval of RabbitMQ connection retries. Default is 30
1549# seconds. (integer value)
1550#rabbit_interval_max = 30
1551
1552# Maximum number of RabbitMQ connection retries. Default is 0
1553# (infinite retry count). (integer value)
1554# Deprecated group/name - [DEFAULT]/rabbit_max_retries
1555#rabbit_max_retries = 0
1556
1557# Try to use HA queues in RabbitMQ (x-ha-policy: all). If you change
1558# this option, you must wipe the RabbitMQ database. In RabbitMQ 3.0,
1559# queue mirroring is no longer controlled by the x-ha-policy argument
1560# when declaring a queue. If you just want to make sure that all
1561# queues (except those with auto-generated names) are mirrored across
1562# all nodes, run: "rabbitmqctl set_policy HA '^(?!amq\.).*' '{"ha-
1563# mode": "all"}' " (boolean value)
1564# Deprecated group/name - [DEFAULT]/rabbit_ha_queues
1565#rabbit_ha_queues = false
1566
1567# Positive integer representing duration in seconds for queue TTL
1568# (x-expires). Queues which are unused for the duration of the TTL are
1569# automatically deleted. The parameter affects only reply and fanout
1570# queues. (integer value)
1571# Minimum value: 1
1572#rabbit_transient_queues_ttl = 600
1573
1574# Specifies the number of messages to prefetch. Setting to zero allows
1575# unlimited messages. (integer value)
1576#rabbit_qos_prefetch_count = 0
1577
1578# Number of seconds after which the Rabbit broker is considered down
1579# if heartbeat's keep-alive fails (0 disable the heartbeat).
1580# EXPERIMENTAL (integer value)
1581#heartbeat_timeout_threshold = 60
1582
1583# How often times during the heartbeat_timeout_threshold we check the
1584# heartbeat. (integer value)
1585#heartbeat_rate = 2
1586
1587# Deprecated, use rpc_backend=kombu+memory or rpc_backend=fake
1588# (boolean value)
1589# Deprecated group/name - [DEFAULT]/fake_rabbit
1590#fake_rabbit = false
1591
1592# Maximum number of channels to allow (integer value)
1593#channel_max = <None>
1594
1595# The maximum byte size for an AMQP frame (integer value)
1596#frame_max = <None>
1597
1598# How often to send heartbeats for consumer's connections (integer
1599# value)
1600#heartbeat_interval = 1
1601
1602# Enable SSL (boolean value)
1603#ssl = <None>
1604
1605# Arguments passed to ssl.wrap_socket (dict value)
1606#ssl_options = <None>
1607
1608# Set socket timeout in seconds for connection's socket (floating
1609# point value)
1610#socket_timeout = 0.25
1611
1612# Set TCP_USER_TIMEOUT in seconds for connection's socket (floating
1613# point value)
1614#tcp_user_timeout = 0.25
1615
1616# Set delay for reconnection to some host which has connection error
1617# (floating point value)
1618#host_connection_reconnect_delay = 0.25
1619
1620# Maximum number of connections to keep queued. (integer value)
1621#pool_max_size = 10
1622
1623# Maximum number of connections to create above `pool_max_size`.
1624# (integer value)
1625#pool_max_overflow = 0
1626
1627# Default number of seconds to wait for a connections to available
1628# (integer value)
1629#pool_timeout = 30
1630
1631# Lifetime of a connection (since creation) in seconds or None for no
1632# recycling. Expired connections are closed on acquire. (integer
1633# value)
1634#pool_recycle = 600
1635
1636# Threshold at which inactive (since release) connections are
1637# considered stale in seconds or None for no staleness. Stale
1638# connections are closed on acquire. (integer value)
1639#pool_stale = 60
1640
1641# Persist notification messages. (boolean value)
1642#notification_persistence = false
1643
1644# Exchange name for for sending notifications (string value)
1645#default_notification_exchange = ${control_exchange}_notification
1646
1647# Max number of not acknowledged message which RabbitMQ can send to
1648# notification listener. (integer value)
1649#notification_listener_prefetch_count = 100
1650
1651# Reconnecting retry count in case of connectivity problem during
1652# sending notification, -1 means infinite retry. (integer value)
1653#default_notification_retry_attempts = -1
1654
1655# Reconnecting retry delay in case of connectivity problem during
1656# sending notification message (floating point value)
1657#notification_retry_delay = 0.25
1658
1659# Time to live for rpc queues without consumers in seconds. (integer
1660# value)
1661#rpc_queue_expiration = 60
1662
1663# Exchange name for sending RPC messages (string value)
1664#default_rpc_exchange = ${control_exchange}_rpc
1665
1666# Exchange name for receiving RPC replies (string value)
1667#rpc_reply_exchange = ${control_exchange}_rpc_reply
1668
1669# Max number of not acknowledged message which RabbitMQ can send to
1670# rpc listener. (integer value)
1671#rpc_listener_prefetch_count = 100
1672
1673# Max number of not acknowledged message which RabbitMQ can send to
1674# rpc reply listener. (integer value)
1675#rpc_reply_listener_prefetch_count = 100
1676
1677# Reconnecting retry count in case of connectivity problem during
1678# sending reply. -1 means infinite retry during rpc_timeout (integer
1679# value)
1680#rpc_reply_retry_attempts = -1
1681
1682# Reconnecting retry delay in case of connectivity problem during
1683# sending reply. (floating point value)
1684#rpc_reply_retry_delay = 0.25
1685
1686# Reconnecting retry count in case of connectivity problem during
1687# sending RPC message, -1 means infinite retry. If actual retry
1688# attempts in not 0 the rpc request could be processed more then one
1689# time (integer value)
1690#default_rpc_retry_attempts = -1
1691
1692# Reconnecting retry delay in case of connectivity problem during
1693# sending RPC message (floating point value)
1694#rpc_retry_delay = 0.25
1695
1696
1697[oslo_policy]
1698
1699#
1700# From oslo.policy
1701#
1702
1703# The JSON file that defines policies. (string value)
1704# Deprecated group/name - [DEFAULT]/policy_file
1705#policy_file = policy.json
1706
1707# Default rule. Enforced when a requested rule is not found. (string
1708# value)
1709# Deprecated group/name - [DEFAULT]/policy_default_rule
1710#policy_default_rule = default
1711
1712# Directories where policy configuration files are stored. They can be
1713# relative to any directory in the search path defined by the
1714# config_dir option, or absolute paths. The file defined by
1715# policy_file must exist for these directories to be searched.
1716# Missing or empty directories are ignored. (multi valued)
1717# Deprecated group/name - [DEFAULT]/policy_dirs
1718#policy_dirs = policy.d
1719
1720
1721[paste_deploy]
1722
1723#
1724# From glance.api
1725#
1726
1727# Partial name of a pipeline in your paste configuration file with the
1728# service name removed. For example, if your paste section name is
1729# [pipeline:glance-api-keystone] use the value "keystone" (string
1730# value)
1731#flavor = <None>
1732flavor=keystone
1733
1734# Name of the paste configuration file. (string value)
1735#config_file = <None>
1736
1737
1738[profiler]
1739
1740#
1741# From glance.api
1742#
1743
1744# If False fully disable profiling feature. (boolean value)
1745#enabled = false
1746
1747# If False doesn't trace SQL requests. (boolean value)
1748#trace_sqlalchemy = false
1749
1750# Secret key to use to sign Glance API and Glance Registry services
1751# tracing messages. (string value)
1752#hmac_keys = SECRET_KEY
1753
1754
1755[store_type_location_strategy]
1756
1757#
1758# From glance.api
1759#
1760
1761# The store names to use to get store preference order. The name must
1762# be registered by one of the stores defined by the 'stores' config
1763# option. This option will be applied when you using 'store_type'
1764# option as image location strategy defined by the 'location_strategy'
1765# config option. (list value)
1766#store_type_preference =
1767
1768
1769[task]
1770
1771#
1772# From glance.api
1773#
1774
1775# Time in hours for which a task lives after, either succeeding or
1776# failing (integer value)
1777# Deprecated group/name - [DEFAULT]/task_time_to_live
1778#task_time_to_live = 48
1779
1780# Specifies which task executor to be used to run the task scripts.
1781# (string value)
1782#task_executor = taskflow
1783
1784# Work dir for asynchronous task operations. The directory set here
1785# will be used to operate over images - normally before they are
1786# imported in the destination store. When providing work dir, make
1787# sure enough space is provided for concurrent tasks to run
1788# efficiently without running out of space. A rough estimation can be
1789# done by multiplying the number of `max_workers` - or the N of
1790# workers running - by an average image size (e.g 500MB). The image
1791# size estimation should be done based on the average size in your
1792# deployment. Note that depending on the tasks running you may need to
1793# multiply this number by some factor depending on what the task does.
1794# For example, you may want to double the available size if image
1795# conversion is enabled. All this being said, remember these are just
1796# estimations and you should do them based on the worst case scenario
1797# and be prepared to act in case they were wrong. (string value)
1798#work_dir = <None>
1799
1800
1801[taskflow_executor]
1802
1803#
1804# From glance.api
1805#
1806
1807# The mode in which the engine will run. Can be 'serial' or
1808# 'parallel'. (string value)
1809# Allowed values: serial, parallel
1810#engine_mode = parallel
1811
1812# The number of parallel activities executed at the same time by the
1813# engine. The value can be greater than one when the engine mode is
1814# 'parallel'. (integer value)
1815# Deprecated group/name - [task]/eventlet_executor_pool_size
1816#max_workers = 10