From 7d4d086c6f272aa5f0d3823a7266632c8d3debb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Charaoui?= Date: Tue, 19 Jun 2018 12:02:44 -0400 Subject: Improve backports example --- UPGRADING.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 1a89e30..a8f094e 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -50,11 +50,6 @@ By default, the puppetlabs module won't create any sources. To replicate the sha repos => 'main contrib non-free', release => "${lsbdistcodename}/updates"; - "${::lsbdistcodename}-backports": - location => 'http://deb.debian.org/debian', - repos => 'main contrib non-free', - release => "${lsbdistcodename}-backports"; - 'testing': location => 'http://deb.debian.org/debian', repos => 'main contrib non-free', @@ -63,8 +58,6 @@ By default, the puppetlabs module won't create any sources. To replicate the sha apt::pin { "${::lsbdistcodename}": priority => 990; - "${::lsbdistcodename}-backports": - priority => 200; 'testing': priority => 2; } @@ -72,6 +65,15 @@ By default, the puppetlabs module won't create any sources. To replicate the sha Sadly I can't find a way to iter the next codename from the facts :(. You can either use testing instead of "the next release" or specify it manually. +## backports + +The module provides a class specifically for deploying the backports repository and pin. + + class { 'apt::backports': + pin => 200, + location => 'http://deb.debian.org/debian', + } + # Classes comparison ## apticron -- cgit v1.2.3