Data for configuration of ntp-client, input and output functions.
List of Global Functions
ActivateRandomPoolServersFunction - Add servers needed for random_pool_servers function into the current configuration.
AutoPackages - Return required packages for auto-installation
DeActivateRandomPoolServersFunction - Removes all servers contained in the random_pool_servers list from the current configuration.
DetectNtpServers - Detect NTP servers present in the local network
Export - Dump the ntp-client settings to a single map (For use by autoinstallation.)
GetAllKnownCountries - Reads and returns all known countries with their country codes
GetCountryNames - Get the mapping between country codea and names ("CZ" -> "Czech Republic")
GetNtpServers - Get the list of known NTP servers
GetUsedNtpServers - Function returns list of NTP servers used in the configuration.
Import - Get all ntp-client settings from the first parameter (For use by autoinstallation.)
IsRandomServersServiceEnabled - Checks whether all servers listed in the random_pool_servers list are used in the configuration.
Read - Read all ntp-client settings
Summary - Create a textual summary and a list of unconfigured cards
TestNtpServer - Test if specified NTP server answers
Write - Write all ntp-client settings
deleteSyncRecord - Delete specified synchronization record
findSyncRecord - Find index of synchronization record
getSyncRecords - Get the list of synchronization-related records
selectSyncRecord - Select synchronization record
storeSyncRecord - Store currently sellected synchronization record
List of Global Variables
ad_controller - Active Directory controller
config_dhcp - NTP servers will be configured via DHCP
firewall_services - ports in firewall to open
modified - Data was modified?
ntp_records - Read all ntp-client settings
original_config_dhcp - NTP servers will be configured via DHCP - value got while reading
random_pool_servers - List of servers defined by the pool.ntp.org to get random ntp servers
required_packages - Required packages
run_chroot - Should the daemon be started in chroot environment?
run_service - Should the daemon be started when system boots?
selected_index - Index of the currently sellected item
selected_record - The currently sellected item
service_name - Service name of the NTP daemon
write_only - Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.
Add servers needed for random_pool_servers function into the current configuration.
Return value
void
Return required packages for auto-installation
Return value
map - of packages to be installed and to be removed
Removes all servers contained in the random_pool_servers list from the current configuration.
Return value
void
Detect NTP servers present in the local network
Function parameters
symbol method
Return value
list<string> - a list of found NTP servers
Dump the ntp-client settings to a single map (For use by autoinstallation.)
Return value
map - Dumped settings (later acceptable by Import ())
Reads and returns all known countries with their country codes
Return value
map <string, string> - of known contries
$[ "CL" : "Chile", "FR" : "France", ... ]
Get the mapping between country codea and names ("CZ" -> "Czech Republic")
Return value
map<string, string> - a map the country codes and names mapping
Get the list of known NTP servers
Return value
map<string, map<string,string> > - a list of known NTP servers
Function returns list of NTP servers used in the configuration.
Return value
list <string> - of servers
Get all ntp-client settings from the first parameter (For use by autoinstallation.)
Function parameters
map settings
Return value
boolean - True on success
Checks whether all servers listed in the random_pool_servers list are used in the configuration.
Return value
boolean - true if enabled
Create a textual summary and a list of unconfigured cards
Return value
string - summary of the current configuration
Test if specified NTP server answers
Function parameters
string server
boolean silent
Return value
boolean - true if NTP server answers properly
Delete specified synchronization record
Function parameters
integer index
Return value
boolean - true on success
Find index of synchronization record
Function parameters
string type
string address
Return value
integer - index of the record if found, -1 otherwise
Get the list of synchronization-related records
Return value
list<map<string,any> > - a list of maps with keys type (eg. "server"), address and index.
Select synchronization record
Function parameters
integer index
Return value
boolean - true on success