From 3f7c84aebbaece690f689bdcbcd5839acc2c050a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 15 Mar 2013 21:27:10 +0100 Subject: [PATCH] get rid of bacula pinning on wheezy --- modules/bacula/manifests/client.pp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index abd11b359..db93aa72c 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -36,11 +36,17 @@ class bacula::client inherits bacula { require => Package['bacula-fd'], notify => Service['bacula-fd'], } - file { '/etc/apt/preferences.d/dsa-bacula-client': - content => template('bacula/apt.preferences.bacula-client.erb'), - mode => '0444', - owner => root, - group => root, + if $::lsbmajdistrelease < 7 { + file { '/etc/apt/preferences.d/dsa-bacula-client': + content => template('bacula/apt.preferences.bacula-client.erb'), + mode => '0444', + owner => root, + group => root, + } + } else { + file { '/etc/apt/preferences.d/dsa-bacula-client': + ensure => absent + } } @ferm::rule { 'dsa-bacula-fd-v4': -- 2.20.1