X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Fraid%2Fmegaraid_sas.pp;h=f208682cc46b282098c8ccde904248341ffee0e9;hb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f;hp=e728e67e25aa05f4b5ccf290fcb38d5613b6c0b7;hpb=8b21724803cfc2b2a7b84c9273237ca6e1085b23;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/raid/megaraid_sas.pp b/modules/hardware/manifests/raid/megaraid_sas.pp index e728e67e2..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::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, } + + 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, } }