Initial version of raid module

This commit is contained in:
Ossi Salmi 2013-07-11 17:40:43 +03:00
parent 027ecc1fce
commit 3f8205cce6
2 changed files with 33 additions and 0 deletions

33
raid/manifests/init.pp Normal file
View 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}")
}
}
}