From: Julien Cristau Date: Wed, 27 Jul 2016 11:07:08 +0000 (+0200) Subject: Pin older hp-health on DL3*0 G5 X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=6b9e31db704fa673f4935c756a754a0e4cd4f10d;p=mirror%2Fdsa-puppet.git Pin older hp-health on DL3*0 G5 Latest hp-health doesn't seem to work on those boxes. Signed-off-by: Julien Cristau --- diff --git a/modules/hardware/manifests/init.pp b/modules/hardware/manifests/init.pp index 7e474c1e9..e1cf5fce0 100644 --- a/modules/hardware/manifests/init.pp +++ b/modules/hardware/manifests/init.pp @@ -5,6 +5,10 @@ class hardware { file { '/etc/apt/preferences.d/dsa-hp-tools': content => "Package: hp-health\nPin: version 8.6*\nPin-Priority: 1100\n" } + } elsif "$::systemproductname" in ["ProLiant DL380 G5", "ProLiant DL360 G5"] { + file { '/etc/apt/preferences.d/dsa-hp-tools': + content => "Package: hp-health\nPin: version 10.0.*\nPin-Priority: 1100\n" + } } else { file { '/etc/apt/preferences.d/dsa-hp-tools': ensure => absent