blob: 0358a7a864164a9def3df4b4a17b4bcfb7895776 [file] [log] [blame]
Anthony Youngf12d3ab2011-09-20 00:33:51 -07001[DEFAULT]
2# Show more verbose log output (sets INFO log level output)
3verbose = True
4
5# Show debugging output in logs (sets DEBUG log level output)
6debug = True
7
8# Which backend store should Glance use by default is not specified
9# in a request to add a new image to Glance? Default: 'file'
10# Available choices are 'file', 'swift', and 's3'
11default_store = file
12
13# Address to bind the API server
14bind_host = 0.0.0.0
15
16# Port the bind the API server to
17bind_port = 9292
18
19# Address to find the registry server
20registry_host = 0.0.0.0
21
22# Port the registry server is listening on
23registry_port = 9191
24
25# Log to this file. Make sure you do not set the same log
26# file for both the API and registry servers!
Anthony Younga531b772011-09-20 09:59:54 -070027log_file = %DEST%/glance/api.log
Anthony Youngf12d3ab2011-09-20 00:33:51 -070028
29# Send logs to syslog (/dev/log) instead of to file specified by `log_file`
30use_syslog = False
31
32# ============ Notification System Options =====================
33
34# Notifications can be sent when images are create, updated or deleted.
35# There are three methods of sending notifications, logging (via the
36# log_file directive), rabbit (via a rabbitmq queue) or noop (no
37# notifications sent, the default)
38notifier_strategy = noop
39
40# Configuration options if sending notifications via rabbitmq (these are
41# the defaults)
42rabbit_host = localhost
43rabbit_port = 5672
44rabbit_use_ssl = false
45rabbit_userid = guest
46rabbit_password = guest
47rabbit_virtual_host = /
48rabbit_notification_topic = glance_notifications
49
50# ============ Filesystem Store Options ========================
51
52# Directory that the Filesystem backend store
53# writes image data to
Anthony Young3657ab32011-09-20 11:04:15 -070054filesystem_store_datadir = %DEST%/glance/images/
Anthony Youngf12d3ab2011-09-20 00:33:51 -070055
56# ============ Swift Store Options =============================
57
58# Address where the Swift authentication service lives
59swift_store_auth_address = 127.0.0.1:8080/v1.0/
60
61# User to authenticate against the Swift authentication service
62swift_store_user = jdoe
63
64# Auth key for the user authenticating against the
65# Swift authentication service
66swift_store_key = a86850deb2742ec3cb41518e26aa2d89
67
68# Container within the account that the account should use
69# for storing images in Swift
70swift_store_container = glance
71
72# Do we create the container if it does not exist?
73swift_store_create_container_on_put = False
74
75# What size, in MB, should Glance start chunking image files
76# and do a large object manifest in Swift? By default, this is
77# the maximum object size in Swift, which is 5GB
78swift_store_large_object_size = 5120
79
80# When doing a large object manifest, what size, in MB, should
81# Glance write chunks to Swift? This amount of data is written
82# to a temporary disk buffer during the process of chunking
83# the image file, and the default is 200MB
84swift_store_large_object_chunk_size = 200
85
86# Whether to use ServiceNET to communicate with the Swift storage servers.
87# (If you aren't RACKSPACE, leave this False!)
88#
89# To use ServiceNET for authentication, prefix hostname of
90# `swift_store_auth_address` with 'snet-'.
91# Ex. https://example.com/v1.0/ -> https://snet-example.com/v1.0/
92swift_enable_snet = False
93
94# ============ S3 Store Options =============================
95
96# Address where the S3 authentication service lives
97s3_store_host = 127.0.0.1:8080/v1.0/
98
99# User to authenticate against the S3 authentication service
100s3_store_access_key = <20-char AWS access key>
101
102# Auth key for the user authenticating against the
103# S3 authentication service
104s3_store_secret_key = <40-char AWS secret key>
105
106# Container within the account that the account should use
107# for storing images in S3. Note that S3 has a flat namespace,
108# so you need a unique bucket name for your glance images. An
109# easy way to do this is append your AWS access key to "glance".
110# S3 buckets in AWS *must* be lowercased, so remember to lowercase
111# your AWS access key if you use it in your bucket name below!
112s3_store_bucket = <lowercased 20-char aws access key>glance
113
114# Do we create the bucket if it does not exist?
115s3_store_create_bucket_on_put = False
116
117# ============ Image Cache Options ========================
118
119image_cache_enabled = False
120
121# Directory that the Image Cache writes data to
122# Make sure this is also set in glance-pruner.conf
123image_cache_datadir = /var/lib/glance/image-cache/
124
125# Number of seconds after which we should consider an incomplete image to be
126# stalled and eligible for reaping
127image_cache_stall_timeout = 86400
128
129# ============ Delayed Delete Options =============================
130
131# Turn on/off delayed delete
132delayed_delete = False
133
134# Delayed delete time in seconds
135scrub_time = 43200
136
137# Directory that the scrubber will use to remind itself of what to delete
138# Make sure this is also set in glance-scrubber.conf
139scrubber_datadir = /var/lib/glance/scrubber
140
141[pipeline:glance-api]
142#pipeline = versionnegotiation context apiv1app
143# NOTE: use the following pipeline for keystone
144pipeline = versionnegotiation authtoken context apiv1app
145
146# To enable Image Cache Management API replace pipeline with below:
147# pipeline = versionnegotiation context imagecache apiv1app
148# NOTE: use the following pipeline for keystone auth (with caching)
149# pipeline = versionnegotiation authtoken context imagecache apiv1app
150
151[pipeline:versions]
152pipeline = versionsapp
153
154[app:versionsapp]
155paste.app_factory = glance.api.versions:app_factory
156
157[app:apiv1app]
158paste.app_factory = glance.api.v1:app_factory
159
160[filter:versionnegotiation]
161paste.filter_factory = glance.api.middleware.version_negotiation:filter_factory
162
163[filter:imagecache]
164paste.filter_factory = glance.api.middleware.image_cache:filter_factory
165
166[filter:context]
167paste.filter_factory = glance.common.context:filter_factory
168
169[filter:authtoken]
170paste.filter_factory = keystone.middleware.auth_token:filter_factory
171service_protocol = http
172service_host = 127.0.0.1
173service_port = 5000
174auth_host = 127.0.0.1
Anthony Younga449dd82011-09-30 15:52:18 -0700175auth_port = 35357
Anthony Youngf12d3ab2011-09-20 00:33:51 -0700176auth_protocol = http
177auth_uri = http://127.0.0.1:5000/
Jesse Andrewsb96871e2011-10-02 09:02:46 -0700178admin_token = %SERVICE_TOKEN%