X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Finit.pp;h=5619032ffbe8ec64e82e8f452066188b5af4c1c3;hb=a2afb600d7d2187b16da01c98a50f00f06aea6a6;hp=c7c7a28a11492bc17f44b48af85c5c5d17099cdf;hpb=e572ec31842bfe8483588aa8e112f8cbbc06822d;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/init.pp b/modules/hardware/manifests/init.pp index c7c7a28a1..5619032ff 100644 --- a/modules/hardware/manifests/init.pp +++ b/modules/hardware/manifests/init.pp @@ -1,11 +1,23 @@ class hardware { include hardware::raid - case $::systemproductname { - "ProLiant BL495c G5": { - file { '/etc/apt/preferences.d/dsa-hp-tools': - content => "Package: hp-health\nPin: version 8.6*\nPin-Priority: 1100\n" - } + 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", "ProLiant DL380 G6", "ProLiant DL360 G6", "ProLiant BL495c 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 + + include hardware::fixes + + include hardware::intel }