26
26
* [ ` apt::ppa ` ] ( #apt--ppa ) : Manages PPA repositories using ` add-apt-repository ` . Not supported on Debian.
27
27
* [ ` apt::setting ` ] ( #apt--setting ) : Manages Apt configuration files.
28
28
* [ ` apt::source ` ] ( #apt--source ) : Manages the Apt sources in /etc/apt/sources.list.d/.
29
- * [ ` apt::source_deb822 ` ] ( #apt--source_deb822 ) : Manage deb822 formatted APT sources under ` /etc/apt/sources.list.d `
30
29
31
30
### Resource types
32
31
@@ -1036,25 +1035,54 @@ apt::source { 'puppetlabs':
1036
1035
}
1037
1036
```
1038
1037
1038
+ ##### Install the puppetlabs apt source (deb822 format)
1039
+
1040
+ ``` puppet
1041
+ apt::source { 'puppetlabs':
1042
+ source_format => 'deb822'
1043
+ uris => ['http://apt.puppetlabs.com'],
1044
+ suites => [$facts['os']['distro']['codename']],
1045
+ components => ['puppet8'],
1046
+ signed_by => '/etc/apt/keyrings/puppetlabs.gpg',
1047
+ }
1048
+ ```
1049
+
1039
1050
#### Parameters
1040
1051
1041
1052
The following parameters are available in the ` apt::source ` defined type:
1042
1053
1054
+ * [ ` source_format ` ] ( #-apt--source--source_format )
1043
1055
* [ ` location ` ] ( #-apt--source--location )
1056
+ * [ ` types ` ] ( #-apt--source--types )
1057
+ * [ ` uris ` ] ( #-apt--source--uris )
1058
+ * [ ` enabled ` ] ( #-apt--source--enabled )
1044
1059
* [ ` comment ` ] ( #-apt--source--comment )
1045
1060
* [ ` ensure ` ] ( #-apt--source--ensure )
1046
1061
* [ ` release ` ] ( #-apt--source--release )
1062
+ * [ ` suites ` ] ( #-apt--source--suites )
1047
1063
* [ ` repos ` ] ( #-apt--source--repos )
1064
+ * [ ` components ` ] ( #-apt--source--components )
1048
1065
* [ ` include ` ] ( #-apt--source--include )
1049
1066
* [ ` key ` ] ( #-apt--source--key )
1050
1067
* [ ` keyring ` ] ( #-apt--source--keyring )
1068
+ * [ ` signed_by ` ] ( #-apt--source--signed_by )
1051
1069
* [ ` pin ` ] ( #-apt--source--pin )
1052
1070
* [ ` architecture ` ] ( #-apt--source--architecture )
1071
+ * [ ` architectures ` ] ( #-apt--source--architectures )
1053
1072
* [ ` allow_unsigned ` ] ( #-apt--source--allow_unsigned )
1073
+ * [ ` repo_trusted ` ] ( #-apt--source--repo_trusted )
1054
1074
* [ ` allow_insecure ` ] ( #-apt--source--allow_insecure )
1055
1075
* [ ` notify_update ` ] ( #-apt--source--notify_update )
1056
1076
* [ ` check_valid_until ` ] ( #-apt--source--check_valid_until )
1057
1077
1078
+ ##### <a name =" -apt--source--source_format " ></a >` source_format `
1079
+
1080
+ Data type: ` Enum['legacy', 'deb822'] `
1081
+
1082
+ The file format to use for the apt source. See https://wiki.debian.org/SourcesList
1083
+
1084
+ Default value: ` 'legacy' `
1085
+
1058
1086
##### <a name =" -apt--source--location " ></a >` location `
1059
1087
1060
1088
Data type: ` Optional[String] `
@@ -1063,6 +1091,30 @@ Required, unless ensure is set to 'absent'. Specifies an Apt repository. Valid o
1063
1091
1064
1092
Default value: ` undef `
1065
1093
1094
+ ##### <a name =" -apt--source--types " ></a >` types `
1095
+
1096
+ Data type: ` Array[Enum['deb','deb-src'], 1, 2] `
1097
+
1098
+ DEB822: The package types this source manages.
1099
+
1100
+ Default value: ` ['deb'] `
1101
+
1102
+ ##### <a name =" -apt--source--uris " ></a >` uris `
1103
+
1104
+ Data type: ` Optional[Array[String]] `
1105
+
1106
+ DEB822: A list of URIs for the APT source.
1107
+
1108
+ Default value: ` undef `
1109
+
1110
+ ##### <a name =" -apt--source--enabled " ></a >` enabled `
1111
+
1112
+ Data type: ` Boolean `
1113
+
1114
+ DEB822: Enable or Disable the APT source.
1115
+
1116
+ Default value: ` true `
1117
+
1066
1118
##### <a name =" -apt--source--comment " ></a >` comment `
1067
1119
1068
1120
Data type: ` String `
@@ -1087,6 +1139,14 @@ Specifies a distribution of the Apt repository.
1087
1139
1088
1140
Default value: ` undef `
1089
1141
1142
+ ##### <a name =" -apt--source--suites " ></a >` suites `
1143
+
1144
+ Data type: ` Optional[Array[String]] `
1145
+
1146
+ DEB822: A list of suites for the APT source ('jammy-updates', 'bookworm', 'stable', etc.).
1147
+
1148
+ Default value: ` undef `
1149
+
1090
1150
##### <a name =" -apt--source--repos " ></a >` repos `
1091
1151
1092
1152
Data type: ` String `
@@ -1095,6 +1155,14 @@ Specifies a component of the Apt repository.
1095
1155
1096
1156
Default value: ` 'main' `
1097
1157
1158
+ ##### <a name =" -apt--source--components " ></a >` components `
1159
+
1160
+ Data type: ` Optional[Array[String]] `
1161
+
1162
+ DEB822: A list of components for the APT source ('main', 'contrib', 'non-free', etc.).
1163
+
1164
+ Default value: ` undef `
1165
+
1098
1166
##### <a name =" -apt--source--include " ></a >` include `
1099
1167
1100
1168
Data type: ` Variant[Hash] `
@@ -1131,6 +1199,14 @@ See https://wiki.debian.org/DebianRepository/UseThirdParty for details.
1131
1199
1132
1200
Default value: ` undef `
1133
1201
1202
+ ##### <a name =" -apt--source--signed_by " ></a >` signed_by `
1203
+
1204
+ Data type: ` Optional[Variant[Stdlib::AbsolutePath,Array[String]]] `
1205
+
1206
+ DEB822: Either an absolute path to a PGP keyring file used to sign this repository OR a list of key fingerprints to trust.
1207
+
1208
+ Default value: ` undef `
1209
+
1134
1210
##### <a name =" -apt--source--pin " ></a >` pin `
1135
1211
1136
1212
Data type: ` Optional[Variant[Hash, Numeric, String]] `
@@ -1150,185 +1226,51 @@ separated by commas (e.g., 'i386' or 'i386,alpha,powerpc').
1150
1226
1151
1227
Default value: ` undef `
1152
1228
1153
- ##### <a name =" -apt--source--allow_unsigned " ></a >` allow_unsigned `
1154
-
1155
- Data type: ` Boolean `
1156
-
1157
- Specifies whether to authenticate packages from this release, even if the Release file is not signed or the signature can't be checked.
1158
-
1159
- Default value: ` false `
1160
-
1161
- ##### <a name =" -apt--source--allow_insecure " ></a >` allow_insecure `
1162
-
1163
- Data type: ` Boolean `
1164
-
1165
- Specifies whether to allow downloads from insecure repositories.
1166
-
1167
- Default value: ` false `
1168
-
1169
- ##### <a name =" -apt--source--notify_update " ></a >` notify_update `
1170
-
1171
- Data type: ` Boolean `
1172
-
1173
- Specifies whether to trigger an ` apt-get update ` run.
1174
-
1175
- Default value: ` true `
1176
-
1177
- ##### <a name =" -apt--source--check_valid_until " ></a >` check_valid_until `
1178
-
1179
- Data type: ` Boolean `
1180
-
1181
- Specifies whether to check if the package release date is valid. Defaults to ` True ` .
1182
-
1183
- Default value: ` true `
1184
-
1185
- ### <a name =" apt--source_deb822 " ></a >` apt::source_deb822 `
1186
-
1187
- Manage deb822 formatted APT sources under ` /etc/apt/sources.list.d `
1188
-
1189
- #### Examples
1190
-
1191
- ##### Manage the Puppetlabs repo
1192
-
1193
- ``` puppet
1194
- apt::source_deb822 { 'Puppetlabs-puppet':
1195
- comment => 'Manage the puppetlabs repo',
1196
- enabled => true,
1197
- types => ['deb'],
1198
- uris => ['http://apt.puppet.com'],
1199
- suites => ['jammy'],
1200
- components => ['puppet8'],
1201
- signed_by => ['/etc/apt/keyrings/puppetlabs.gpg'],
1202
- }
1203
- ```
1204
-
1205
- ##### Ensure absence of a repo
1206
-
1207
- ``` puppet
1208
- apt::source_deb822 { 'testing123':
1209
- ensure => 'absent',
1210
- }
1211
- ```
1212
-
1213
- #### Parameters
1214
-
1215
- The following parameters are available in the ` apt::source_deb822 ` defined type:
1216
-
1217
- * [ ` notify_update ` ] ( #-apt--source_deb822--notify_update )
1218
- * [ ` ensure ` ] ( #-apt--source_deb822--ensure )
1219
- * [ ` enabled ` ] ( #-apt--source_deb822--enabled )
1220
- * [ ` comment ` ] ( #-apt--source_deb822--comment )
1221
- * [ ` types ` ] ( #-apt--source_deb822--types )
1222
- * [ ` uris ` ] ( #-apt--source_deb822--uris )
1223
- * [ ` suites ` ] ( #-apt--source_deb822--suites )
1224
- * [ ` components ` ] ( #-apt--source_deb822--components )
1225
- * [ ` architectures ` ] ( #-apt--source_deb822--architectures )
1226
- * [ ` allow_insecure ` ] ( #-apt--source_deb822--allow_insecure )
1227
- * [ ` repo_trusted ` ] ( #-apt--source_deb822--repo_trusted )
1228
- * [ ` check_valid_until ` ] ( #-apt--source_deb822--check_valid_until )
1229
- * [ ` signed_by ` ] ( #-apt--source_deb822--signed_by )
1230
-
1231
- ##### <a name =" -apt--source_deb822--notify_update " ></a >` notify_update `
1232
-
1233
- Data type: ` Boolean `
1234
-
1235
- Specifies whether to trigger an ` apt-get update ` run.
1236
-
1237
- Default value: ` true `
1238
-
1239
- ##### <a name =" -apt--source_deb822--ensure " ></a >` ensure `
1240
-
1241
- Data type: ` Enum['present','absent'] `
1242
-
1243
- Specifies whether the Apt source file should exist.
1244
-
1245
- Default value: ` 'present' `
1246
-
1247
- ##### <a name =" -apt--source_deb822--enabled " ></a >` enabled `
1248
-
1249
- Data type: ` Boolean `
1250
-
1251
- Enable or Disable the APT source.
1252
-
1253
- Default value: ` true `
1254
-
1255
- ##### <a name =" -apt--source_deb822--comment " ></a >` comment `
1256
-
1257
- Data type: ` String `
1258
-
1259
- Provide a comment to the APT source file.
1260
-
1261
- Default value: ` $name `
1262
-
1263
- ##### <a name =" -apt--source_deb822--types " ></a >` types `
1264
-
1265
- Data type: ` Array[Enum['deb','deb-src'], 1, 2] `
1266
-
1267
- The package types this source manages.
1268
-
1269
- Default value: ` ['deb'] `
1270
-
1271
- ##### <a name =" -apt--source_deb822--uris " ></a >` uris `
1272
-
1273
- Data type: ` Optional[Array[String]] `
1274
-
1275
- A list of URIs for the APT source.
1276
-
1277
- Default value: ` undef `
1278
-
1279
- ##### <a name =" -apt--source_deb822--suites " ></a >` suites `
1229
+ ##### <a name =" -apt--source--architectures " ></a >` architectures `
1280
1230
1281
1231
Data type: ` Optional[Array[String]] `
1282
1232
1283
- A list of suites for the APT source ('jammy-updates ', 'bookworm', 'stable ', etc.).
1233
+ DEB822: A list of supported architectures for the APT source ('amd64 ', 'i386 ', etc.).
1284
1234
1285
1235
Default value: ` undef `
1286
1236
1287
- ##### <a name =" -apt--source_deb822--components " ></a >` components `
1237
+ ##### <a name =" -apt--source--allow_unsigned " ></a >` allow_unsigned `
1288
1238
1289
- Data type: ` Optional[Array[String] ] `
1239
+ Data type: ` Optional[Boolean ] `
1290
1240
1291
- A list of components for the APT source ('main', 'contrib', 'non-free', etc.) .
1241
+ Specifies whether to authenticate packages from this release, even if the Release file is not signed or the signature can't be checked .
1292
1242
1293
1243
Default value: ` undef `
1294
1244
1295
- ##### <a name =" -apt--source_deb822--architectures " ></a >` architectures `
1245
+ ##### <a name =" -apt--source--repo_trusted " ></a >` repo_trusted `
1296
1246
1297
- Data type: ` Optional[Array[String] ] `
1247
+ Data type: ` Optional[Boolean ] `
1298
1248
1299
- A list of supported architectures for the APT source ('amd64', 'i386', etc.) .
1249
+ DEB822: Consider the APT source trusted, even if authentication checks fail .
1300
1250
1301
1251
Default value: ` undef `
1302
1252
1303
- ##### <a name =" -apt--source_deb822 --allow_insecure " ></a >` allow_insecure `
1253
+ ##### <a name =" -apt--source --allow_insecure " ></a >` allow_insecure `
1304
1254
1305
1255
Data type: ` Optional[Boolean] `
1306
1256
1307
1257
Specifies whether to allow downloads from insecure repositories.
1308
1258
1309
1259
Default value: ` undef `
1310
1260
1311
- ##### <a name =" -apt--source_deb822--repo_trusted " ></a >` repo_trusted `
1261
+ ##### <a name =" -apt--source--notify_update " ></a >` notify_update `
1312
1262
1313
- Data type: ` Optional[ Boolean] `
1263
+ Data type: ` Boolean `
1314
1264
1315
- Consider the APT source trusted, even if authentication checks fail .
1265
+ Specifies whether to trigger an ` apt-get update ` run .
1316
1266
1317
- Default value: ` undef `
1267
+ Default value: ` true `
1318
1268
1319
- ##### <a name =" -apt--source_deb822 --check_valid_until " ></a >` check_valid_until `
1269
+ ##### <a name =" -apt--source --check_valid_until " ></a >` check_valid_until `
1320
1270
1321
1271
Data type: ` Optional[Boolean] `
1322
1272
1323
- Specifies whether to check if the package release date is valid.
1324
-
1325
- Default value: ` undef `
1326
-
1327
- ##### <a name =" -apt--source_deb822--signed_by " ></a >` signed_by `
1328
-
1329
- Data type: ` Optional[Variant[Array[Stdlib::AbsolutePath],String]] `
1330
-
1331
- Absolute path to a file containing the PGP keyring used to sign this repository.
1273
+ Specifies whether to check if the package release date is valid. Defaults to ` True ` .
1332
1274
1333
1275
Default value: ` undef `
1334
1276
0 commit comments