YaST2 Developers Documentation: Configuration of nfs_server



functions
files
intro

Configuration of nfs_server

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

Imports

  • Progress
  • Report
  • Service
  • Summary
  • Wizard

Global Variables

Global Functions

Local Variables

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 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)

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": "exports":]
Return value:
success
See:
exports

global Set (map settings) -> void

Set the variables just as is and without complaining @param settings

Parameters:
settings

global Export () -> map

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

Return value:
$["start": "exports":]
See:
exports

global Read () -> boolean

Reads NFS settings from the SCR (.etc.exports)

Return value:
true on success

global WriteExports () -> boolean

Saves /etc/exports and creates missing directories.

Return value:
true on success

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

YaST2 Developers Documentation