forked from Puppet-Finland/puppet-hwraid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.pp
41 lines (38 loc) · 821 Bytes
/
init.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# == Class: hwraid
#
# This class sets up things that are needed to install hardware RAID tools. In
# practice it sets up apt repositories that contain hardware RAID tools for
# various RAID controllers.
#
# == Parameters
#
# [*manage*]
# Whether to manage hardware RAID repository setup using Puppet. Valid values are true
# (default) and false.
# [*ensure*]
# Status of hardware RAID tools. Valid values are 'present' (default) and
# 'absent'.
#
# == Authors
#
# Samuli Seppänen <[email protected]>
#
# == License
#
# BSD-license. See file LICENSE for details.
#
class hwraid
(
Boolean $manage = true,
$ensure = 'present'
) inherits hwraid::params
{
if $manage {
if $::osfamily == 'Debian' {
class { '::hwraid::aptrepo':
ensure => $ensure,
}
}
}
}