projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rsync::site: remove unused variables, define parameter types
[mirror/dsa-puppet.git]
/
modules
/
hardware
/
manifests
/
raid
/
megaraid_sas.pp
diff --git
a/modules/hardware/manifests/raid/megaraid_sas.pp
b/modules/hardware/manifests/raid/megaraid_sas.pp
index
e728e67
..
f208682
100644
(file)
--- 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 {
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,
}
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,
}
}
}
}