Compare commits

..

4 Commits

Author SHA1 Message Date
Jenkins Server
94fc7ed6c1 Recommit for updates in build 11 2026-10-02 13:59:49 +02:00
Jenkins Server
8f3be68296 Merge remote-tracking branch 'origin/master' into jenkins-build-11 2026-10-02 13:58:59 +02:00
f40927b679 OP#830 testing fqdn pickup 2026-10-02 13:58:42 +02:00
Jenkins Server
33436cf926 Merge remote-tracking branch 'origin/master' into jenkins-build-10 2026-10-02 13:53:29 +02:00
3 changed files with 12 additions and 6 deletions

View File

@@ -216,7 +216,10 @@
35 35
36 36
37 37
38</pre> 38
39
40
41</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 13</span> <pre class="code"><span class="info file"># File 'manifests/params.pp', line 13</span>
@@ -232,8 +235,11 @@ class confdroid_ntp::params (
Array $cy_conf_servers = [&#39;0.pool.ntp.org&#39;, &#39;1.pool.ntp.org&#39;, &#39;2.pool.ntp.org&#39;, &#39;3.pool.ntp.org&#39;], Array $cy_conf_servers = [&#39;0.pool.ntp.org&#39;, &#39;1.pool.ntp.org&#39;, &#39;2.pool.ntp.org&#39;, &#39;3.pool.ntp.org&#39;],
) { ) {
# defaults # facts
$fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;] $fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;]
$domain = $facts[&#39;networking&#39;][&#39;domain&#39;]
$os_name = $facts[&#39;os&#39;][&#39;name&#39;]
$os_release = $facts[&#39;os&#39;][&#39;release&#39;][&#39;major&#39;]
# dirs # dirs

View File

@@ -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'], 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'] $fqdn = $facts['networking']['fqdn']
$domain = $facts['networking']['domain']
$os_name = $facts['os']['name']
$os_release = $facts['os']['release']['major']
# dirs # dirs

View File

@@ -6,15 +6,12 @@
<% if @fqdn == @cy_server_fqdn -%> <% if @fqdn == @cy_server_fqdn -%>
# This is a time server configuration file # This is a time server configuration file
<%= @fqdn %>
<% @cy_conf_servers.each do |this_server| -%> <% @cy_conf_servers.each do |this_server| -%>
pool <%= this_server %> iburst pool <%= this_server %> iburst
<% end -%> <% end -%>
<% if @fqdn != @cy_server_fqdn -%> <% if @fqdn != @cy_server_fqdn -%>
# This is a time client configuration file # This is a time client configuration file
<%= @fqdn %>
<% end -%> <% end -%>
<% end -%> <% end -%>