summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-glance/glance-api.conf
diff options
context:
space:
mode:
authorMihai Prica <prica.mihai@gmail.com>2013-05-17 17:40:16 +0300
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-28 18:41:55 -0400
commite389509c330c30b0cb7fc697aa513310490d3529 (patch)
treef2752dfb40c71f8529503577f6bba3b1430897a0 /meta-openstack/recipes-devtools/python/python-glance/glance-api.conf
parent323ea06754956040dd470fd0b37b015db5058cc5 (diff)
downloadmeta-cloud-services-e389509c330c30b0cb7fc697aa513310490d3529.tar.gz
python-glance: added 2013.1
Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance/glance-api.conf')
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance/glance-api.conf358
1 files changed, 358 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance/glance-api.conf b/meta-openstack/recipes-devtools/python/python-glance/glance-api.conf
new file mode 100644
index 0000000..433306e
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-glance/glance-api.conf
@@ -0,0 +1,358 @@
1[DEFAULT]
2# Show more verbose log output (sets INFO log level output)
3#verbose = False
4
5# Show debugging output in logs (sets DEBUG log level output)
6#debug = False
7
8# Which backend scheme should Glance use by default is not specified
9# in a request to add a new image to Glance? Known schemes are determined
10# by the known_stores option below.
11# Default: 'file'
12default_store = file
13
14# List of which store classes and store class locations are
15# currently known to glance at startup.
16#known_stores = glance.store.filesystem.Store,
17# glance.store.http.Store,
18# glance.store.rbd.Store,
19# glance.store.s3.Store,
20# glance.store.swift.Store,
21
22
23# Maximum image size (in bytes) that may be uploaded through the
24# Glance API server. Defaults to 1 TB.
25# WARNING: this value should only be increased after careful consideration
26# and must be set to a value under 8 EB (9223372036854775808).
27#image_size_cap = 1099511627776
28
29# Address to bind the API server
30bind_host = 0.0.0.0
31
32# Port the bind the API server to
33bind_port = 9292
34
35# Log to this file. Make sure you do not set the same log
36# file for both the API and registry servers!
37log_file = /var/log/glance/api.log
38
39# Backlog requests when creating socket
40backlog = 4096
41
42# TCP_KEEPIDLE value in seconds when creating socket.
43# Not supported on OS X.
44#tcp_keepidle = 600
45
46# SQLAlchemy connection string for the reference implementation
47# registry server. Any valid SQLAlchemy connection string is fine.
48# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
49#sql_connection = mysql:///root:@localhost/glance?charset=utf8
50sql_connection = sqlite:////etc/glance/glance.db
51
52
53# Period in seconds after which SQLAlchemy should reestablish its connection
54# to the database.
55#
56# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
57# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
58# notice this, you can lower this value to ensure that SQLAlchemy reconnects
59# before MySQL can drop the connection.
60sql_idle_timeout = 3600
61
62# Number of Glance API worker processes to start.
63# On machines with more than one CPU increasing this value
64# may improve performance (especially if using SSL with
65# compression turned on). It is typically recommended to set
66# this value to the number of CPUs present on your machine.
67workers = 1
68
69# Role used to identify an authenticated user as administrator
70#admin_role = admin
71
72# Allow unauthenticated users to access the API with read-only
73# privileges. This only applies when using ContextMiddleware.
74#allow_anonymous_access = False
75
76# Allow access to version 1 of glance api
77#enable_v1_api = True
78
79# Allow access to version 2 of glance api
80#enable_v2_api = True
81
82# Return the URL that references where the data is stored on
83# the backend storage system. For example, if using the
84# file system store a URL of 'file:///path/to/image' will
85# be returned to the user in the 'direct_url' meta-data field.
86# The default value is false.
87#show_image_direct_url = False
88
89# ================= Syslog Options ============================
90
91# Send logs to syslog (/dev/log) instead of to file specified
92# by `log_file`
93#use_syslog = False
94
95# Facility to use. If unset defaults to LOG_USER.
96#syslog_log_facility = LOG_LOCAL0
97
98# ================= SSL Options ===============================
99
100# Certificate file to use when starting API server securely
101#cert_file = /path/to/certfile
102
103# Private key file to use when starting API server securely
104#key_file = /path/to/keyfile
105
106# CA certificate file to use to verify connecting clients
107#ca_file = /path/to/cafile
108
109# ================= Security Options ==========================
110
111# AES key for encrypting store 'location' metadata, including
112# -- if used -- Swift or S3 credentials
113# Should be set to a random string of length 16, 24 or 32 bytes
114#metadata_encryption_key = <16, 24 or 32 char registry metadata key>
115
116# ============ Registry Options ===============================
117
118# Address to find the registry server
119registry_host = 0.0.0.0
120
121# Port the registry server is listening on
122registry_port = 9191
123
124# What protocol to use when connecting to the registry server?
125# Set to https for secure HTTP communication
126registry_client_protocol = http
127
128# The path to the key file to use in SSL connections to the
129# registry server, if any. Alternately, you may set the
130# GLANCE_CLIENT_KEY_FILE environ variable to a filepath of the key file
131#registry_client_key_file = /path/to/key/file
132
133# The path to the cert file to use in SSL connections to the
134# registry server, if any. Alternately, you may set the
135# GLANCE_CLIENT_CERT_FILE environ variable to a filepath of the cert file
136#registry_client_cert_file = /path/to/cert/file
137
138# The path to the certifying authority cert file to use in SSL connections
139# to the registry server, if any. Alternately, you may set the
140# GLANCE_CLIENT_CA_FILE environ variable to a filepath of the CA cert file
141#registry_client_ca_file = /path/to/ca/file
142
143# When using SSL in connections to the registry server, do not require
144# validation via a certifying authority. This is the registry's equivalent of
145# specifying --insecure on the command line using glanceclient for the API
146# Default: False
147#registry_client_insecure = False
148
149# The period of time, in seconds, that the API server will wait for a registry
150# request to complete. A value of '0' implies no timeout.
151# Default: 600
152#registry_client_timeout = 600
153
154# Whether to automatically create the database tables.
155# Default: False
156#db_auto_create = False
157
158# ============ Notification System Options =====================
159
160# Notifications can be sent when images are create, updated or deleted.
161# There are three methods of sending notifications, logging (via the
162# log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid
163# message queue), or noop (no notifications sent, the default)
164notifier_strategy = noop
165
166# Configuration options if sending notifications via rabbitmq (these are
167# the defaults)
168rabbit_host = localhost
169rabbit_port = 5672
170rabbit_use_ssl = false
171rabbit_userid = guest
172rabbit_password = guest
173rabbit_virtual_host = /
174rabbit_notification_exchange = glance
175rabbit_notification_topic = notifications
176rabbit_durable_queues = False
177
178# Configuration options if sending notifications via Qpid (these are
179# the defaults)
180qpid_notification_exchange = glance
181qpid_notification_topic = notifications
182qpid_host = localhost
183qpid_port = 5672
184qpid_username =
185qpid_password =
186qpid_sasl_mechanisms =
187qpid_reconnect_timeout = 0
188qpid_reconnect_limit = 0
189qpid_reconnect_interval_min = 0
190qpid_reconnect_interval_max = 0
191qpid_reconnect_interval = 0
192qpid_heartbeat = 5
193# Set to 'ssl' to enable SSL
194qpid_protocol = tcp
195qpid_tcp_nodelay = True
196
197# ============ Filesystem Store Options ========================
198
199# Directory that the Filesystem backend store
200# writes image data to
201filesystem_store_datadir = /etc/glance/images/
202
203# ============ Swift Store Options =============================
204
205# Version of the authentication service to use
206# Valid versions are '2' for keystone and '1' for swauth and rackspace
207swift_store_auth_version = 2
208
209# Address where the Swift authentication service lives
210# Valid schemes are 'http://' and 'https://'
211# If no scheme specified, default to 'https://'
212# For swauth, use something like '127.0.0.1:8080/v1.0/'
213swift_store_auth_address = 127.0.0.1:5000/v2.0/
214
215# User to authenticate against the Swift authentication service
216# If you use Swift authentication service, set it to 'account':'user'
217# where 'account' is a Swift storage account and 'user'
218# is a user in that account
219swift_store_user = jdoe:jdoe
220
221# Auth key for the user authenticating against the
222# Swift authentication service
223swift_store_key = a86850deb2742ec3cb41518e26aa2d89
224
225# Container within the account that the account should use
226# for storing images in Swift
227swift_store_container = glance
228
229# Do we create the container if it does not exist?
230swift_store_create_container_on_put = False
231
232# What size, in MB, should Glance start chunking image files
233# and do a large object manifest in Swift? By default, this is
234# the maximum object size in Swift, which is 5GB
235swift_store_large_object_size = 5120
236
237# When doing a large object manifest, what size, in MB, should
238# Glance write chunks to Swift? This amount of data is written
239# to a temporary disk buffer during the process of chunking
240# the image file, and the default is 200MB
241swift_store_large_object_chunk_size = 200
242
243# Whether to use ServiceNET to communicate with the Swift storage servers.
244# (If you aren't RACKSPACE, leave this False!)
245#
246# To use ServiceNET for authentication, prefix hostname of
247# `swift_store_auth_address` with 'snet-'.
248# Ex. https://example.com/v1.0/ -> https://snet-example.com/v1.0/
249swift_enable_snet = False
250
251# If set to True enables multi-tenant storage mode which causes Glance images
252# to be stored in tenant specific Swift accounts.
253#swift_store_multi_tenant = False
254
255# A list of swift ACL strings that will be applied as both read and
256# write ACLs to the containers created by Glance in multi-tenant
257# mode. This grants the specified tenants/users read and write access
258# to all newly created image objects. The standard swift ACL string
259# formats are allowed, including:
260# <tenant_id>:<username>
261# <tenant_name>:<username>
262# *:<username>
263# Multiple ACLs can be combined using a comma separated list, for
264# example: swift_store_admin_tenants = service:glance,*:admin
265#swift_store_admin_tenants =
266
267# The region of the swift endpoint to be used for single tenant. This setting
268# is only necessary if the tenant has multiple swift endpoints.
269#swift_store_region =
270
271# ============ S3 Store Options =============================
272
273# Address where the S3 authentication service lives
274# Valid schemes are 'http://' and 'https://'
275# If no scheme specified, default to 'http://'
276s3_store_host = 127.0.0.1:8080/v1.0/
277
278# User to authenticate against the S3 authentication service
279s3_store_access_key = <20-char AWS access key>
280
281# Auth key for the user authenticating against the
282# S3 authentication service
283s3_store_secret_key = <40-char AWS secret key>
284
285# Container within the account that the account should use
286# for storing images in S3. Note that S3 has a flat namespace,
287# so you need a unique bucket name for your glance images. An
288# easy way to do this is append your AWS access key to "glance".
289# S3 buckets in AWS *must* be lowercased, so remember to lowercase
290# your AWS access key if you use it in your bucket name below!
291s3_store_bucket = <lowercased 20-char aws access key>glance
292
293# Do we create the bucket if it does not exist?
294s3_store_create_bucket_on_put = False
295
296# When sending images to S3, the data will first be written to a
297# temporary buffer on disk. By default the platform's temporary directory
298# will be used. If required, an alternative directory can be specified here.
299#s3_store_object_buffer_dir = /path/to/dir
300
301# When forming a bucket url, boto will either set the bucket name as the
302# subdomain or as the first token of the path. Amazon's S3 service will
303# accept it as the subdomain, but Swift's S3 middleware requires it be
304# in the path. Set this to 'path' or 'subdomain' - defaults to 'subdomain'.
305#s3_store_bucket_url_format = subdomain
306
307# ============ RBD Store Options =============================
308
309# Ceph configuration file path
310# If using cephx authentication, this file should
311# include a reference to the right keyring
312# in a client.<USER> section
313rbd_store_ceph_conf = /etc/ceph/ceph.conf
314
315# RADOS user to authenticate as (only applicable if using cephx)
316rbd_store_user = glance
317
318# RADOS pool in which images are stored
319rbd_store_pool = images
320
321# Images will be chunked into objects of this size (in megabytes).
322# For best performance, this should be a power of two
323rbd_store_chunk_size = 8
324
325# ============ Delayed Delete Options =============================
326
327# Turn on/off delayed delete
328delayed_delete = False
329
330# Delayed delete time in seconds
331scrub_time = 43200
332
333# Directory that the scrubber will use to remind itself of what to delete
334# Make sure this is also set in glance-scrubber.conf
335scrubber_datadir = /var/lib/glance/scrubber
336
337# =============== Image Cache Options =============================
338
339# Base directory that the Image Cache uses
340image_cache_dir = /var/lib/glance/image_cache/
341
342[keystone_authtoken]
343auth_host = 127.0.0.1
344auth_port = 35357
345auth_protocol = http
346admin_tenant_name = %SERVICE_TENANT_NAME%
347admin_user = %SERVICE_USER%
348admin_password = %SERVICE_PASSWORD%
349
350[paste_deploy]
351# Name of the paste configuration file that defines the available pipelines
352#config_file = glance-api-paste.ini
353
354# Partial name of a pipeline in your paste configuration file with the
355# service name removed. For example, if your paste section name is
356# [pipeline:glance-api-keystone], you would configure the flavor below
357# as 'keystone'.
358#flavor=