@@ -1093,10 +1093,9 @@ apt::source { 'puppetlabs':
1093
1093
``` puppet
1094
1094
apt::source { 'puppetlabs':
1095
1095
source_format => 'sources'
1096
- uris => ['http://apt.puppetlabs.com'],
1097
- suites => [$facts['os']['distro']['codename']],
1098
- components => ['puppet8'],
1099
- signed_by => '/etc/apt/keyrings/puppetlabs.gpg',
1096
+ location => ['http://apt.puppetlabs.com'],
1097
+ repos => ['puppet8'],
1098
+ keyring => '/etc/apt/keyrings/puppetlabs.gpg',
1100
1099
}
1101
1100
```
1102
1101
@@ -1107,23 +1106,17 @@ The following parameters are available in the `apt::source` defined type:
1107
1106
* [ ` source_format ` ] ( #-apt--source--source_format )
1108
1107
* [ ` location ` ] ( #-apt--source--location )
1109
1108
* [ ` types ` ] ( #-apt--source--types )
1110
- * [ ` uris ` ] ( #-apt--source--uris )
1111
1109
* [ ` enabled ` ] ( #-apt--source--enabled )
1112
1110
* [ ` comment ` ] ( #-apt--source--comment )
1113
1111
* [ ` ensure ` ] ( #-apt--source--ensure )
1114
1112
* [ ` release ` ] ( #-apt--source--release )
1115
- * [ ` suites ` ] ( #-apt--source--suites )
1116
1113
* [ ` repos ` ] ( #-apt--source--repos )
1117
- * [ ` components ` ] ( #-apt--source--components )
1118
1114
* [ ` include ` ] ( #-apt--source--include )
1119
1115
* [ ` key ` ] ( #-apt--source--key )
1120
1116
* [ ` keyring ` ] ( #-apt--source--keyring )
1121
- * [ ` signed_by ` ] ( #-apt--source--signed_by )
1122
1117
* [ ` pin ` ] ( #-apt--source--pin )
1123
1118
* [ ` architecture ` ] ( #-apt--source--architecture )
1124
- * [ ` architectures ` ] ( #-apt--source--architectures )
1125
1119
* [ ` allow_unsigned ` ] ( #-apt--source--allow_unsigned )
1126
- * [ ` repo_trusted ` ] ( #-apt--source--repo_trusted )
1127
1120
* [ ` allow_insecure ` ] ( #-apt--source--allow_insecure )
1128
1121
* [ ` notify_update ` ] ( #-apt--source--notify_update )
1129
1122
* [ ` check_valid_until ` ] ( #-apt--source--check_valid_until )
@@ -1138,9 +1131,10 @@ Default value: `'list'`
1138
1131
1139
1132
##### <a name =" -apt--source--location " ></a >` location `
1140
1133
1141
- Data type: ` Optional[String] `
1134
+ Data type: ` Optional[Variant[ String, Array[String]] ] `
1142
1135
1143
1136
Required, unless ensure is set to 'absent'. Specifies an Apt repository. Valid options: a string containing a repository URL.
1137
+ DEB822: Supports an array of URL values
1144
1138
1145
1139
Default value: ` undef `
1146
1140
@@ -1152,14 +1146,6 @@ DEB822: The package types this source manages.
1152
1146
1153
1147
Default value: ` ['deb'] `
1154
1148
1155
- ##### <a name =" -apt--source--uris " ></a >` uris `
1156
-
1157
- Data type: ` Optional[Array[String]] `
1158
-
1159
- DEB822: A list of URIs for the APT source.
1160
-
1161
- Default value: ` undef `
1162
-
1163
1149
##### <a name =" -apt--source--enabled " ></a >` enabled `
1164
1150
1165
1151
Data type: ` Boolean `
@@ -1186,36 +1172,22 @@ Default value: `present`
1186
1172
1187
1173
##### <a name =" -apt--source--release " ></a >` release `
1188
1174
1189
- Data type: ` Optional[String] `
1175
+ Data type: ` Optional[Variant[ String, Array[String]] ] `
1190
1176
1191
1177
Specifies a distribution of the Apt repository.
1192
-
1193
- Default value: ` undef `
1194
-
1195
- ##### <a name =" -apt--source--suites " ></a >` suites `
1196
-
1197
- Data type: ` Optional[Array[String]] `
1198
-
1199
- DEB822: A list of suites for the APT source ('jammy-updates', 'bookworm', 'stable', etc.).
1178
+ DEB822: Supports an array of values
1200
1179
1201
1180
Default value: ` undef `
1202
1181
1203
1182
##### <a name =" -apt--source--repos " ></a >` repos `
1204
1183
1205
- Data type: ` String `
1184
+ Data type: ` Variant[ String, Array[String]] `
1206
1185
1207
1186
Specifies a component of the Apt repository.
1187
+ DEB822: Supports an array of values
1208
1188
1209
1189
Default value: ` 'main' `
1210
1190
1211
- ##### <a name =" -apt--source--components " ></a >` components `
1212
-
1213
- Data type: ` Optional[Array[String]] `
1214
-
1215
- DEB822: A list of components for the APT source ('main', 'contrib', 'non-free', etc.).
1216
-
1217
- Default value: ` undef `
1218
-
1219
1191
##### <a name =" -apt--source--include " ></a >` include `
1220
1192
1221
1193
Data type: ` Variant[Hash] `
@@ -1252,14 +1224,6 @@ See https://wiki.debian.org/DebianRepository/UseThirdParty for details.
1252
1224
1253
1225
Default value: ` undef `
1254
1226
1255
- ##### <a name =" -apt--source--signed_by " ></a >` signed_by `
1256
-
1257
- Data type: ` Optional[Variant[Stdlib::AbsolutePath,Array[String]]] `
1258
-
1259
- DEB822: Either an absolute path to a PGP keyring file used to sign this repository OR a list of key fingerprints to trust.
1260
-
1261
- Default value: ` undef `
1262
-
1263
1227
##### <a name =" -apt--source--pin " ></a >` pin `
1264
1228
1265
1229
Data type: ` Optional[Variant[Hash, Numeric, String]] `
@@ -1271,19 +1235,12 @@ Default value: `undef`
1271
1235
1272
1236
##### <a name =" -apt--source--architecture " ></a >` architecture `
1273
1237
1274
- Data type: ` Optional[String] `
1238
+ Data type: ` Optional[Variant[ String, Array[String]] ] `
1275
1239
1276
1240
Tells Apt to only download information for specified architectures. Valid options: a string containing one or more architecture names,
1277
1241
separated by commas (e.g., 'i386' or 'i386,alpha,powerpc').
1278
1242
(if unspecified, Apt downloads information for all architectures defined in the Apt::Architectures option)
1279
-
1280
- Default value: ` undef `
1281
-
1282
- ##### <a name =" -apt--source--architectures " ></a >` architectures `
1283
-
1284
- Data type: ` Optional[Array[String]] `
1285
-
1286
- DEB822: A list of supported architectures for the APT source ('amd64', 'i386', etc.).
1243
+ DEB822: Supports an array of values
1287
1244
1288
1245
Default value: ` undef `
1289
1246
@@ -1295,14 +1252,6 @@ Specifies whether to authenticate packages from this release, even if the Releas
1295
1252
1296
1253
Default value: ` undef `
1297
1254
1298
- ##### <a name =" -apt--source--repo_trusted " ></a >` repo_trusted `
1299
-
1300
- Data type: ` Optional[Boolean] `
1301
-
1302
- DEB822: Consider the APT source trusted, even if authentication checks fail.
1303
-
1304
- Default value: ` undef `
1305
-
1306
1255
##### <a name =" -apt--source--allow_insecure " ></a >` allow_insecure `
1307
1256
1308
1257
Data type: ` Optional[Boolean] `
0 commit comments