nfs: Merge from parameterize branch
This commit is contained in:
parent
f619236878
commit
bd5ccf4211
3 changed files with 100 additions and 28 deletions
22
nfs/templates/nfs-kernel-server.erb
Normal file
22
nfs/templates/nfs-kernel-server.erb
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Number of servers to start up
|
||||
RPCNFSDCOUNT=<%= @servers %>
|
||||
|
||||
# Runtime priority of server (see nice(1))
|
||||
RPCNFSDPRIORITY=0
|
||||
|
||||
# Options for rpc.mountd.
|
||||
# If you have a port-based firewall, you might want to set up
|
||||
# a fixed port here using the --port option. For more information,
|
||||
# see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
|
||||
# To disable NFSv4 on the server, specify '--no-nfs-version 4' here
|
||||
RPCMOUNTDOPTS="--manage-gids --port 4002 <%= @disable_versions %>"
|
||||
|
||||
# Do you want to start the svcgssd daemon? It is only required for Kerberos
|
||||
# exports. Valid alternatives are "yes" and "no"; the default is "no".
|
||||
NEED_SVCGSSD=""
|
||||
|
||||
# Options for rpc.svcgssd.
|
||||
RPCSVCGSSDOPTS=""
|
||||
|
||||
# Options for rpc.nfsd.
|
||||
RPCNFSDOPTS="<%= @disable_versions %>"
|
|
@ -26,20 +26,20 @@ LOCKD_UDPPORT=4001
|
|||
# Turn off v2 and v3 protocol support
|
||||
#RPCNFSDARGS="-N 2 -N 3"
|
||||
# Turn off v4 protocol support
|
||||
RPCNFSDARGS="-N 4"
|
||||
RPCNFSDARGS="<%= @disable_versions %>"
|
||||
# Number of nfs server processes to be started.
|
||||
# The default is 8.
|
||||
RPCNFSDCOUNT=64
|
||||
RPCNFSDCOUNT=<%= @servers %>
|
||||
# Stop the nfsd module from being pre-loaded
|
||||
#NFSD_MODULE="noload"
|
||||
#
|
||||
#
|
||||
<% if @operatingsystem == 'Fedora' -%>
|
||||
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
|
||||
RPCMOUNTDOPTS="--no-nfs-version 4 -p 4002"
|
||||
RPCMOUNTDOPTS="<%= @disable_versions %> -p 4002"
|
||||
<% else -%>
|
||||
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
|
||||
RPCMOUNTDOPTS="--no-nfs-version 4"
|
||||
RPCMOUNTDOPTS="<%= @disable_versions %>"
|
||||
# Port rpc.mountd should listen on.
|
||||
MOUNTD_PORT=4002
|
||||
<% end -%>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue