projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port 6081 is redirected
[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
bac4511
..
bb5172e
100644
(file)
--- 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 {
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,
@@
-15,9
+11,6
@@
class hardware::raid::megaraid_sas {
target => '/opt/MegaRAID/MegaCli/MegaCli64',
}
} else {
target => '/opt/MegaRAID/MegaCli/MegaCli64',
}
} else {
- site::aptrepo { 'debian.restricted.megaraid_sas':
- ensure => absent,
- }
package { 'megacli':
ensure => purged,
}
package { 'megacli':
ensure => purged,
}
@@
-25,4
+18,7
@@
class hardware::raid::megaraid_sas {
ensure => 'absent',
}
}
ensure => 'absent',
}
}
+ site::aptrepo { 'debian.restricted.megaraid_sas':
+ ensure => absent,
+ }
}
}