From: Peter Palfrader Date: Wed, 7 Nov 2018 19:22:52 +0000 (+0100) Subject: and symlink X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=ff290998ae30a9763f2dc7056d68a6741541d487;p=mirror%2Fdsa-puppet.git and symlink --- diff --git a/modules/hardware/manifests/raid/megaraid_sas.pp b/modules/hardware/manifests/raid/megaraid_sas.pp index e728e67e2..bac45119f 100644 --- a/modules/hardware/manifests/raid/megaraid_sas.pp +++ b/modules/hardware/manifests/raid/megaraid_sas.pp @@ -9,5 +9,20 @@ class hardware::raid::megaraid_sas { package { 'megacli': ensure => installed, } + + file { '/usr/local/sbin/megacli': + ensure => 'link', + target => '/opt/MegaRAID/MegaCli/MegaCli64', + } + } else { + site::aptrepo { 'debian.restricted.megaraid_sas': + ensure => absent, + } + package { 'megacli': + ensure => purged, + } + file { '/usr/local/sbin/megacli': + ensure => 'absent', + } } }