Skip to content

Commit

Permalink
ntp_client: Add maxdelay on ntp pool in chrony.conf
Browse files Browse the repository at this point in the history
By defaul is chrony getting ntp servers around the world.
The default maxdelay value is 3 seconds and the maximum value is 1000 seconds.
  • Loading branch information
dzedro committed Nov 20, 2020
1 parent 3d6ab6c commit 9ff8da4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/console/ntp_client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ sub run {
systemctl 'is-active systemd-timesyncd', expect_false => 1;
systemctl 'is-enabled systemd-timesyncd', expect_false => 1;

# add maxdelay option on pool to get close and fast ntp servers
assert_script_run q(sed -i '/iburst/ s/$/ maxdelay 0.3/' /etc/chrony.conf);

# ensure that chronyd is running
systemctl 'is-enabled chronyd';
systemctl 'is-active chronyd';
Expand Down

0 comments on commit 9ff8da4

Please sign in to comment.