mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
Add support for ntpsec (#11665)
* Add support for ntpsec * fixup: set default ntp_driftfile based on ntp_package * fixup: docs
This commit is contained in:
@@ -64,7 +64,7 @@ ping_access_ip: true
|
||||
ntp_enabled: false
|
||||
# The package to install which provides NTP functionality.
|
||||
# The default is ntp for most platforms, or chrony on RHEL/CentOS 7 and later.
|
||||
# The ntp_package can be one of ['ntp', 'chrony']
|
||||
# The ntp_package can be one of ['ntp', 'ntpsec', 'chrony']
|
||||
ntp_package: >-
|
||||
{% if ansible_os_family == "RedHat" -%}
|
||||
chrony
|
||||
@@ -95,8 +95,13 @@ ntp_filter_interface: false
|
||||
# - listen xxx
|
||||
# The NTP driftfile path
|
||||
# Only takes effect when ntp_manage_config is true.
|
||||
ntp_driftfile: /var/lib/ntp/ntp.drift
|
||||
# Enable tinker panic is useful when running NTP in a VM environment.
|
||||
# Default value is `/var/lib/ntp/ntp.drift`, for ntpsec use '/var/lib/ntpsec/ntp.drift'
|
||||
ntp_driftfile: >-
|
||||
{% if ntp_package == "ntpsec" -%}
|
||||
/var/lib/ntpsec/ntp.drift
|
||||
{%- else -%}
|
||||
/var/lib/ntp/ntp.drift
|
||||
{%- endif -%}
|
||||
# Only takes effect when ntp_manage_config is true.
|
||||
ntp_tinker_panic: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user