--- /dev/null
+class debian_org::apt_restricted {
+ site::aptrepo { 'db.debian.org.restricted':
+ url => 'http://db.debian.org/debian-admin',
+ suite => '${::lsbdistcodename}-restricted',
+ components => 'non-free',
+ }
+}
class hardware::raid {
include hardware::raid::proliant
- if $::productname == 'PowerEdge 1950' {
- include hardware::raid::dell
- }
+ include hardware::raid::dell
include hardware::raid::raidmpt
include hardware::raid::megaraid_sas
class hardware::raid::dell {
+ if "$::manufacturer" == "Dell Inc." {
+ include debian_org::apt_restricted
+
+ package { 'srvadmin-server-cli':
+ ensure => installed,
+ tag => extra_repo,
+ }
+ package { 'srvadmin-storage-cli':
+ ensure => installed,
+ tag => extra_repo,
+ }
+ package { 'srvadmin-omcommon':
+ ensure => installed,
+ tag => extra_repo,
+ }
+ package { 'libssl1.0.0':
+ ensure => installed,
+ tag => extra_repo,
+ }
+
+ }
site::aptrepo { 'jessie.dell':
- url => 'http://deb.debian.org/debian',
- suite => 'jessie',
- components => 'main',
+ ensure => absent,
}
site::aptrepo { 'debian.restricted.dell':
- url => 'http://db.debian.org/debian-admin',
- suite => 'jessie-restricted',
- components => 'non-free',
- }
-
- package { 'libssl1.0.0':
- ensure => installed,
- }
- package { 'srvadmin-storage-cli':
- ensure => installed,
- tag => extra_repo,
+ ensure => absent,
}
}
class hardware::raid::megaraid_sas {
if $::megaraid_sas {
- site::aptrepo { 'debian.restricted.megaraid_sas':
- url => 'http://db.debian.org/debian-admin',
- suite => 'stretch-restricted',
- components => 'non-free',
- }
+ include debian_org::apt_restricted
package { 'megacli':
ensure => installed,
target => '/opt/MegaRAID/MegaCli/MegaCli64',
}
} else {
- site::aptrepo { 'debian.restricted.megaraid_sas':
- ensure => absent,
- }
package { 'megacli':
ensure => purged,
}
ensure => 'absent',
}
}
+ site::aptrepo { 'debian.restricted.megaraid_sas':
+ ensure => absent,
+ }
}
class hardware::raid::proliant {
if $::smartarraycontroller_hpsa or $::smartarraycontroller_cciss {
site::aptrepo { 'debian.restricted':
- url => 'http://db.debian.org/debian-admin',
- suite => "${::lsbdistcodename}-restricted",
- components => 'non-free',
+ ensure => absent,
}
+ include debian_org::apt_restricted
package { 'hpacucli':
ensure => installed,