Skip to content

Commit e43e1e4

Browse files
committed
Configure ntp in all nodes
1 parent 096b45c commit e43e1e4

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

control-plane.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -euo pipefail
55
install_scripts=(
66
"scripts/apt.sh"
77
"scripts/swap.sh"
8+
"scripts/ntp.sh"
89
"scripts/network.sh"
910
"scripts/containerd.sh"
1011
"scripts/kubernetes.sh"

node.sh

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fi
1818
INSTALL_SCRIPTS=(
1919
"scripts/apt.sh"
2020
"scripts/swap.sh"
21+
"scripts/ntp.sh"
2122
"scripts/network.sh"
2223
"scripts/storage.sh"
2324
"scripts/containerd.sh"

scripts/ntp.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
echo "Removing systemd-timesyncd..."
6+
apt purge systemd-timesyncd
7+
8+
echo "Installing ntp..."
9+
apt update
10+
apt-get install ntpsec ntp
11+
systemctl status ntp
12+
13+
echo "Checking NTP sync..."
14+
ntpq -p

0 commit comments

Comments
 (0)