48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# File 'manifests/client/redhat.pp', line 48
class nfs::client::redhat::service {
Service {
require => Class['nfs::client::redhat::configure']
}
service {"nfslock":
ensure => running,
enable => true,
hasstatus => true,
require => $nfs::client::redhat::osmajor ? {
6 => Service["rpcbind"],
5 => [Package["portmap"], Package["nfs-utils"]]
},
}
service { "netfs":
enable => true,
require => $nfs::client::redhat::osmajor ? {
6 => Service["nfslock"],
5 => [Service["portmap"], Service["nfslock"]],
},
}
if $nfs::client::redhat::osmajor == 6 {
service {"rpcbind":
ensure => running,
enable => true,
hasstatus => true,
require => [Package["rpcbind"], Package["nfs-utils"]],
}
} elsif $nfs::client::redhat::osmajor == 5 {
service { "portmap":
ensure => running,
enable => true,
hasstatus => true,
require => [Package["portmap"], Package["nfs-utils"]],
}
}
}
|