From: Peter Palfrader Date: Fri, 15 Mar 2013 20:27:10 +0000 (+0100) Subject: get rid of bacula pinning on wheezy X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=3f7c84aebbaece690f689bdcbcd5839acc2c050a;p=mirror%2Fdsa-puppet.git get rid of bacula pinning on wheezy --- 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':