Initial version of raid module
This commit is contained in:
parent
027ecc1fce
commit
3f8205cce6
2 changed files with 33 additions and 0 deletions
33
raid/manifests/init.pp
Normal file
33
raid/manifests/init.pp
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# Install tools for detected raid controllers.
|
||||||
|
#
|
||||||
|
class raid::tools {
|
||||||
|
|
||||||
|
if $::raid {
|
||||||
|
$controllers = split($::raid, ',')
|
||||||
|
|
||||||
|
if "smartarray" in $controllers {
|
||||||
|
include raid::tools::smartarray
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Install HP SmartArray tools.
|
||||||
|
#
|
||||||
|
class raid::tools::smartarray {
|
||||||
|
|
||||||
|
case $::operatingsystem {
|
||||||
|
"centos","redhat": {
|
||||||
|
include yum::repo::hpspp
|
||||||
|
package { "hpacucli":
|
||||||
|
ensure => installed,
|
||||||
|
require => Yum::Repo["hpspp"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
fail("raid::tools::smartarray not supported in ${::operatingsystem}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue