OP#830 testing fqdn pickup
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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 -%>
|
||||||
|
|||||||
Reference in New Issue
Block a user