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',
- }
+ if ($::megaraid_sas and $::debarchitecture == "amd64") {
+ 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',
}
}
+ base::aptrepo { 'debian.restricted.megaraid_sas':
+ ensure => absent,
+ }
}