-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathREFERENCE.md
352 lines (199 loc) · 7.81 KB
/
REFERENCE.md
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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# Reference
<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
## Table of Contents
### Resource types
* [`yumrepo`](#yumrepo): The client-side description of a yum repository.
## Resource types
### <a name="yumrepo"></a>`yumrepo`
Repository configurations are found by parsing `/etc/yum.conf` and the files
indicated by the `reposdir` option in that file (see `yum.conf(5)` for
details).
Most parameters are identical to the ones documented
in the `yum.conf(5)` man page.
Continuation lines that yum supports (for the `baseurl`, for example)
are not supported. This type does not attempt to read or verify the
existence of files listed in the `include` attribute."
#### Properties
The following properties are available in the `yumrepo` type.
##### `assumeyes`
Valid values: `YUM_BOOLEAN`, `absent`
Determines if yum prompts for confirmation of critical actions.
##### `bandwidth`
Valid values: `%r{^\d+[kMG]?$}`, `absent`
Use to specify the maximum available network bandwidth
in bytes/second. Used with the `throttle` option. If `throttle`
is a percentage and `bandwidth` is `0` then bandwidth throttling
will be disabled. If `throttle` is expressed as a data rate then
this option is ignored.\n
##### `baseurl`
Valid values: `%r{.*}`, `absent`
The URL for this repository.
##### `cost`
Valid values: `%r{^\d+$}`, `absent`
Cost of this repository.
##### `deltarpm_metadata_percentage`
Valid values: `%r{^\d+$}`, `absent`
Percentage value that determines when to download deltarpm metadata.
When the deltarpm metadata is larger than this percentage value of the
package, deltarpm metadata is not downloaded.
##### `deltarpm_percentage`
Valid values: `%r{^\d+$}`, `absent`
Percentage value that determines when to use deltas for this repository.
When the delta is larger than this percentage value of the package, the
delta is not used.
##### `descr`
Valid values: `%r{.*}`, `absent`
A human-readable description of the repository.
This corresponds to the name parameter in `yum.conf(5)`.
##### `enabled`
Valid values: `YUM_BOOLEAN`, `absent`
Whether this repository is enabled.
##### `enablegroups`
Valid values: `YUM_BOOLEAN`, `absent`
Whether yum will allow the use of package groups for this
repository.
##### `ensure`
Valid values: `present`, `absent`
The basic property that the resource should be in.
Default value: `present`
##### `exclude`
Valid values: `%r{.*}`, `absent`
The string of package names or shell globs separated by spaces to exclude.
Packages that match the package name given or shell globs will never be
considered in updates or installs for this repo.
##### `failovermethod`
Valid values: `%r{^roundrobin|priority$}`, `absent`
The failover method for this repository; should be either
`roundrobin` or `priority`.
##### `gpgcakey`
Valid values: `%r{.*}`, `absent`
The URL for the GPG CA key for this repository.
##### `gpgcheck`
Valid values: `YUM_BOOLEAN`, `absent`
Whether to check the GPG signature on packages installed
from this repository.
##### `gpgkey`
Valid values: `%r{.*}`, `absent`
The URL for the GPG key with which packages from this
repository are signed.
##### `http_caching`
Valid values: `%r{^(packages|all|none)$}`, `absent`
What to cache from this repository.
##### `include`
Valid values: `%r{.*}`, `absent`
The URL of a remote file containing additional yum configuration
settings. Puppet does not check for this file's existence or validity.
##### `includepkgs`
Valid values: `%r{.*}`, `absent`
The string of package names or shell globs separated by spaces to
include. If this is set, only packages matching one of the package
names or shell globs will be considered for update or install
from this repository.
##### `keepalive`
Valid values: `YUM_BOOLEAN`, `absent`
Whether HTTP/1.1 keepalive should be used with this repository.
##### `metadata_expire`
Valid values: `%r{^([0-9]+[dhm]?|never)$}`, `absent`
Number of seconds after which the metadata will expire.
##### `metalink`
Valid values: `%r{.*}`, `absent`
Metalink for mirrors.
##### `minrate`
Valid values: `%r{^\d+$}`, `absent`
Sets the low speed threshold in bytes per second.
If the server is sending data slower than this for at least
`timeout` seconds, Yum aborts the connection. The default is
`1000`.
##### `mirrorlist`
Valid values: `%r{.*}`, `absent`
The URL that holds the list of mirrors for this repository.
##### `mirrorlist_expire`
Valid values: `%r{^[0-9]+$}`, `absent`
Time (in seconds) after which the mirrorlist locally cached
will expire.\n
##### `module_hotfixes`
Valid values: `YUM_BOOLEAN`, `absent`
Whether packages from this repo can be installed into modules.
##### `password`
Valid values: `%r{.*}`, `absent`
Password to use with the username for basic authentication.
##### `payload_gpgcheck`
Valid values: `YUM_BOOLEAN`, `absent`
Whether to check the GPG signature of the packages payload.
##### `priority`
Valid values: `%r{^-?\d+$}`, `absent`
Priority of this repository. Can be any integer value
(including negative). Requires that the `priorities` plugin
is installed and enabled.
##### `protect`
Valid values: `YUM_BOOLEAN`, `absent`
Enable or disable protection for this repository. Requires
that the `protectbase` plugin is installed and enabled.
##### `proxy`
Valid values: `%r{.*}`, `absent`
URL of a proxy server that Yum should use when accessing this repository.
This attribute can also be set to '_none_' (or '' for EL >= 8 only),
which will make Yum bypass any global proxy settings when accessing this repository.
##### `proxy_password`
Valid values: `%r{.*}`, `absent`
Password for this proxy.
##### `proxy_username`
Valid values: `%r{.*}`, `absent`
Username for this proxy.
##### `repo_gpgcheck`
Valid values: `YUM_BOOLEAN`, `absent`
Whether to check the GPG signature on repodata.
##### `retries`
Valid values: `%r{^[0-9]+$}`, `absent`
Set the number of times any attempt to retrieve a file should
retry before returning an error. Setting this to `0` makes yum
try forever.\n
##### `s3_enabled`
Valid values: `YUM_BOOLEAN`, `absent`
Access the repository via S3.
##### `skip_if_unavailable`
Valid values: `YUM_BOOLEAN`, `absent`
Should yum skip this repository if unable to reach it.
##### `sslcacert`
Valid values: `%r{.*}`, `absent`
Path to the directory containing the databases of the
certificate authorities yum should use to verify SSL certificates.
##### `sslclientcert`
Valid values: `%r{.*}`, `absent`
Path to the SSL client certificate yum should use to connect
to repositories/remote sites.
##### `sslclientkey`
Valid values: `%r{.*}`, `absent`
Path to the SSL client key yum should use to connect
to repositories/remote sites.
##### `sslverify`
Valid values: `YUM_BOOLEAN`, `absent`
Should yum verify SSL certificates/hosts at all.
##### `throttle`
Valid values: `%r{^\d+[kMG%]?$}`, `absent`
Enable bandwidth throttling for downloads. This option
can be expressed as a absolute data rate in bytes/sec or a
percentage `60%`. An SI prefix (k, M or G) may be appended
to the data rate values.\n
##### `timeout`
Valid values: `%r{^\d+$}`, `absent`
Number of seconds to wait for a connection before timing
out.
##### `username`
Valid values: `%r{.*}`, `absent`
Username to use for basic authentication to a repo or really any url.
#### Parameters
The following parameters are available in the `yumrepo` type.
* [`name`](#name)
* [`provider`](#provider)
* [`target`](#target)
##### <a name="name"></a>`name`
namevar
The name of the repository. This corresponds to the
`repositoryid` parameter in `yum.conf(5)`.
##### <a name="provider"></a>`provider`
The specific backend to use for this `yumrepo` resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.
##### <a name="target"></a>`target`
The target parameter will be enabled in a future release and should not be used.
Default value: `absent`