Hosts data (/etc/hosts)
List of Global Functions
Export - Dump the Hosts settings to a map, for autoinstallation use.
GetModified - Function which returns if the settings were modified
GetSystemHosts - Return "system" predefined hosts (should be present all the time)
Import - Get all the Hosts configuration from a map. When called by hosts_auto (preparing autoinstallation data) the map may be empty.
Read - Read hosts settings
SetModified - Function sets internal variable, which indicates, that any settings were modified, to "true"
Summary - Create summary
Update - Update hosts according to the current hostname (only one hostname, assigned to all IPs)
Write - Write hosts settings and apply changes
List of Global Variables
hosts - All hosts See hosts(5) keys: IPs, (But #35671 suggests that repeating IPs is valid) values: names, the first one is the canonical one
modified - Data was modified?
write_only - Only write configuration
Dump the Hosts settings to a map, for autoinstallation use.
Return value
map - autoinstallation settings
Function which returns if the settings were modified
Return value
boolean - settings were modified
Return "system" predefined hosts (should be present all the time)
Return value
list - of system hosts
Get all the Hosts configuration from a map. When called by hosts_auto (preparing autoinstallation data) the map may be empty.
Function parameters
map settings
Return value
boolean - true if success
Function sets internal variable, which indicates, that any settings were modified, to "true"
Return value
void
Update hosts according to the current hostname (only one hostname, assigned to all IPs)
Function parameters
string oldhn
string newhn
list<string> iplist
Return value
boolean - true if success
All hosts See hosts(5) keys: IPs, (But #35671 suggests that repeating IPs is valid) values: names, the first one is the canonical one