Install the ntp service
An XCCDF Rule
Description
The ntpd service should be installed.Rationale
Time synchronization (using NTP) is required by almost all network and administrative tasks (syslog, cryptographic based services (authentication, etc.), etc.). Ntpd is regulary maintained and updated, supporting security features such as RFC 5906.
- ID
- xccdf_org.ssgproject.content_rule_package_ntp_installed
- Severity
- High
- References
- Updated
Remediation Templates
script:kickstart
package install ntp
An Ansible Snippet
- name: Ensure ntp is installed
package:
name: ntp
state: present
when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"]
tags:
Anaconda Pre-Install Instructions
package --add=ntp
A Puppet Snippet
include install_ntp
class install_ntp {
package { 'ntp':
ensure => 'installed',
}
}
OS Build Blueprint
[[packages]]
name = "ntp"
version = "*"
A Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
if ! rpm -q --quiet "ntp" ; then
dnf install -y "ntp"
fi