Fixed rpc.statd port on Fedora.
This commit is contained in:
parent
94a4e0713a
commit
43b565949b
2 changed files with 8 additions and 3 deletions
|
@ -43,10 +43,10 @@ class nfs::server inherits nfs::client {
|
||||||
|
|
||||||
file { "/etc/sysconfig/nfs":
|
file { "/etc/sysconfig/nfs":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => "puppet:///modules/nfs/nfs.sysconfig",
|
content => template("nfs/nfs.sysconfig.erb"),
|
||||||
mode => "0644",
|
mode => "0644",
|
||||||
owner => root,
|
owner => "root",
|
||||||
group => root,
|
group => "root",
|
||||||
notify => Service["nfs"],
|
notify => Service["nfs"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,10 +40,15 @@ RPCMOUNTDOPTS="--no-nfs-version 4"
|
||||||
MOUNTD_PORT=4002
|
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)
|
# Optional arguments passed to rpc.statd. See rpc.statd(8)
|
||||||
#STATDARG=""
|
#STATDARG=""
|
||||||
# Port rpc.statd should listen on.
|
# Port rpc.statd should listen on.
|
||||||
STATD_PORT=4000
|
STATD_PORT=4000
|
||||||
|
<% end -%>
|
||||||
# Outgoing port statd should used. The default is port
|
# Outgoing port statd should used. The default is port
|
||||||
# is random
|
# is random
|
||||||
#STATD_OUTGOING_PORT=2020
|
#STATD_OUTGOING_PORT=2020
|
Loading…
Add table
Reference in a new issue