|
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` |
29 | 30 |
|
30 | 31 | ### Resource types |
31 | 32 |
|
@@ -1181,6 +1182,156 @@ Specifies whether to check if the package release date is valid. Defaults to `Tr |
1181 | 1182 |
|
1182 | 1183 | Default value: `true` |
1183 | 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/linuxembl-ebi.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` |
| 1280 | + |
| 1281 | +Data type: `Optional[Array[String]]` |
| 1282 | + |
| 1283 | +A list of suites for the APT source ('jammy-updates', 'bookworm', 'stable', etc.). |
| 1284 | + |
| 1285 | +Default value: `undef` |
| 1286 | + |
| 1287 | +##### <a name="-apt--source_deb822--components"></a>`components` |
| 1288 | + |
| 1289 | +Data type: `Optional[Array[String]]` |
| 1290 | + |
| 1291 | +A list of components for the APT source ('main', 'contrib', 'non-free', etc.). |
| 1292 | + |
| 1293 | +Default value: `undef` |
| 1294 | + |
| 1295 | +##### <a name="-apt--source_deb822--architectures"></a>`architectures` |
| 1296 | + |
| 1297 | +Data type: `Optional[Array[String]]` |
| 1298 | + |
| 1299 | +A list of supported architectures for the APT source ('amd64', 'i386', etc.). |
| 1300 | + |
| 1301 | +Default value: `undef` |
| 1302 | + |
| 1303 | +##### <a name="-apt--source_deb822--allow_insecure"></a>`allow_insecure` |
| 1304 | + |
| 1305 | +Data type: `Optional[Boolean]` |
| 1306 | + |
| 1307 | +Specifies whether to allow downloads from insecure repositories. |
| 1308 | + |
| 1309 | +Default value: `undef` |
| 1310 | + |
| 1311 | +##### <a name="-apt--source_deb822--repo_trusted"></a>`repo_trusted` |
| 1312 | + |
| 1313 | +Data type: `Optional[Boolean]` |
| 1314 | + |
| 1315 | +Consider the APT source trusted, even if authentication checks fail. |
| 1316 | + |
| 1317 | +Default value: `undef` |
| 1318 | + |
| 1319 | +##### <a name="-apt--source_deb822--check_valid_until"></a>`check_valid_until` |
| 1320 | + |
| 1321 | +Data type: `Optional[Boolean]` |
| 1322 | + |
| 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. |
| 1332 | + |
| 1333 | +Default value: `undef` |
| 1334 | + |
1184 | 1335 | ## Data types |
1185 | 1336 |
|
1186 | 1337 | ### <a name="Apt--Auth_conf_entry"></a>`Apt::Auth_conf_entry` |
|
0 commit comments