echo
log "Removing iptables-services ..."
- yum remove -y install iptables-services
+ yum remove -y iptables-services
echo "Stopping and disabling firewalld ..."
systemctl stop firewalld
systemctl disable firewalld
}
+#-----------------------------------------------------------
+install_ntp() {
+
+ echo
+ log "Deinstalling chrony from whatever reason ..."
+ echo "Stopping chronyd ..."
+ systemctl stop chronyd
+ echo "Disabling chronyd ..."
+ systemctl disable chronyd
+ echo "Deinstalling chrony ..."
+ yum remove -y chrony
+
+ echo
+ log "Installing NTP ..."
+ yum install -y ntp
+
+ echo "Cofiguring ntpd ..."
+ mkdir -pv /etc/ntp
+
+ cat <<-EOF > /etc/ntp.conf
+ tinker panic 0
+ driftfile /var/lib/ntp/drift
+ # Permit time synchronization with our time source, but do not
+ # permit the source to query or modify the service on this system.
+ restrict default kod nomodify notrap nopeer noquery
+ restrict -6 default kod nomodify notrap nopeer noquery
+ restrict 127.0.0.1
+ restrict -6 ::1
+ server time01.pixelpark.com iburst
+ server time02.pixelpark.com iburst
+ server time03.pixelpark.com iburst
+
+ EOF
+
+ cat <<-EOF > /etc/ntp/step-tickers
+ time01.pixelpark.com
+ time02.pixelpark.com
+ time03.pixelpark.com
+ EOF
+
+ systemctl enable ntpd
+
+}
+
#-----------------------------------------------------------
main() {
misc_packages
create_motd
install_legato_networker
+ install_ntp
tweak_grub