OP#830 finalize default config values
This commit is contained in:
@@ -12,6 +12,11 @@
|
||||
# @param [String] cy_min_sources Minimum number of selectable sources required
|
||||
# to adjust the system clock. Primarily used for servers.
|
||||
# @param [String] cy_client_allow CIDR notation for allowed client networks
|
||||
# @param [String] cy_leapsec_mode Leap second handling mode. Valid values are
|
||||
# 'slew' or 'step'.
|
||||
# @param [String] cy_leapsectz Leap second timezone file to use.
|
||||
# @param [String] cy_loginfo Log information to record. Valid values are
|
||||
# 'measurements', 'statistics', and 'tracking'.
|
||||
###############################################################################
|
||||
class confdroid_ntp::params (
|
||||
|
||||
@@ -24,6 +29,9 @@ class confdroid_ntp::params (
|
||||
Array $cy_conf_servers = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
|
||||
String $cy_min_sources = '3',
|
||||
String $cy_client_allow = '192.168.1.0/24',
|
||||
String $cy_leapsec_mode = 'slew',
|
||||
String $cy_leapsectz = 'right/UTC',
|
||||
String $cy_loginfo = 'measurements statistics tracking',
|
||||
|
||||
) {
|
||||
# facts
|
||||
|
||||
@@ -47,16 +47,16 @@ keyfile /etc/chrony.keys
|
||||
ntsdumpdir /var/lib/chrony
|
||||
|
||||
# Insert/delete leap seconds by slewing instead of stepping.
|
||||
#leapsecmode slew
|
||||
leapsecmode <%= @cy_leapsec_mode %>
|
||||
|
||||
# Get TAI-UTC offset and leap seconds from the system tz database.
|
||||
leapsectz right/UTC
|
||||
leapsectz <%= @cy_leapsectz %>
|
||||
|
||||
# Specify directory for log files.
|
||||
logdir /var/log/chrony
|
||||
|
||||
# Select which information is logged.
|
||||
#log measurements statistics tracking
|
||||
log <%= @cy_loginfo %>
|
||||
|
||||
<% end %>
|
||||
|
||||
@@ -101,15 +101,15 @@ keyfile /etc/chrony.keys
|
||||
ntsdumpdir /var/lib/chrony
|
||||
|
||||
# Insert/delete leap seconds by slewing instead of stepping.
|
||||
#leapsecmode slew
|
||||
leapsecmode <%= @cy_leapsec_mode %>
|
||||
|
||||
# Get TAI-UTC offset and leap seconds from the system tz database.
|
||||
leapsectz right/UTC
|
||||
leapsectz <%= @cy_leapsectz %>
|
||||
|
||||
# Specify directory for log files.
|
||||
logdir /var/log/chrony
|
||||
|
||||
# Select which information is logged.
|
||||
#log measurements statistics tracking
|
||||
log <%= @cy_loginfo %>
|
||||
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user