summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {