Configuration of ntp-client |
modules/NtpClient.ycp |
Data for configuration of ntp-client, input and output functions. | |
|
|
This module has an unstable interface. |
Abort function return boolean return true if abort
Data was modified?
Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.
Read all ntp-client settings
- Return value:
-
true on success
Should the daemon be started when system boots?
Should the time synchronized periodicaly?
The interval of synchronization in minutes.
The cron file name for the synchronization.
Service name of the NTP daemon
Should the daemon be started in chroot environment?
Netconfig policy: for merging and prioritizing static and DHCP config. FIXME get a public URL https://svn.suse.de/svn/sysconfig/branches/mt/dhcp6-netconfig/netconfig/doc/README
Index of the currently sellected item
The currently sellected item
Active Directory controller
Should the firewall settings be changed?
Required packages
ports in firewall to open
List of known NTP servers server address -> information address: the key repeated country: CC (uppercase) location: for displaying ...: (others are unused)
Mapping between country codes and country names ("CZ" -> "Czech Republic")
Abort function
- Return value:
-
blah blah lahjk
Reads and returns all known countries with their country codes
Structure $[
"CL" : "Chile", "FR" : "France", ... ]
- Return value:
-
of known contries
Read current language (RC_LANG from sysconfig)
- Return value:
-
two-letter language code (cs_CZ.UTF-8 -> CZ)
Get the list of known NTP servers
- Return value:
-
a list of known NTP servers
Get the mapping between country codea and names ("CZ" -> "Czech Republic")
- Return value:
-
a map the country codes and names mapping
Get list of public NTP servers for a country
- Parameters:
-
country two-letter country code terse_output display additional data (location etc.)
- Return value:
-
of servers (usable as combo-box items)
Read and parse /etc.ntp.conf
- Return value:
-
true on success
Read the synchronization status, fill synchronize_time and sync_interval variables Return updated value of synchronize_time
Read all ntp-client settings
- Return value:
-
true on success
Function returns list of NTP servers used in the configuration.
- Return value:
-
of servers
List of servers defined by the pool.ntp.org to get random ntp servers
Checks whether all servers listed in the random_pool_servers list are used in the configuration.
- Return value:
-
true if enabled
Removes all servers contained in the random_pool_servers list from the current configuration.
Add servers needed for random_pool_servers function into the current configuration.
Write all ntp-client settings
- Return value:
-
true on success
Get all ntp-client settings from the first parameter (For use by autoinstallation.)
- Parameters:
-
settings The YCP structure to be imported.
- Return value:
-
True on success
Dump the ntp-client settings to a single map (For use by autoinstallation.)
- Return value:
-
Dumped settings (later acceptable by Import ())
Create a textual summary and a list of unconfigured cards
- Return value:
-
summary of the current configuration
Test if specified NTP server answers
- Parameters:
-
server string host name or IP address of the NTP server verbosity `no_ui: ..., `transient_popup: pop up while scanning, `result_popup: also final pop up about the result
- Return value:
-
true if NTP server answers properly
Detect NTP servers present in the local network
- Parameters:
-
method symbol method of the detection (only `slp suported ATM)
- Return value:
-
a list of found NTP servers
Get the list of synchronization-related records
- Return value:
-
a list of maps with keys type (eg. "server"), address and index.
Select synchronization record
- Parameters:
-
index integer, -1 for creating a new record
- Return value:
-
true on success
Find index of synchronization record
- Parameters:
-
type string record type address string address
- Return value:
-
index of the record if found, -1 otherwise
Store currently sellected synchronization record
- Return value:
-
true on success
Delete specified synchronization record
- Parameters:
-
index integer index of record to delete
- Return value:
-
true on success
Ensure that selected_record["options"] contains the option. (A set operation in a string)
- Parameters:
-
option
Return required packages for auto-installation
- Return value:
-
of packages to be installed and to be removed