X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Fraid%2Fmegaraid_sas.pp;h=f208682cc46b282098c8ccde904248341ffee0e9;hb=a3f1849cf44a04b30bedc8952a8e6d160b513467;hp=bac45119f4634527a7fe37e1068630cf2fc22aeb;hpb=ff290998ae30a9763f2dc7056d68a6741541d487;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/raid/megaraid_sas.pp b/modules/hardware/manifests/raid/megaraid_sas.pp index bac45119f..f208682cc 100644 --- a/modules/hardware/manifests/raid/megaraid_sas.pp +++ b/modules/hardware/manifests/raid/megaraid_sas.pp @@ -1,10 +1,6 @@ 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, @@ -15,9 +11,6 @@ class hardware::raid::megaraid_sas { target => '/opt/MegaRAID/MegaCli/MegaCli64', } } else { - site::aptrepo { 'debian.restricted.megaraid_sas': - ensure => absent, - } package { 'megacli': ensure => purged, } @@ -25,4 +18,7 @@ class hardware::raid::megaraid_sas { ensure => 'absent', } } + base::aptrepo { 'debian.restricted.megaraid_sas': + ensure => absent, + } }