X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Fraid%2Fmegaraid_sas.pp;h=f208682cc46b282098c8ccde904248341ffee0e9;hb=694793a4317a94b7dc1483f4a52d4b1868224ed6;hp=e28918cd106e6ecba45382ae1dd15806f2321339;hpb=1880a0ed4cd8dca05733a088b65cf98b0591527e;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/raid/megaraid_sas.pp b/modules/hardware/manifests/raid/megaraid_sas.pp index e28918cd1..f208682cc 100644 --- a/modules/hardware/manifests/raid/megaraid_sas.pp +++ b/modules/hardware/manifests/raid/megaraid_sas.pp @@ -1,13 +1,24 @@ -class hardware::raid::dell { - if $::megaraid_sas { - site::aptrepo { 'debian.restricted': - url => 'http://db.debian.org/debian-admin', - suite => 'stretch-restricted', - components => 'non-free', - } +class hardware::raid::megaraid_sas { + if ($::megaraid_sas and $::debarchitecture == "amd64") { + include debian_org::apt_restricted package { 'megacli': ensure => installed, } + + file { '/usr/local/sbin/megacli': + ensure => 'link', + target => '/opt/MegaRAID/MegaCli/MegaCli64', + } + } else { + package { 'megacli': + ensure => purged, + } + file { '/usr/local/sbin/megacli': + ensure => 'absent', + } + } + base::aptrepo { 'debian.restricted.megaraid_sas': + ensure => absent, } }