X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Finit.pp;h=e1cf5fce097f661ed3f39a9d093f844047067a8b;hb=6b9e31db704fa673f4935c756a754a0e4cd4f10d;hp=e87de20581c0133f1482beab610694b1cf2c4b22;hpb=715fc376f9772fc3477ef6caae561b168a1f69b9;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/init.pp b/modules/hardware/manifests/init.pp index e87de2058..e1cf5fce0 100644 --- a/modules/hardware/manifests/init.pp +++ b/modules/hardware/manifests/init.pp @@ -1,14 +1,19 @@ class hardware { - if $::smartarraycontroller { - include debian-org::proliant - } - - if $::productname == 'PowerEdge 2850' { - include megactl - } + include hardware::raid - if $::mptraid { - include raidmpt + if "$::systemproductname" in ["ProLiant DL385 G1", "ProLiant DL380 G4", "ProLiant DL360 G4"] { + 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 + } } + include hardware::sensors }