Data for configuration of TftpServer, input and output functions.
List of Global Functions
AutoPackages - Return needed packages and packages to be removed during autoinstallation.
Export - Dump the tftp-server settings to a single map (For use by autoinstallation.)
ForeignServersError - Return error string to be used in WriteOnly (for autoinst) or before the edit dialog.
GetModified - Returns true if the settings were modified
Import - Get all tftp-server settings from the first parameter (For use by autoinstallation.)
ParseServerArgs - Extract the directory and other arguments. global to make testing easier
Read - Read all tftp-server settings
Set - Set module data, without validity checking
SetModified - Function sets an internal variable indicating that any settings were modified to "true". Used for autoinst cloning.
Summary -
Write - Write all tftp-server settings
WriteOnly - Write all tftp-server settings without actually (re)starting the service
List of Global Variables
directory - Image directory, last argument of in.tftpd
foreign_servers - Detect who is serving tftp: Inetd may be running, it is the default. But it is ok unless it is serving tftp. So we detect who is serving tftp and warn if it is not xinetd or in.tftpd. If nonempty, the user is notified and the module gives up.
other_args - Other arguments to in.tftpd, ie. not including -s or /dir
required_packages - Required packages for operation
start - Start tftpd via xinetd?
Return needed packages and packages to be removed during autoinstallation.
Return value
map - of lists.
Dump the tftp-server settings to a single map (For use by autoinstallation.)
Return value
map - Dumped settings (later acceptable by Import ())
Return error string to be used in WriteOnly (for autoinst) or before the edit dialog.
Return value
string - error string
Returns true if the settings were modified
Return value
boolean - settings were modified
Get all tftp-server settings from the first parameter (For use by autoinstallation.)
Function parameters
map settings
Return value
boolean - True on success
Extract the directory and other arguments. global to make testing easier
Function parameters
string server_args
Return value
void
Set module data, without validity checking
Function parameters
map settings
Return value
void
Function sets an internal variable indicating that any settings were modified to "true". Used for autoinst cloning.
Return value
void
Detect who is serving tftp: Inetd may be running, it is the default. But it is ok unless it is serving tftp. So we detect who is serving tftp and warn if it is not xinetd or in.tftpd. If nonempty, the user is notified and the module gives up.