Compare commits
1 Commits
94fc7ed6c1
...
643a4c9ab3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
643a4c9ab3 |
@@ -216,10 +216,7 @@
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41</pre>
|
||||
38</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 13</span>
|
||||
@@ -235,11 +232,8 @@ class confdroid_ntp::params (
|
||||
Array $cy_conf_servers = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
|
||||
|
||||
) {
|
||||
# facts
|
||||
# defaults
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
$domain = $facts['networking']['domain']
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
|
||||
# dirs
|
||||
|
||||
|
||||
@@ -21,11 +21,8 @@ class confdroid_ntp::params (
|
||||
Array $cy_conf_servers = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
|
||||
|
||||
) {
|
||||
# facts
|
||||
# defaults
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
$domain = $facts['networking']['domain']
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
|
||||
# dirs
|
||||
|
||||
|
||||
@@ -6,12 +6,15 @@
|
||||
|
||||
<% 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 -%>
|
||||
|
||||
Reference in New Issue
Block a user