From 19ca66481987b6bb0f3b9e5a3236c5f3aaadfe3f Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Fri, 2 Oct 2026 15:16:47 +0200 Subject: [PATCH] OP#830 update Readme --- README.md | 9 ++++++++- manifests/params.pp | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 31dd13b..a1bab91 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,20 @@ Time management in Linux is important. The underlying protocol is ntp, the servi ## Features +This module differentiates between client- and server configuration. If the `FQDN` of the puppet client matches the value of `cy_server_fqdn`, it assumes this to be an ntp time server, else it will be a client. + +If you have no local time server(s), leave the default for `cy_server_fqdn`. + +The value for `cy_server_fqdn` is a string rather array, assuming either a single time server or a round-robin DNS entry for this, returning several values for the time server (not configured by this module). + INSTALLATION - installs chrony binaries CONFIGURATION -- manage directories and files including templates +- manage directories including selinux contexts +- and files and their templates including selinux contexts - manage service - optional: include nagios target for the chrony service (set `cy_manage_nagios`to `true`) diff --git a/manifests/params.pp b/manifests/params.pp index 3cc6ae7..0e82d8e 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -17,7 +17,7 @@ class confdroid_ntp::params ( String $cy_pkg_ensure = 'present', # configuration - String $cy_server_fqdn = 'ntp.example.com', + 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'], ) { @@ -25,7 +25,7 @@ class confdroid_ntp::params ( $fqdn = $facts['networking']['fqdn'] $domain = $facts['networking']['domain'] $os_name = $facts['os']['name'] - $os_release = $facts['os']['release']['major'] + $os_release y= $facts['os']['release']['major'] # dirs