puppet/raid/manifests/init.pp
2013-07-11 17:40:43 +03:00

33 lines
663 B
Puppet

# 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}")
}
}
}