OP#830 finalize default config values

This commit is contained in:
2026-10-02 15:37:23 +02:00
parent 19ca664819
commit a978d1c95b
2 changed files with 80 additions and 1 deletions

View File

@@ -9,6 +9,9 @@
# If the fqdn of the host matches this value, a time server will be
# configured, else a client.
# @param [Array] cy_conf_servers List of NTP servers to point to as time source
# @param [String] cy_min_sources Minimum number of selectable sources required
# to adjust the system clock. Primarily used for servers.
# @param [String] cy_client_allow CIDR notation for allowed client networks
###############################################################################
class confdroid_ntp::params (
@@ -19,13 +22,15 @@ class confdroid_ntp::params (
# configuration
String $cy_server_fqdn = 'ntp.example.local',
Array $cy_conf_servers = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
String $cy_min_sources = '3',
String $cy_client_allow = '192.168.1.0/24',
) {
# facts
$fqdn = $facts['networking']['fqdn']
$domain = $facts['networking']['domain']
$os_name = $facts['os']['name']
$os_release y= $facts['os']['release']['major']
$os_release = $facts['os']['release']['major']
# dirs