13
13
14
14
#### Private Classes
15
15
16
- * ` apt::params ` : Provides defaults for the Apt module parameters.
17
16
* ` apt::update ` : Updates the list of available packages using apt-get update.
18
17
19
18
### Defined types
@@ -99,7 +98,7 @@ Data type: `String`
99
98
100
99
Specifies the provider that should be used by apt::update.
101
100
102
- Default value: ` $ apt::params::provider `
101
+ Default value: ` '/usr/bin/ apt-get' `
103
102
104
103
##### <a name =" -apt--keyserver " ></a >` keyserver `
105
104
@@ -108,31 +107,31 @@ Data type: `String`
108
107
Specifies a keyserver to provide the GPG key. Valid options: a string containing a domain name or a full URL (http://, https://, or
109
108
hkp://).
110
109
111
- Default value: ` $apt::params:: keyserver`
110
+ Default value: ` ' keyserver.ubuntu.com' `
112
111
113
112
##### <a name =" -apt--key_options " ></a >` key_options `
114
113
115
114
Data type: ` Optional[String] `
116
115
117
116
Specifies the default options for apt::key resources.
118
117
119
- Default value: ` $apt::params::key_options `
118
+ Default value: ` undef `
120
119
121
120
##### <a name =" -apt--ppa_options " ></a >` ppa_options `
122
121
123
122
Data type: ` Optional[Array[String]] `
124
123
125
124
Supplies options to be passed to the ` add-apt-repository ` command.
126
125
127
- Default value: ` $apt::params::ppa_options `
126
+ Default value: ` undef `
128
127
129
128
##### <a name =" -apt--ppa_package " ></a >` ppa_package `
130
129
131
130
Data type: ` Optional[String] `
132
131
133
132
Names the package that provides the ` apt-add-repository ` command.
134
133
135
- Default value: ` $apt::params::ppa_package `
134
+ Default value: ` undef `
136
135
137
136
##### <a name =" -apt--backports " ></a >` backports `
138
137
@@ -146,15 +145,15 @@ Options:
146
145
* ** : repos ** ` String ` : See apt::backports for documentation.
147
146
* ** : key ** ` String ` : See apt::backports for documentation.
148
147
149
- Default value: ` $apt::params::backports `
148
+ Default value: ` undef `
150
149
151
150
##### <a name =" -apt--confs " ></a >` confs `
152
151
153
152
Data type: ` Hash `
154
153
155
- Creates new ` apt::conf ` resources. Valid options: a hash to be passed to the create_resources function linked above .
154
+ Hash of ` apt::conf ` resources.
156
155
157
- Default value: ` $apt::params::confs `
156
+ Default value: ` {} `
158
157
159
158
##### <a name =" -apt--update " ></a >` update `
160
159
@@ -178,15 +177,24 @@ Default: 'reluctantly'.
178
177
* ** : timeout ** ` Integer ` : Specifies how long to wait for the update to complete before canceling it. Valid options: an integer, in seconds. Default: undef.
179
178
* ** : tries ** ` Integer ` : Specifies how many times to retry the update after receiving a DNS or HTTP error. Default: undef.
180
179
181
- Default value: ` $apt::params::update `
180
+ Default value: ` {} `
182
181
183
182
##### <a name =" -apt--update_defaults " ></a >` update_defaults `
184
183
185
184
Data type: ` Hash `
186
185
187
186
The default update settings that are combined and merged with the passed ` update ` value
188
187
189
- Default value: ` $apt::params::update_defaults `
188
+ Default value:
189
+
190
+ ``` puppet
191
+ {
192
+ 'frequency' => 'reluctantly',
193
+ 'loglevel' => undef,
194
+ 'timeout' => undef,
195
+ 'tries' => undef,
196
+ }
197
+ ```
190
198
191
199
##### <a name =" -apt--purge " ></a >` purge `
192
200
@@ -201,47 +209,68 @@ Options:
201
209
* ** : preferences ** ` Boolean ` : Specifies whether to purge any unmanaged entries from preferences. Default false.
202
210
* ** : preferences .d.** ` Boolean ` : Specifies whether to purge any unmanaged entries from preferences.d. Default false.
203
211
204
- Default value: ` $apt::params::purge `
212
+ Default value: ` {} `
205
213
206
214
##### <a name =" -apt--purge_defaults " ></a >` purge_defaults `
207
215
208
216
Data type: ` Hash `
209
217
210
218
The default purge settings that are combined and merged with the passed ` purge ` value
211
219
212
- Default value: ` $apt::params::purge_defaults `
220
+ Default value:
221
+
222
+ ``` puppet
223
+ {
224
+ 'sources.list' => false,
225
+ 'sources.list.d' => false,
226
+ 'preferences' => false,
227
+ 'preferences.d' => false,
228
+ 'apt.conf.d' => false,
229
+ }
230
+ ```
213
231
214
232
##### <a name =" -apt--proxy " ></a >` proxy `
215
233
216
234
Data type: ` Apt::Proxy `
217
235
218
236
Configures Apt to connect to a proxy server. Valid options: a hash matching the locally defined type apt::proxy.
219
237
220
- Default value: ` $apt::params::proxy `
238
+ Default value: ` {} `
221
239
222
240
##### <a name =" -apt--proxy_defaults " ></a >` proxy_defaults `
223
241
224
242
Data type: ` Hash `
225
243
226
244
The default proxy settings that are combined and merged with the passed ` proxy ` value
227
245
228
- Default value: ` $apt::params::proxy_defaults `
246
+ Default value:
247
+
248
+ ``` puppet
249
+ {
250
+ 'ensure' => undef,
251
+ 'host' => undef,
252
+ 'port' => 8080,
253
+ 'https' => false,
254
+ 'https_acng' => false,
255
+ 'direct' => false,
256
+ }
257
+ ```
229
258
230
259
##### <a name =" -apt--sources " ></a >` sources `
231
260
232
261
Data type: ` Hash `
233
262
234
- Creates new ` apt::source ` resources. Valid options: a hash to be passed to the create_resources function linked above .
263
+ Hash of ` apt::source ` resources.
235
264
236
- Default value: ` $apt::params::sources `
265
+ Default value: ` {} `
237
266
238
267
##### <a name =" -apt--keys " ></a >` keys `
239
268
240
269
Data type: ` Hash `
241
270
242
- Creates new ` apt::key ` resources. Valid options: a hash to be passed to the create_resources function linked above .
271
+ Hash of ` apt::key ` resources.
243
272
244
- Default value: ` $apt::params::keys `
273
+ Default value: ` {} `
245
274
246
275
##### <a name =" -apt--keyrings " ></a >` keyrings `
247
276
@@ -255,25 +284,25 @@ Default value: `{}`
255
284
256
285
Data type: ` Hash `
257
286
258
- Creates new ` apt::ppa ` resources. Valid options: a hash to be passed to the create_resources function linked above .
287
+ Hash of ` apt::ppa ` resources.
259
288
260
- Default value: ` $apt::params::ppas `
289
+ Default value: ` {} `
261
290
262
291
##### <a name =" -apt--pins " ></a >` pins `
263
292
264
293
Data type: ` Hash `
265
294
266
- Creates new ` apt::pin ` resources. Valid options: a hash to be passed to the create_resources function linked above .
295
+ Hash of ` apt::pin ` resources.
267
296
268
- Default value: ` $apt::params::pins `
297
+ Default value: ` {} `
269
298
270
299
##### <a name =" -apt--settings " ></a >` settings `
271
300
272
301
Data type: ` Hash `
273
302
274
- Creates new ` apt::setting ` resources. Valid options: a hash to be passed to the create_resources function linked above .
303
+ Hash of ` apt::setting ` resources.
275
304
276
- Default value: ` $apt::params::settings `
305
+ Default value: ` {} `
277
306
278
307
##### <a name =" -apt--manage_auth_conf " ></a >` manage_auth_conf `
279
308
@@ -282,7 +311,7 @@ Data type: `Boolean`
282
311
Specifies whether to manage the /etc/apt/auth.conf file. When true, the file will be overwritten with the entries specified in
283
312
the auth_conf_entries parameter. When false, the file will be ignored (note that this does not set the file to absent.
284
313
285
- Default value: ` $apt::params::manage_auth_conf `
314
+ Default value: ` true `
286
315
287
316
##### <a name =" -apt--auth_conf_entries " ></a >` auth_conf_entries `
288
317
@@ -293,95 +322,119 @@ format (similar to what curl uses) and contains the login configuration for APT
293
322
https://manpages.debian.org/testing/apt/apt_auth.conf.5.en.html for details. If specified each hash must contain the keys machine, login and
294
323
password and no others. Specifying manage_auth_conf and not specifying this parameter will set /etc/apt/auth.conf to absent.
295
324
296
- Default value: ` $apt::params::auth_conf_entries `
325
+ Default value: ` [] `
297
326
298
327
##### <a name =" -apt--auth_conf_owner " ></a >` auth_conf_owner `
299
328
300
329
Data type: ` String `
301
330
302
- The owner of the file /etc/apt/auth.conf. Default: ' _ apt' or 'root' on old releases.
331
+ The owner of the file /etc/apt/auth.conf.
303
332
304
- Default value: ` $apt::params::auth_conf_owner `
333
+ Default value: ` '_apt' `
305
334
306
335
##### <a name =" -apt--root " ></a >` root `
307
336
308
337
Data type: ` String `
309
338
310
339
Specifies root directory of Apt executable.
311
340
312
- Default value: ` $ apt::params::root `
341
+ Default value: ` '/etc/ apt' `
313
342
314
343
##### <a name =" -apt--sources_list " ></a >` sources_list `
315
344
316
345
Data type: ` String `
317
346
318
347
Specifies the path of the sources_list file to use.
319
348
320
- Default value: ` $apt::params::sources_list `
349
+ Default value: ` "${root}/sources.list" `
321
350
322
351
##### <a name =" -apt--sources_list_d " ></a >` sources_list_d `
323
352
324
353
Data type: ` String `
325
354
326
355
Specifies the path of the sources_list.d file to use.
327
356
328
- Default value: ` $apt::params::sources_list_d `
357
+ Default value: ` "${root}/sources.list.d" `
329
358
330
359
##### <a name =" -apt--conf_d " ></a >` conf_d `
331
360
332
361
Data type: ` String `
333
362
334
363
Specifies the path of the conf.d file to use.
335
364
336
- Default value: ` $ apt::params::conf_d `
365
+ Default value: ` "${root}/ apt.conf.d" `
337
366
338
367
##### <a name =" -apt--preferences " ></a >` preferences `
339
368
340
369
Data type: ` String `
341
370
342
371
Specifies the path of the preferences file to use.
343
372
344
- Default value: ` $apt::params:: preferences`
373
+ Default value: ` "${root}/ preferences" `
345
374
346
375
##### <a name =" -apt--preferences_d " ></a >` preferences_d `
347
376
348
377
Data type: ` String `
349
378
350
379
Specifies the path of the preferences.d file to use.
351
380
352
- Default value: ` $apt::params::preferences_d `
381
+ Default value: ` "${root}/preferences.d" `
353
382
354
383
##### <a name =" -apt--config_files " ></a >` config_files `
355
384
356
385
Data type: ` Hash `
357
386
358
387
A hash made up of the various configuration files used by Apt.
359
388
360
- Default value: ` $apt::params::config_files `
389
+ Default value:
390
+
391
+ ``` puppet
392
+ {
393
+ 'conf' => {
394
+ 'path' => $conf_d,
395
+ 'ext' => '',
396
+ },
397
+ 'pref' => {
398
+ 'path' => $preferences_d,
399
+ 'ext' => '.pref',
400
+ },
401
+ 'list' => {
402
+ 'path' => $sources_list_d,
403
+ 'ext' => '.list',
404
+ },
405
+ }
406
+ ```
361
407
362
408
##### <a name =" -apt--sources_list_force " ></a >` sources_list_force `
363
409
364
410
Data type: ` Boolean `
365
411
366
- Specifies whether to perform force purge or delete. Default false.
412
+ Specifies whether to perform force purge or delete.
367
413
368
- Default value: ` $apt::params::sources_list_force `
414
+ Default value: ` false `
369
415
370
416
##### <a name =" -apt--include_defaults " ></a >` include_defaults `
371
417
372
418
Data type: ` Hash `
373
419
420
+ The package types to include by default.
374
421
422
+ Default value:
375
423
376
- Default value: ` $apt::params::include_defaults `
424
+ ``` puppet
425
+ {
426
+ 'deb' => true,
427
+ 'src' => false,
428
+ }
429
+ ```
377
430
378
431
##### <a name =" -apt--apt_conf_d " ></a >` apt_conf_d `
379
432
380
433
Data type: ` String `
381
434
382
435
The path to the file ` apt.conf.d `
383
436
384
- Default value: ` $ apt::params::apt_conf_d `
437
+ Default value: ` "${root}/ apt.conf.d" `
385
438
386
439
##### <a name =" -apt--source_key_defaults " ></a >` source_key_defaults `
387
440
@@ -1074,7 +1127,7 @@ Default value: `$name`
1074
1127
1075
1128
Data type: ` String `
1076
1129
1077
- Specifies whether the Apt source file should exist. Valid options: 'present' and 'absent'.
1130
+ Specifies whether the Apt source file should exist.
1078
1131
1079
1132
Default value: ` present `
1080
1133
@@ -1102,8 +1155,8 @@ Configures include options. Valid options: a hash of available keys.
1102
1155
1103
1156
Options:
1104
1157
1105
- * ** : deb ** ` Boolean ` : Specifies whether to request the distribution's compiled binaries. Default true.
1106
- * ** : src ** ` Boolean ` : Specifies whether to request the distribution's uncompiled source code. Default false.
1158
+ * ** : deb ** ` Boolean ` : Specifies whether to request the distribution's compiled binaries.
1159
+ * ** : src ** ` Boolean ` : Specifies whether to request the distribution's uncompiled source code.
1107
1160
1108
1161
Default value: ` {} `
1109
1162
@@ -1177,7 +1230,7 @@ Default value: `true`
1177
1230
1178
1231
Data type: ` Boolean `
1179
1232
1180
- Specifies whether to check if the package release date is valid. Defaults to ` True ` .
1233
+ Specifies whether to check if the package release date is valid.
1181
1234
1182
1235
Default value: ` true `
1183
1236
0 commit comments