acb6c14b648e854e1de80349dd1583bfb25b07bc
[mirror/dsa-puppet.git] / modules / hardware / manifests / init.pp
1 class hardware {
2         include hardware::raid
3
4         if "$::systemproductname" in ["ProLiant DL385 G1", "ProLiant DL380 G4", "ProLiant DL360 G4"] {
5                 file { '/etc/apt/preferences.d/dsa-hp-tools':
6                         content => "Package: hp-health\nPin: version 8.6*\nPin-Priority: 1100\n"
7                 }
8         #} elsif "$::systemproductname" in ["ProLiant DL380 G5", "ProLiant DL360 G5", "ProLiant DL380 G6", "ProLiant DL360 G6", "ProLiant BL495c G5"] {
9         #       file { '/etc/apt/preferences.d/dsa-hp-tools':
10         #               content => "Package: hp-health\nPin: version 10.0.*\nPin-Priority: 1100\n"
11         #       }
12         } else {
13                 file { '/etc/apt/preferences.d/dsa-hp-tools':
14                         ensure => absent
15                 }
16         }
17
18         include hardware::sensors
19
20         include hardware::fixes
21 }