summaryrefslogtreecommitdiff
path: root/etc/glance-image-import.conf.sample
blob: 9439958ae3e96b065a5758aa0b7522ba25ba9d27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
[DEFAULT]


[glance_download_opts]

#
# From glance
#

#
# Specify metadata prefix to be set on the target image when using
# glance-download. All other properties coming from the source image won't be
# set
# on the target image. If specified metadata does not exist on the source image
# it won't be set on the target image. Note you can't set the os_glance prefix
# as it is reserved by glance, so the related properties won't be set on the
# target image.
#
# Possible values:
#     * List containing extra_properties prefixes: ['os_', 'architecture']
#
#  (list value)
#extra_properties = [hw_,trait:,os_distro,os_secure_boot,os_type]


[image_conversion]

#
# From glance
#

#
# Desired output format for image conversion plugin.
#
# Provide a valid image format to which the conversion plugin
# will convert the image before storing it to the back-end.
#
# Note, if the Image Conversion plugin for image import is defined, users
# should only upload disk formats that are supported by `quemu-img` otherwise
# the conversion and import will fail.
#
# Possible values:
#     * qcow2
#     * raw
#     * vmdk
#
# Related Options:
#     * disk_formats
#  (string value)
# Possible values:
# qcow2 - <No description provided>
# raw - <No description provided>
# vmdk - <No description provided>
#output_format = raw


[image_import_opts]

#
# From glance
#

#
# Image import plugins to be enabled for task processing.
#
# Provide list of strings reflecting to the task Objects
# that should be included to the Image Import flow. The
# task objects needs to be defined in the 'glance/async/
# flows/plugins/*' and may be implemented by OpenStack
# Glance project team, deployer or 3rd party.
#
# By default no plugins are enabled and to take advantage
# of the plugin model the list of plugins must be set
# explicitly in the glance-image-import.conf file.
#
# The allowed values for this option is comma separated
# list of object names in between ``[`` and ``]``.
#
# Possible values:
#     * no_op (only logs debug level message that the
#       plugin has been executed)
#     * Any provided Task object name to be included
#       in to the flow.
#  (list value)
#
# This option has a sample default set, which means that
# its actual default value may vary from the one documented
# below.
#image_import_plugins = [no_op]


[import_filtering_opts]

#
# From glance
#

#
# Specify the "whitelist" of allowed url schemes for web-download.
#
# This option provides whitelisting of uri schemes that will be allowed when
# an end user imports an image using the web-download import method. The
# whitelist has priority such that if there is also a blacklist defined for
# schemes, the blacklist will be ignored.  Host and port filtering, however,
# will be applied.
#
# See the Glance Administration Guide for more information.
#
# Possible values:
#     * List containing normalized url schemes as they are returned from
#       urllib.parse. For example ['ftp','https']
#     * Hint: leave the whitelist empty if you want the disallowed_schemes
#       blacklist to be processed
#
# Related options:
#     * disallowed_schemes
#     * allowed_hosts
#     * disallowed_hosts
#     * allowed_ports
#     * disallowed_ports
#
#  (list value)
#allowed_schemes = [http,https]

#
# Specify the "blacklist" of uri schemes disallowed for web-download.
#
# This option provides blacklisting of uri schemes that will be rejected when
# an end user imports an image using the web-download import method.  Note
# that if a scheme whitelist is defined using the 'allowed_schemes' option,
# *this option will be ignored*.  Host and port filtering, however, will be
# applied.
#
# See the Glance Administration Guide for more information.
#
# Possible values:
#     * List containing normalized url schemes as they are returned from
#       urllib.parse. For example ['ftp','https']
#     * By default the list is empty
#
# Related options:
#     * allowed_schemes
#     * allowed_hosts
#     * disallowed_hosts
#     * allowed_ports
#     * disallowed_ports
#
#  (list value)
#disallowed_schemes = []

#
# Specify the "whitelist" of allowed target hosts for web-download.
#
# This option provides whitelisting of hosts that will be allowed when an end
# user imports an image using the web-download import method. The whitelist
# has priority such that if there is also a blacklist defined for hosts, the
# blacklist will be ignored.  The uri must have already passed scheme
# filtering before this host filter will be applied.  If the uri passes, port
# filtering will then be applied.
#
# See the Glance Administration Guide for more information.
#
# Possible values:
#     * List containing normalized hostname or ip like it would be returned
#       in the urllib.parse netloc without the port
#     * By default the list is empty
#     * Hint: leave the whitelist empty if you want the disallowed_hosts
#       blacklist to be processed
#
# Related options:
#     * allowed_schemes
#     * disallowed_schemes
#     * disallowed_hosts
#     * allowed_ports
#     * disallowed_ports
#
#  (list value)
#allowed_hosts = []

#
# Specify the "blacklist" of hosts disallowed for web-download.
#
# This option provides blacklisting of hosts that will be rejected when an end
# user imports an image using the web-download import method.  Note that if a
# host whitelist is defined using the 'allowed_hosts' option, *this option
# will be ignored*.
#
# The uri must have already passed scheme filtering before this host filter
# will be applied.  If the uri passes, port filtering will then be applied.
#
# See the Glance Administration Guide for more information.
#
# Possible values:
#     * List containing normalized hostname or ip like it would be returned
#       in the urllib.parse netloc without the port
#     * By default the list is empty
#
# Related options:
#     * allowed_schemes
#     * disallowed_schemes
#     * allowed_hosts
#     * allowed_ports
#     * disallowed_ports
#
#  (list value)
#disallowed_hosts = []

#
# Specify the "whitelist" of allowed ports for web-download.
#
# This option provides whitelisting of ports that will be allowed when an end
# user imports an image using the web-download import method.  The whitelist
# has priority such that if there is also a blacklist defined for ports, the
# blacklist will be ignored.  Note that scheme and host filtering have already
# been applied by the time a uri hits the port filter.
#
# See the Glance Administration Guide for more information.
#
# Possible values:
#     * List containing ports as they are returned from urllib.parse netloc
#       field.  Thus the value is a list of integer values, for example
#       [80, 443]
#     * Hint: leave the whitelist empty if you want the disallowed_ports
#       blacklist to be processed
#
# Related options:
#     * allowed_schemes
#     * disallowed_schemes
#     * allowed_hosts
#     * disallowed_hosts
#     * disallowed_ports
#  (list value)
#allowed_ports = [80,443]

#
# Specify the "blacklist" of disallowed ports for web-download.
#
# This option provides blacklisting of target ports that will be rejected when
# an end user imports an image using the web-download import method.  Note
# that if a port whitelist is defined using the 'allowed_ports' option, *this
# option will be ignored*.  Note that scheme and host filtering have already
# been applied by the time a uri hits the port filter.
#
# See the Glance Administration Guide for more information.
#
# Possible values:
#     * List containing ports as they are returned from urllib.parse netloc
#       field.  Thus the value is a list of integer values, for example
#       [22, 88]
#     * By default this list is empty
#
# Related options:
#     * allowed_schemes
#     * disallowed_schemes
#     * allowed_hosts
#     * disallowed_hosts
#     * allowed_ports
#
#  (list value)
#disallowed_ports = []


[inject_metadata_properties]

#
# From glance
#

#
# Specify name of user roles to be ignored for injecting metadata
# properties in the image.
#
# Possible values:
#     * List containing user roles. For example: [admin,member]
#
#  (list value)
#ignore_user_roles = admin

#
# Dictionary contains metadata properties to be injected in image.
#
# Possible values:
#     * Dictionary containing key/value pairs. Key characters
#     length should be <= 255. For example: k1:v1,k2:v2
#
#
#  (dict value)
#inject =