From 994934798031c0f91e8628edee7b848d0444c57e Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Sun, 2 Jul 2017 01:58:34 -0400 Subject: Deploy forgotten fallback for debian to avoid upgrade mishaps During the change from the monolithic preferences file to the series of snippets in preferences.d, one part was left out possibly as an oversight, which prevents installing packages by mistake that belong to a release that hasn't been explicitely pinned. --- manifests/preferences.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manifests') diff --git a/manifests/preferences.pp b/manifests/preferences.pp index d2f6ab4..04a09b0 100644 --- a/manifests/preferences.pp +++ b/manifests/preferences.pp @@ -49,6 +49,17 @@ class apt::preferences { '/etc/apt/preferences.d/custom': ensure => absent; } + # This file ensures that all debian packages that don't have a + # preference file shouldn't be considered for auto-install or upgrade at + # all. + file { '/etc/apt/preferences.d/debian_fallback': + ensure => present, + source => 'puppet:///modules/apt/Debian/preferences_fallback', + owner => 'root', + group => 0, + mode => '0644', + require => File['/etc/apt/sources.list'], + } if $apt::use_volatile { -- cgit v1.2.3