~ubuntu-branches/ubuntu/raring/glance/raring-updates

« back to all changes in this revision

Viewing changes to .pc/sql_conn.patch/etc/glance-api.conf

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandleman, Chuck Short
  • Date: 2012-08-16 13:58:32 UTC
  • mfrom: (1.1.41)
  • Revision ID: package-import@ubuntu.com-20120816135832-4m40ppptd1l073fr
Tags: 2012.2~f3-0ubuntu1
[ Adam Gandleman ]
* debian/patches/sql_conn.patch: Also set default sqlite path for
  in glance-api.conf. (LP: #1028711)
* debian/patches/fix-docs-build.patch: Fix docs build

[ Chuck Short ]
* New upstream version.
* debian/control: python-xattr is no longer a required depends.
  (LP: #1031396)
* debian/control: Move python-jsonschema to glance.
  (LP: #1030152)
* debian/control: Start the slow transition to python-glanceclient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[DEFAULT]
 
2
# Show more verbose log output (sets INFO log level output)
 
3
verbose = True
 
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'
 
12
default_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
# Address to bind the API server
 
23
bind_host = 0.0.0.0
 
24
 
 
25
# Port the bind the API server to
 
26
bind_port = 9292
 
27
 
 
28
# Log to this file. Make sure you do not set the same log
 
29
# file for both the API and registry servers!
 
30
log_file = /var/log/glance/api.log
 
31
 
 
32
# Backlog requests when creating socket
 
33
backlog = 4096
 
34
 
 
35
# TCP_KEEPIDLE value in seconds when creating socket.
 
36
# Not supported on OS X.
 
37
# tcp_keepidle = 600
 
38
 
 
39
# SQLAlchemy connection string for the reference implementation
 
40
# registry server. Any valid SQLAlchemy connection string is fine.
 
41
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
 
42
sql_connection = sqlite:///glance.sqlite
 
43
 
 
44
# Period in seconds after which SQLAlchemy should reestablish its connection
 
45
# to the database.
 
46
#
 
47
# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
 
48
# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
 
49
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
 
50
# before MySQL can drop the connection.
 
51
sql_idle_timeout = 3600
 
52
 
 
53
# Number of Glance API worker processes to start.
 
54
# On machines with more than one CPU increasing this value
 
55
# may improve performance (especially if using SSL with
 
56
# compression turned on). It is typically recommended to set
 
57
# this value to the number of CPUs present on your machine.
 
58
workers = 0
 
59
 
 
60
# Role used to identify an authenticated user as administrator
 
61
#admin_role = admin
 
62
 
 
63
# Allow unauthenticated users to access the API with read-only
 
64
# privileges. This only applies when using ContextMiddleware.
 
65
#allow_anonymous_access = False
 
66
 
 
67
# ================= Syslog Options ============================
 
68
 
 
69
# Send logs to syslog (/dev/log) instead of to file specified
 
70
# by `log_file`
 
71
use_syslog = False
 
72
 
 
73
# Facility to use. If unset defaults to LOG_USER.
 
74
# syslog_log_facility = LOG_LOCAL0
 
75
 
 
76
# ================= SSL Options ===============================
 
77
 
 
78
# Certificate file to use when starting API server securely
 
79
# cert_file = /path/to/certfile
 
80
 
 
81
# Private key file to use when starting API server securely
 
82
# key_file = /path/to/keyfile
 
83
 
 
84
# CA certificate file to use to verify connecting clients
 
85
# ca_file = /path/to/cafile
 
86
 
 
87
# ================= Security Options ==========================
 
88
 
 
89
# AES key for encrypting store 'location' metadata, including
 
90
# -- if used -- Swift or S3 credentials
 
91
# Should be set to a random string of length 16, 24 or 32 bytes
 
92
# metadata_encryption_key = <16, 24 or 32 char registry metadata key>
 
93
 
 
94
# ============ Registry Options ===============================
 
95
 
 
96
# Address to find the registry server
 
97
registry_host = 0.0.0.0
 
98
 
 
99
# Port the registry server is listening on
 
100
registry_port = 9191
 
101
 
 
102
# What protocol to use when connecting to the registry server?
 
103
# Set to https for secure HTTP communication
 
104
registry_client_protocol = http
 
105
 
 
106
# The path to the key file to use in SSL connections to the
 
107
# registry server, if any. Alternately, you may set the
 
108
# GLANCE_CLIENT_KEY_FILE environ variable to a filepath of the key file
 
109
# registry_client_key_file = /path/to/key/file
 
110
 
 
111
# The path to the cert file to use in SSL connections to the
 
112
# registry server, if any. Alternately, you may set the
 
113
# GLANCE_CLIENT_CERT_FILE environ variable to a filepath of the cert file
 
114
# registry_client_cert_file = /path/to/cert/file
 
115
 
 
116
# The path to the certifying authority cert file to use in SSL connections
 
117
# to the registry server, if any. Alternately, you may set the
 
118
# GLANCE_CLIENT_CA_FILE environ variable to a filepath of the CA cert file
 
119
# registry_client_ca_file = /path/to/ca/file
 
120
 
 
121
# ============ Notification System Options =====================
 
122
 
 
123
# Notifications can be sent when images are create, updated or deleted.
 
124
# There are three methods of sending notifications, logging (via the
 
125
# log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid
 
126
# message queue), or noop (no notifications sent, the default)
 
127
notifier_strategy = noop
 
128
 
 
129
# Configuration options if sending notifications via rabbitmq (these are
 
130
# the defaults)
 
131
rabbit_host = localhost
 
132
rabbit_port = 5672
 
133
rabbit_use_ssl = false
 
134
rabbit_userid = guest
 
135
rabbit_password = guest
 
136
rabbit_virtual_host = /
 
137
rabbit_notification_exchange = glance
 
138
rabbit_notification_topic = glance_notifications
 
139
 
 
140
# Configuration options if sending notifications via Qpid (these are
 
141
# the defaults)
 
142
qpid_notification_exchange = glance
 
143
qpid_notification_topic = glance_notifications
 
144
qpid_host = localhost
 
145
qpid_port = 5672
 
146
qpid_username =
 
147
qpid_password =
 
148
qpid_sasl_mechanisms =
 
149
qpid_reconnect_timeout = 0
 
150
qpid_reconnect_limit = 0
 
151
qpid_reconnect_interval_min = 0
 
152
qpid_reconnect_interval_max = 0
 
153
qpid_reconnect_interval = 0
 
154
qpid_heartbeat = 5
 
155
# Set to 'ssl' to enable SSL
 
156
qpid_protocol = tcp
 
157
qpid_tcp_nodelay = True
 
158
 
 
159
# ============ Filesystem Store Options ========================
 
160
 
 
161
# Directory that the Filesystem backend store
 
162
# writes image data to
 
163
filesystem_store_datadir = /var/lib/glance/images/
 
164
 
 
165
# ============ Swift Store Options =============================
 
166
 
 
167
# Version of the authentication service to use
 
168
# Valid versions are '2' for keystone and '1' for swauth and rackspace
 
169
swift_store_auth_version = 2
 
170
 
 
171
# Address where the Swift authentication service lives
 
172
# Valid schemes are 'http://' and 'https://'
 
173
# If no scheme specified,  default to 'https://'
 
174
# For swauth, use something like '127.0.0.1:8080/v1.0/'
 
175
swift_store_auth_address = 127.0.0.1:5000/v2.0/
 
176
 
 
177
# User to authenticate against the Swift authentication service
 
178
# If you use Swift authentication service, set it to 'account':'user'
 
179
# where 'account' is a Swift storage account and 'user'
 
180
# is a user in that account
 
181
swift_store_user = jdoe:jdoe
 
182
 
 
183
# Auth key for the user authenticating against the
 
184
# Swift authentication service
 
185
swift_store_key = a86850deb2742ec3cb41518e26aa2d89
 
186
 
 
187
# Container within the account that the account should use
 
188
# for storing images in Swift
 
189
swift_store_container = glance
 
190
 
 
191
# Do we create the container if it does not exist?
 
192
swift_store_create_container_on_put = False
 
193
 
 
194
# What size, in MB, should Glance start chunking image files
 
195
# and do a large object manifest in Swift? By default, this is
 
196
# the maximum object size in Swift, which is 5GB
 
197
swift_store_large_object_size = 5120
 
198
 
 
199
# When doing a large object manifest, what size, in MB, should
 
200
# Glance write chunks to Swift? This amount of data is written
 
201
# to a temporary disk buffer during the process of chunking
 
202
# the image file, and the default is 200MB
 
203
swift_store_large_object_chunk_size = 200
 
204
 
 
205
# Whether to use ServiceNET to communicate with the Swift storage servers.
 
206
# (If you aren't RACKSPACE, leave this False!)
 
207
#
 
208
# To use ServiceNET for authentication, prefix hostname of
 
209
# `swift_store_auth_address` with 'snet-'.
 
210
# Ex. https://example.com/v1.0/ -> https://snet-example.com/v1.0/
 
211
swift_enable_snet = False
 
212
 
 
213
# If set to True enables multi-tenant storage mode which causes Glance images
 
214
# to be stored in tenant specific Swift accounts.
 
215
# swift_store_multi_tenant = False
 
216
 
 
217
# A list of tenants that will be granted read/write access on all Swift
 
218
# containers created by Glance in multi-tenant mode.
 
219
# swift_store_admin_tenants = []
 
220
 
 
221
# ============ S3 Store Options =============================
 
222
 
 
223
# Address where the S3 authentication service lives
 
224
# Valid schemes are 'http://' and 'https://'
 
225
# If no scheme specified,  default to 'http://'
 
226
s3_store_host = 127.0.0.1:8080/v1.0/
 
227
 
 
228
# User to authenticate against the S3 authentication service
 
229
s3_store_access_key = <20-char AWS access key>
 
230
 
 
231
# Auth key for the user authenticating against the
 
232
# S3 authentication service
 
233
s3_store_secret_key = <40-char AWS secret key>
 
234
 
 
235
# Container within the account that the account should use
 
236
# for storing images in S3. Note that S3 has a flat namespace,
 
237
# so you need a unique bucket name for your glance images. An
 
238
# easy way to do this is append your AWS access key to "glance".
 
239
# S3 buckets in AWS *must* be lowercased, so remember to lowercase
 
240
# your AWS access key if you use it in your bucket name below!
 
241
s3_store_bucket = <lowercased 20-char aws access key>glance
 
242
 
 
243
# Do we create the bucket if it does not exist?
 
244
s3_store_create_bucket_on_put = False
 
245
 
 
246
# When sending images to S3, the data will first be written to a
 
247
# temporary buffer on disk. By default the platform's temporary directory
 
248
# will be used. If required, an alternative directory can be specified here.
 
249
# s3_store_object_buffer_dir = /path/to/dir
 
250
 
 
251
# ============ RBD Store Options =============================
 
252
 
 
253
# Ceph configuration file path
 
254
# If using cephx authentication, this file should
 
255
# include a reference to the right keyring
 
256
# in a client.<USER> section
 
257
rbd_store_ceph_conf = /etc/ceph/ceph.conf
 
258
 
 
259
# RADOS user to authenticate as (only applicable if using cephx)
 
260
rbd_store_user = glance
 
261
 
 
262
# RADOS pool in which images are stored
 
263
rbd_store_pool = images
 
264
 
 
265
# Images will be chunked into objects of this size (in megabytes).
 
266
# For best performance, this should be a power of two
 
267
rbd_store_chunk_size = 8
 
268
 
 
269
# ============ Delayed Delete Options =============================
 
270
 
 
271
# Turn on/off delayed delete
 
272
delayed_delete = False
 
273
 
 
274
# Delayed delete time in seconds
 
275
scrub_time = 43200
 
276
 
 
277
# Directory that the scrubber will use to remind itself of what to delete
 
278
# Make sure this is also set in glance-scrubber.conf
 
279
scrubber_datadir = /var/lib/glance/scrubber
 
280
 
 
281
# =============== Image Cache Options =============================
 
282
 
 
283
# Base directory that the Image Cache uses
 
284
image_cache_dir = /var/lib/glance/image-cache/