39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# File 'manifests/server.pp', line 39
class nfs::server (
$nfs_v4 = $nfs::params::nfs_v4,
$nfs_v4_export_root = $nfs::params::nfs_v4_export_root,
$nfs_v4_export_root_clients = $nfs::params::nfs_v4_export_root_clients,
$nfs_v4_idmap_domain = $nfs::params::domain,
) inherits nfs::params {
if $::osfamily == undef {
$osfamily = 'redhat'
} else {
$osfamily = downcase($::osfamily)
}
if $osfamily in ['redhat', 'debian'] {
class{ "nfs::server::${osfamily}":
nfs_v4 => $nfs_v4,
nfs_v4_idmap_domain => $nfs_v4_idmap_domain,
}
} else {
fail("Osfamliy: ${osfamily} not supported")
}
include nfs::server::configure
}
|