2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'manifests/service.pp', line 2
class mofed::service {
assert_private()
if is_string($mofed::openibd_service_enable) {
if $mofed::openibd_service_enable in ['UNSET', 'undef'] {
$_enable = undef
} else {
$_enable = $mofed::openibd_service_enable
}
} else {
$_enable = $mofed::openibd_service_enable
}
if $mofed::manage_service {
service { 'openibd':
ensure => $mofed::openibd_service_ensure,
enable => $_enable,
name => $mofed::openibd_service_name,
hasstatus => $mofed::openibd_service_hasstatus,
hasrestart => $mofed::openibd_service_hasrestart,
}
}
}
|