@@ -29,40 +29,40 @@ timesync_ntp_servers:
29
29
- hostname : foo.example.com # Hostname or address of the server
30
30
minpoll : 4 # Minimum polling interval (default 6)
31
31
maxpoll : 8 # Maximum polling interval (default 10)
32
- iburst : yes # Flag enabling fast initial synchronization
33
- # (default no )
34
- pool : no # Flag indicating that each resolved address
32
+ iburst : true # Flag enabling fast initial synchronization
33
+ # (default false )
34
+ pool : false # Flag indicating that each resolved address
35
35
# of the hostname is a separate NTP server
36
- # (default no )
37
- nts : no # Flag enabling Network Time Security (NTS)
38
- # authentication mechanism (default no ,
36
+ # (default false )
37
+ nts : false # Flag enabling Network Time Security (NTS)
38
+ # authentication mechanism (default false ,
39
39
# supported only with chrony >= 4.0)
40
- prefer : no # Flag marking the source to be preferred for
40
+ prefer : false # Flag marking the source to be preferred for
41
41
# synchronization over other sources
42
- # (default no )
43
- trust : no # Flag marking the source to be trusted over
42
+ # (default false )
43
+ trust : false # Flag marking the source to be trusted over
44
44
# sources that don't have this flag
45
- # (default no )
46
- xleave : no # Flag enabling interleaved mode (default no )
45
+ # (default false )
46
+ xleave : false # Flag enabling interleaved mode (default false )
47
47
filter : 1 # Number of NTP measurements per clock update
48
48
# (default 1)
49
49
50
50
# List of PTP domains
51
51
timesync_ptp_domains :
52
52
- number : 0 # PTP domain number
53
- interfaces : [ eth0 ] # List of interfaces in the domain
53
+ interfaces : [eth0] # List of interfaces in the domain
54
54
delay : 0.000010 # Assumed maximum network delay to the
55
55
# grandmaster in seconds
56
56
# (default 100 microsecond)
57
57
transport : UDPv4 # Network transport: UDPv4, UDPv6, L2
58
58
# (default UDPv4)
59
59
udp_ttl : 1 # TTL for UDPv4 and UDPv6 transports
60
60
# (default 1)
61
- hybrid_e2e : no # Flag enabling unicast end-to-end delay
62
- # requests (default no )
61
+ hybrid_e2e : false # Flag enabling unicast end-to-end delay
62
+ # requests (default false )
63
63
64
- # Flag enabling use of NTP servers provided by DHCP (default no )
65
- timesync_dhcp_ntp_servers : no
64
+ # Flag enabling use of NTP servers provided by DHCP (default false )
65
+ timesync_dhcp_ntp_servers : false
66
66
67
67
# Minimum offset of the clock which can be corrected by stepping (default is
68
68
# specific to NTP/PTP implementation: chrony 1.0, ntp 0.128, linuxptp 0.00002).
@@ -80,21 +80,21 @@ timesync_min_sources: 1
80
80
# List of interfaces which should have hardware timestamping enabled for NTP
81
81
# (default empty list). As a special value, '*' enables the timestamping on all
82
82
# interfaces that support it.
83
- timesync_ntp_hwts_interfaces : [ '*' ]
83
+ timesync_ntp_hwts_interfaces : ["*" ]
84
84
85
85
# Name of the package which should be installed and configured for NTP.
86
86
# Possible values are "chrony" and "ntp". If not defined, the currently active
87
87
# or enabled service will be configured. If no service is active or enabled, a
88
88
# package specific to the system and its version will be selected.
89
89
timesync_ntp_provider : chrony
90
90
91
- # Sometimes administrators might need extended configurations for chrony which
92
- # are not covered by the predefined settings provided by this role.
93
- # 'timesync_chrony_custom_settings' allows to define a list of custom settings
94
- # for the chrony.conf file, by providing a list of settings. As an example,
91
+ # Sometimes administrators might need extended configurations for chrony which
92
+ # are not covered by the predefined settings provided by this role.
93
+ # 'timesync_chrony_custom_settings' allows to define a list of custom settings
94
+ # for the chrony.conf file, by providing a list of settings. As an example,
95
95
# for debugging, one might need to log mesurements, statistics and tracking.
96
- # This information is usually stored in the /var/log/chrony directory. For
97
- # that, one needs to define two different settings (logdir and log), as
96
+ # This information is usually stored in the /var/log/chrony directory. For
97
+ # that, one needs to define two different settings (logdir and log), as
98
98
# follows:
99
99
timesync_chrony_custom_settings :
100
100
- " logdir /var/log/chrony"
@@ -111,11 +111,11 @@ Install and configure ntp to synchronize the system clock with three NTP servers
111
111
vars :
112
112
timesync_ntp_servers :
113
113
- hostname : foo.example.com
114
- iburst : yes
114
+ iburst : true
115
115
- hostname : bar.example.com
116
- iburst : yes
116
+ iburst : true
117
117
- hostname : baz.example.com
118
- iburst : yes
118
+ iburst : true
119
119
roles :
120
120
- linux-system-roles.timesync
121
121
` ` `
@@ -128,7 +128,7 @@ grandmaster in PTP domain number 0, which is accessible on interface eth0:
128
128
vars :
129
129
timesync_ptp_domains :
130
130
- number : 0
131
- interfaces : [ eth0 ]
131
+ interfaces : [eth0]
132
132
roles :
133
133
- linux-system-roles.timesync
134
134
` ` `
@@ -149,19 +149,19 @@ synchronization:
149
149
maxpoll : 6
150
150
timesync_ptp_domains :
151
151
- number : 0
152
- interfaces : [ eth0, eth1 ]
152
+ interfaces : [eth0, eth1]
153
153
transport : L2
154
154
delay : 0.000010
155
155
- number : 1
156
- interfaces : [ eth2 ]
156
+ interfaces : [eth2]
157
157
transport : UDPv4
158
158
delay : 0.000010
159
159
roles :
160
160
- linux-system-roles.timesync
161
161
` ` `
162
162
163
- Install and configure chrony with multiple NTP servers and custom advanced
164
- settings: log ` measurements`,`statistics` and `tracking`
163
+ Install and configure chrony with multiple NTP servers and custom advanced
164
+ settings: log ` measurements`, `statistics` and `tracking`
165
165
into `/var/log/chrony` :
166
166
167
167
0 commit comments