From f40927b6796b19ed6ee9b6cf3b8db9976bb74bbd Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Fri, 2 Oct 2026 13:58:42 +0200 Subject: [PATCH] OP#830 testing fqdn pickup --- manifests/params.pp | 5 ++++- templates/chrony.conf.erb | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 0c6c88c..3cc6ae7 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -21,8 +21,11 @@ class confdroid_ntp::params ( Array $cy_conf_servers = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'], ) { -# defaults +# facts $fqdn = $facts['networking']['fqdn'] + $domain = $facts['networking']['domain'] + $os_name = $facts['os']['name'] + $os_release = $facts['os']['release']['major'] # dirs diff --git a/templates/chrony.conf.erb b/templates/chrony.conf.erb index e8534f3..21ddf55 100644 --- a/templates/chrony.conf.erb +++ b/templates/chrony.conf.erb @@ -6,15 +6,12 @@ <% if @fqdn == @cy_server_fqdn -%> # This is a time server configuration file -<%= @fqdn %> <% @cy_conf_servers.each do |this_server| -%> pool <%= this_server %> iburst - <% end -%> <% if @fqdn != @cy_server_fqdn -%> # This is a time client configuration file -<%= @fqdn %> <% end -%> <% end -%>