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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# File 'manifests/client/redhat/service.pp', line 4
class nfs::client::redhat::service {
# lint:ignore:selector_inside_resource would not add much to readability
service {'nfslock':
ensure => running,
name => $::nfs::client::redhat::params::osmajor ? {
7 => 'rpc-statd',
default => 'nfslock'
},
enable => $::nfs::client::redhat::params::osmajor ? {
7 => undef,
default => true
},
hasstatus => true,
require => $::nfs::client::redhat::params::osmajor ? {
7 => Service['rpcbind'],
6 => Service['rpcbind'],
5 => [Package['portmap'], Package['nfs-utils']]
},
}
if $::nfs::client::redhat::params::osmajor == 5 or $::nfs::client::redhat::params::osmajor == 6 {
service { 'netfs':
enable => true,
require => $::nfs::client::redhat::params::osmajor ? {
6 => Service['nfslock'],
5 => [Service['portmap'], Service['nfslock']],
},
}
}
if $::nfs::client::redhat::params::osmajor == 6 or $::nfs::client::redhat::params::osmajor == 7 {
service {'rpcbind':
ensure => running,
enable => $::nfs::client::redhat::params::osmajor ? {
7 => undef,
default => true
},
hasstatus => true,
require => [Package['rpcbind'], Package['nfs-utils']],
}
} elsif $::nfs::client::redhat::params::osmajor == 5 {
service { 'portmap':
ensure => running,
enable => true,
hasstatus => true,
require => [Package['portmap'], Package['nfs-utils']],
}
}
# lint:endignore
}
|