Fixed rpc.statd port on Fedora.

This commit is contained in:
Timo Mkinen 2012-06-06 11:59:49 +03:00
parent 94a4e0713a
commit 43b565949b
2 changed files with 8 additions and 3 deletions

View file

@ -43,10 +43,10 @@ class nfs::server inherits nfs::client {
file { "/etc/sysconfig/nfs":
ensure => present,
source => "puppet:///modules/nfs/nfs.sysconfig",
content => template("nfs/nfs.sysconfig.erb"),
mode => "0644",
owner => root,
group => root,
owner => "root",
group => "root",
notify => Service["nfs"],
}

View file

@ -40,10 +40,15 @@ RPCMOUNTDOPTS="--no-nfs-version 4"
MOUNTD_PORT=4002
#
#
<% if @operatingsystem == 'Fedora' -%>
# Optional arguments passed to rpc.statd. See rpc.statd(8)
STATDARG="-p 4000"
<% else -%>
# Optional arguments passed to rpc.statd. See rpc.statd(8)
#STATDARG=""
# Port rpc.statd should listen on.
STATD_PORT=4000
<% end -%>
# Outgoing port statd should used. The default is port
# is random
#STATD_OUTGOING_PORT=2020