22 # Not supported on OS X. |
25 # Not supported on OS X. |
23 #tcp_keepidle = 600 |
26 #tcp_keepidle = 600 |
24 |
27 |
25 # API to use for accessing data. Default value points to sqlalchemy |
28 # API to use for accessing data. Default value points to sqlalchemy |
26 # package. |
29 # package. |
27 # data_api = glance.db.sqlalchemy.api |
30 #data_api = glance.db.sqlalchemy.api |
28 |
31 |
29 # SQLAlchemy connection string for the reference implementation |
32 # The number of child process workers that will be |
30 # registry server. Any valid SQLAlchemy connection string is fine. |
33 # created to service Registry requests. The default will be |
31 # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine |
34 # equal to the number of CPUs available. (integer value) |
32 sql_connection = sqlite:////var/lib/glance/glance.sqlite |
35 workers = 1 |
33 |
36 |
34 # Period in seconds after which SQLAlchemy should reestablish its connection |
37 # Enable Registry API versions individually or simultaneously |
35 # to the database. |
38 #enable_v1_registry = True |
36 # |
39 #enable_v2_registry = True |
37 # MySQL uses a default `wait_timeout` of 8 hours, after which it will drop |
|
38 # idle connections. This can result in 'MySQL Gone Away' exceptions. If you |
|
39 # notice this, you can lower this value to ensure that SQLAlchemy reconnects |
|
40 # before MySQL can drop the connection. |
|
41 sql_idle_timeout = 3600 |
|
42 |
40 |
43 # Limit the api to return `param_limit_max` items in a call to a container. If |
41 # Limit the api to return `param_limit_max` items in a call to a container. If |
44 # a larger `limit` query param is provided, it will be reduced to this value. |
42 # a larger `limit` query param is provided, it will be reduced to this value. |
45 api_limit_max = 1000 |
43 api_limit_max = 1000 |
46 |
44 |
78 #key_file = /path/to/keyfile |
76 #key_file = /path/to/keyfile |
79 |
77 |
80 # CA certificate file to use to verify connecting clients |
78 # CA certificate file to use to verify connecting clients |
81 #ca_file = /path/to/cafile |
79 #ca_file = /path/to/cafile |
82 |
80 |
|
81 # ============ Notification System Options ===================== |
|
82 |
|
83 # Driver or drivers to handle sending notifications. Set to |
|
84 # 'messaging' to send notifications to a message queue. |
|
85 # notification_driver = noop |
|
86 |
|
87 # Default publisher_id for outgoing notifications. |
|
88 # default_publisher_id = image.localhost |
|
89 |
|
90 # Messaging driver used for 'messaging' notifications driver |
|
91 # rpc_backend = 'rabbit' |
|
92 |
|
93 # Configuration options if sending notifications via rabbitmq (these are |
|
94 # the defaults) |
|
95 rabbit_host = localhost |
|
96 rabbit_port = 5672 |
|
97 rabbit_use_ssl = false |
|
98 rabbit_userid = guest |
|
99 rabbit_password = guest |
|
100 rabbit_virtual_host = / |
|
101 rabbit_notification_exchange = glance |
|
102 rabbit_notification_topic = notifications |
|
103 rabbit_durable_queues = False |
|
104 |
|
105 # Configuration options if sending notifications via Qpid (these are |
|
106 # the defaults) |
|
107 qpid_notification_exchange = glance |
|
108 qpid_notification_topic = notifications |
|
109 qpid_hostname = localhost |
|
110 qpid_port = 5672 |
|
111 qpid_username = |
|
112 qpid_password = |
|
113 qpid_sasl_mechanisms = |
|
114 qpid_reconnect_timeout = 0 |
|
115 qpid_reconnect_limit = 0 |
|
116 qpid_reconnect_interval_min = 0 |
|
117 qpid_reconnect_interval_max = 0 |
|
118 qpid_reconnect_interval = 0 |
|
119 qpid_heartbeat = 5 |
|
120 # Set to 'ssl' to enable SSL |
|
121 qpid_protocol = tcp |
|
122 qpid_tcp_nodelay = True |
|
123 |
|
124 |
|
125 # ================= Database Options ========================== |
|
126 |
|
127 [database] |
|
128 # The file name to use with SQLite (string value) |
|
129 #sqlite_db = glance.sqlite |
|
130 |
|
131 # If True, SQLite uses synchronous mode (boolean value) |
|
132 #sqlite_synchronous = True |
|
133 |
|
134 # The backend to use for db (string value) |
|
135 # Deprecated group/name - [DEFAULT]/db_backend |
|
136 #backend = sqlalchemy |
|
137 |
|
138 # The SQLAlchemy connection string used to connect to the |
|
139 # database (string value) |
|
140 # Deprecated group/name - [DEFAULT]/sql_connection |
|
141 # Deprecated group/name - [DATABASE]/sql_connection |
|
142 # Deprecated group/name - [sql]/connection |
|
143 connection = mysql://%SERVICE_USER%:%SERVICE_PASSWORD%@localhost/glance |
|
144 |
|
145 # The SQL mode to be used for MySQL sessions. This option, |
|
146 # including the default, overrides any server-set SQL mode. To |
|
147 # use whatever SQL mode is set by the server configuration, |
|
148 # set this to no value. Example: mysql_sql_mode= (string |
|
149 # value) |
|
150 #mysql_sql_mode = TRADITIONAL |
|
151 |
|
152 # Timeout before idle sql connections are reaped (integer |
|
153 # value) |
|
154 # Deprecated group/name - [DEFAULT]/sql_idle_timeout |
|
155 # Deprecated group/name - [DATABASE]/sql_idle_timeout |
|
156 # Deprecated group/name - [sql]/idle_timeout |
|
157 #idle_timeout = 3600 |
|
158 |
|
159 # Minimum number of SQL connections to keep open in a pool |
|
160 # (integer value) |
|
161 # Deprecated group/name - [DEFAULT]/sql_min_pool_size |
|
162 # Deprecated group/name - [DATABASE]/sql_min_pool_size |
|
163 #min_pool_size = 1 |
|
164 |
|
165 # Maximum number of SQL connections to keep open in a pool |
|
166 # (integer value) |
|
167 # Deprecated group/name - [DEFAULT]/sql_max_pool_size |
|
168 # Deprecated group/name - [DATABASE]/sql_max_pool_size |
|
169 #max_pool_size = <None> |
|
170 |
|
171 # Maximum db connection retries during startup. (setting -1 |
|
172 # implies an infinite retry count) (integer value) |
|
173 # Deprecated group/name - [DEFAULT]/sql_max_retries |
|
174 # Deprecated group/name - [DATABASE]/sql_max_retries |
|
175 #max_retries = 10 |
|
176 |
|
177 # Interval between retries of opening a sql connection |
|
178 # (integer value) |
|
179 # Deprecated group/name - [DEFAULT]/sql_retry_interval |
|
180 # Deprecated group/name - [DATABASE]/reconnect_interval |
|
181 #retry_interval = 10 |
|
182 |
|
183 # If set, use this value for max_overflow with sqlalchemy |
|
184 # (integer value) |
|
185 # Deprecated group/name - [DEFAULT]/sql_max_overflow |
|
186 # Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow |
|
187 #max_overflow = <None> |
|
188 |
|
189 # Verbosity of SQL debugging information. 0=None, |
|
190 # 100=Everything (integer value) |
|
191 # Deprecated group/name - [DEFAULT]/sql_connection_debug |
|
192 #connection_debug = 0 |
|
193 |
|
194 # Add python stack traces to SQL as comment strings (boolean |
|
195 # value) |
|
196 # Deprecated group/name - [DEFAULT]/sql_connection_trace |
|
197 #connection_trace = False |
|
198 |
|
199 # If set, use this value for pool_timeout with sqlalchemy |
|
200 # (integer value) |
|
201 # Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout |
|
202 #pool_timeout = <None> |
|
203 |
|
204 # Enable the experimental use of database reconnect on |
|
205 # connection lost (boolean value) |
|
206 #use_db_reconnect = False |
|
207 |
|
208 # seconds between db connection retries (integer value) |
|
209 #db_retry_interval = 1 |
|
210 |
|
211 # Whether to increase interval between db connection retries, |
|
212 # up to db_max_retry_interval (boolean value) |
|
213 #db_inc_retry_interval = True |
|
214 |
|
215 # max seconds between db connection retries, if |
|
216 # db_inc_retry_interval is enabled (integer value) |
|
217 #db_max_retry_interval = 10 |
|
218 |
|
219 # maximum db connection retries before error is raised. |
|
220 # (setting -1 implies an infinite retry count) (integer value) |
|
221 #db_max_retries = 20 |
|
222 |
83 [keystone_authtoken] |
223 [keystone_authtoken] |
84 auth_uri = http://127.0.0.1:5000/v2.0 |
224 auth_uri = http://127.0.0.1:5000/v2.0/ |
85 identity_uri = http://127.0.0.1:35357 |
225 identity_uri = http://127.0.0.1:35357/ |
86 admin_tenant_name = %SERVICE_TENANT_NAME% |
226 admin_tenant_name = %SERVICE_TENANT_NAME% |
87 admin_user = %SERVICE_USER% |
227 admin_user = %SERVICE_USER% |
88 admin_password = %SERVICE_PASSWORD% |
228 admin_password = %SERVICE_PASSWORD% |
89 signing_dir = /var/lib/glance/keystone-signing |
229 signing_dir = /var/lib/glance/keystone-signing |
90 |
230 |