YaST2 Developers Documentation: Configuration of nfs_server

Configuration of nfs_server

modules/NfsServer.ycp
NFS server configuration data, I/O functions.
  • Martin Vidner

This module has an unstable interface.

Imports

  • Progress
  • Report
  • Service
  • SuSEFirewall
  • Summary
  • Wizard

Global Variables

Global Functions

Local Variables

Local Functions

global SetModified () -> void

Function sets internal variable, which indicates, that any settings were modified, to "true"

global GetModified () -> boolean

Functions which returns if the settings were modified

Return value:
settings were modified
global required_packages -> list<string>

Required packages for this module to operate

global write_only -> boolean

Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

global enable_nfsv4 -> boolean

Enable nfsv4

global nfs_security -> boolean

GSS Security ?

global domain -> string

Domain name to be used for nfsv4 (idmapd.conf)

global start -> boolean

Should the server be started? New since 9.0: Exports are independent of this setting.

global exports -> list<map<string,any> >

Example

 [
   $[
     "mountpoint": "/projects",
     "allowed": [ "*.local.domain(ro)", "@trusted(rw)"]
   ],
   $[ ... ],
   ...
 ]
local have_nfslock -> boolean

Do we have nfslock? (nfs-utils: yes, nfs-server: no) FIXME: check nfs-kernel-server

global Import (map settings) -> boolean

Get all NFS server configuration from a map. When called by nfs_server_auto (preparing autoinstallation data) the map may be empty.

Parameters:
settings $["start_nfsserver": "nfs_exports":]
Return value:
success
See
exports
global Set (map settings) -> void

Set the variables just as is and without complaining

Parameters:
settings $[ start_nfsserver:, nfs_exports:, ]
global Export () -> map

Dump the NFS settings to a map, for autoinstallation use.

Return value:
$["start_nfsserver": "nfs_exports":]
See
exports
global Read () -> boolean

Reads NFS settings from the SCR (.etc.exports), from SCR (.sysnconfig.nfs) and SCR (.etc.idmapd_conf),if necessary.

Return value:
true on success
global WriteExports () -> boolean

Saves /etc/exports and creates missing directories.

Return value:
true on success
local Portmapper () -> string

Get the used port mapper: since SLE11A3 we have rpcbind instead of portmap as the default (bnc#423026)

global Write () -> boolean

Saves NFS server configuration. (exports(5)) Creates any missing directories.

Return value:
true on success
global Summary () -> string

Return value:
A summary for autoyast
global AutoPackages () -> map

Return required packages for auto-installation

Return value:
of packages to be installed and to be removed