|
25 | 25 | * [`apt::ppa`](#apt--ppa): Manages PPA repositories using `add-apt-repository`. Not supported on Debian. |
26 | 26 | * [`apt::setting`](#apt--setting): Manages Apt configuration files. |
27 | 27 | * [`apt::source`](#apt--source): Manages the Apt sources in /etc/apt/sources.list.d/. |
| 28 | +* [`apt::source_deb822`](#apt--source_deb822): Manage deb822 formatted APT sources under `/etc/apt/sources.list.d` |
28 | 29 |
|
29 | 30 | ### Resource types |
30 | 31 |
|
@@ -1234,6 +1235,156 @@ Specifies whether to check if the package release date is valid. |
1234 | 1235 |
|
1235 | 1236 | Default value: `true` |
1236 | 1237 |
|
| 1238 | +### <a name="apt--source_deb822"></a>`apt::source_deb822` |
| 1239 | + |
| 1240 | +Manage deb822 formatted APT sources under `/etc/apt/sources.list.d` |
| 1241 | + |
| 1242 | +#### Examples |
| 1243 | + |
| 1244 | +##### Manage the Puppetlabs repo |
| 1245 | + |
| 1246 | +```puppet |
| 1247 | +apt::source_deb822 { 'Puppetlabs-puppet': |
| 1248 | + comment => 'Manage the puppetlabs repo', |
| 1249 | + enabled => true, |
| 1250 | + types => ['deb'], |
| 1251 | + uris => ['http://apt.puppet.com'], |
| 1252 | + suites => ['jammy'], |
| 1253 | + components => ['puppet8'], |
| 1254 | + signed_by => ['/etc/apt/keyrings/linuxembl-ebi.gpg'], |
| 1255 | +} |
| 1256 | +``` |
| 1257 | + |
| 1258 | +##### Ensure absence of a repo |
| 1259 | + |
| 1260 | +```puppet |
| 1261 | +apt::source_deb822 { 'testing123': |
| 1262 | + ensure => 'absent', |
| 1263 | +} |
| 1264 | +``` |
| 1265 | + |
| 1266 | +#### Parameters |
| 1267 | + |
| 1268 | +The following parameters are available in the `apt::source_deb822` defined type: |
| 1269 | + |
| 1270 | +* [`notify_update`](#-apt--source_deb822--notify_update) |
| 1271 | +* [`ensure`](#-apt--source_deb822--ensure) |
| 1272 | +* [`enabled`](#-apt--source_deb822--enabled) |
| 1273 | +* [`comment`](#-apt--source_deb822--comment) |
| 1274 | +* [`types`](#-apt--source_deb822--types) |
| 1275 | +* [`uris`](#-apt--source_deb822--uris) |
| 1276 | +* [`suites`](#-apt--source_deb822--suites) |
| 1277 | +* [`components`](#-apt--source_deb822--components) |
| 1278 | +* [`architectures`](#-apt--source_deb822--architectures) |
| 1279 | +* [`allow_insecure`](#-apt--source_deb822--allow_insecure) |
| 1280 | +* [`repo_trusted`](#-apt--source_deb822--repo_trusted) |
| 1281 | +* [`check_valid_until`](#-apt--source_deb822--check_valid_until) |
| 1282 | +* [`signed_by`](#-apt--source_deb822--signed_by) |
| 1283 | + |
| 1284 | +##### <a name="-apt--source_deb822--notify_update"></a>`notify_update` |
| 1285 | + |
| 1286 | +Data type: `Boolean` |
| 1287 | + |
| 1288 | +Specifies whether to trigger an `apt-get update` run. |
| 1289 | + |
| 1290 | +Default value: `true` |
| 1291 | + |
| 1292 | +##### <a name="-apt--source_deb822--ensure"></a>`ensure` |
| 1293 | + |
| 1294 | +Data type: `Enum['present','absent']` |
| 1295 | + |
| 1296 | +Specifies whether the Apt source file should exist. |
| 1297 | + |
| 1298 | +Default value: `'present'` |
| 1299 | + |
| 1300 | +##### <a name="-apt--source_deb822--enabled"></a>`enabled` |
| 1301 | + |
| 1302 | +Data type: `Boolean` |
| 1303 | + |
| 1304 | +Enable or Disable the APT source. |
| 1305 | + |
| 1306 | +Default value: `true` |
| 1307 | + |
| 1308 | +##### <a name="-apt--source_deb822--comment"></a>`comment` |
| 1309 | + |
| 1310 | +Data type: `String` |
| 1311 | + |
| 1312 | +Provide a comment to the APT source file. |
| 1313 | + |
| 1314 | +Default value: `$name` |
| 1315 | + |
| 1316 | +##### <a name="-apt--source_deb822--types"></a>`types` |
| 1317 | + |
| 1318 | +Data type: `Array[Enum['deb','deb-src'], 1, 2]` |
| 1319 | + |
| 1320 | +The package types this source manages. |
| 1321 | + |
| 1322 | +Default value: `['deb']` |
| 1323 | + |
| 1324 | +##### <a name="-apt--source_deb822--uris"></a>`uris` |
| 1325 | + |
| 1326 | +Data type: `Optional[Array[String]]` |
| 1327 | + |
| 1328 | +A list of URIs for the APT source. |
| 1329 | + |
| 1330 | +Default value: `undef` |
| 1331 | + |
| 1332 | +##### <a name="-apt--source_deb822--suites"></a>`suites` |
| 1333 | + |
| 1334 | +Data type: `Optional[Array[String]]` |
| 1335 | + |
| 1336 | +A list of suites for the APT source ('jammy-updates', 'bookworm', 'stable', etc.). |
| 1337 | + |
| 1338 | +Default value: `undef` |
| 1339 | + |
| 1340 | +##### <a name="-apt--source_deb822--components"></a>`components` |
| 1341 | + |
| 1342 | +Data type: `Optional[Array[String]]` |
| 1343 | + |
| 1344 | +A list of components for the APT source ('main', 'contrib', 'non-free', etc.). |
| 1345 | + |
| 1346 | +Default value: `undef` |
| 1347 | + |
| 1348 | +##### <a name="-apt--source_deb822--architectures"></a>`architectures` |
| 1349 | + |
| 1350 | +Data type: `Optional[Array[String]]` |
| 1351 | + |
| 1352 | +A list of supported architectures for the APT source ('amd64', 'i386', etc.). |
| 1353 | + |
| 1354 | +Default value: `undef` |
| 1355 | + |
| 1356 | +##### <a name="-apt--source_deb822--allow_insecure"></a>`allow_insecure` |
| 1357 | + |
| 1358 | +Data type: `Optional[Boolean]` |
| 1359 | + |
| 1360 | +Specifies whether to allow downloads from insecure repositories. |
| 1361 | + |
| 1362 | +Default value: `undef` |
| 1363 | + |
| 1364 | +##### <a name="-apt--source_deb822--repo_trusted"></a>`repo_trusted` |
| 1365 | + |
| 1366 | +Data type: `Optional[Boolean]` |
| 1367 | + |
| 1368 | +Consider the APT source trusted, even if authentication checks fail. |
| 1369 | + |
| 1370 | +Default value: `undef` |
| 1371 | + |
| 1372 | +##### <a name="-apt--source_deb822--check_valid_until"></a>`check_valid_until` |
| 1373 | + |
| 1374 | +Data type: `Optional[Boolean]` |
| 1375 | + |
| 1376 | +Specifies whether to check if the package release date is valid. |
| 1377 | + |
| 1378 | +Default value: `undef` |
| 1379 | + |
| 1380 | +##### <a name="-apt--source_deb822--signed_by"></a>`signed_by` |
| 1381 | + |
| 1382 | +Data type: `Optional[Variant[Array[Stdlib::AbsolutePath],String]]` |
| 1383 | + |
| 1384 | +Absolute path to a file containing the PGP keyring used to sign this repository. |
| 1385 | + |
| 1386 | +Default value: `undef` |
| 1387 | + |
1237 | 1388 | ## Data types |
1238 | 1389 |
|
1239 | 1390 | ### <a name="Apt--Auth_conf_entry"></a>`Apt::Auth_conf_entry` |
|
0 commit comments