summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Filion <gabster@lelutin.ca>2017-07-02 01:58:34 -0400
committerGabriel Filion <gabster@lelutin.ca>2017-07-02 01:58:34 -0400
commit994934798031c0f91e8628edee7b848d0444c57e (patch)
tree039fbf1d904821be816b8565f3ecde89f7494795
parent14872fa632f4ae73b75464706e100967c9c9035f (diff)
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.
-rw-r--r--files/Debian/preferences_fallback (renamed from templates/Debian/fallback.erb)0
-rw-r--r--manifests/preferences.pp11
2 files changed, 11 insertions, 0 deletions
diff --git a/templates/Debian/fallback.erb b/files/Debian/preferences_fallback
index 1c75e83..1c75e83 100644
--- a/templates/Debian/fallback.erb
+++ b/files/Debian/preferences_fallback
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 {