CentOS 8: Disable ntpd, enable chrony container
CentOS 8 does not provide an ntp package. Instead fall back to using the chrony container provided by Kolla Ansible by default. Depends-On: https://review.opendev.org/711511 Change-Id: If5230854d7565c8b3c91a46da4795c63edf095e4 Story: 2006574 Task: 38866
This commit is contained in:
parent
ebd5aa4477
commit
71d36cbe5e
@ -348,9 +348,11 @@ kolla_enable_blazar: "no"
|
||||
kolla_enable_central_logging: "no"
|
||||
kolla_enable_ceph: "no"
|
||||
kolla_enable_ceilometer: "no"
|
||||
# The chrony container is disabled by default because we enable an NTP daemon
|
||||
# on the host. Setting this to true will disable NTP on the host.
|
||||
kolla_enable_chrony: "no"
|
||||
# The chrony container is disabled by default on CentOS 7 because we enable an
|
||||
# NTP daemon on the host. On CentOS 8 the chrony container is enabled by
|
||||
# default because the NTP daemon is not supported. Setting this to true will
|
||||
# disable NTP on the host.
|
||||
kolla_enable_chrony: "{{ ansible_os_family != 'RedHat' or ansible_distribution_major_version | int >= 8 }}"
|
||||
kolla_enable_cinder: "no"
|
||||
kolla_enable_cloudkitty: "no"
|
||||
kolla_enable_collectd: "no"
|
||||
|
@ -10,9 +10,14 @@ timezone: "{{ ansible_date_time.tz }}"
|
||||
###############################################################################
|
||||
# Network Time Protocol (NTP).
|
||||
|
||||
# Whether to enable the NTP daemon on the host. Default is true unless
|
||||
# 'kolla_enable_chrony' has been set to true on overcloud hosts.
|
||||
ntp_service_enabled: "{{ 'overcloud' not in group_names or not kolla_enable_chrony | bool }}"
|
||||
# Whether to enable the NTP daemon on the host. On CentOS 7 the default is true
|
||||
# unless 'kolla_enable_chrony' has been set to true on overcloud hosts. On
|
||||
# CentOS 8 the host NTP daemon is not supported, and kolla_enable_chrony is set
|
||||
# to true by default.
|
||||
ntp_service_enabled: >-
|
||||
{{ ansible_os_family == 'RedHat' and
|
||||
ansible_distribution_major_version | int == 7 and
|
||||
('overcloud' not in group_names or not kolla_enable_chrony | bool) }}
|
||||
|
||||
ntp_package_state: "{{ 'present' if ntp_service_enabled | bool else 'absent' }}"
|
||||
ntp_service_state: "{{ 'started' if ntp_service_enabled | bool else 'stopped' }}"
|
||||
|
@ -363,6 +363,11 @@ NTP
|
||||
*tags:*
|
||||
| ``ntp``
|
||||
|
||||
.. note::
|
||||
|
||||
CentOS 8 does not support configuring an NTP daemon. Use :ref:`chrony
|
||||
<configuration-hosts-chrony>` instead.
|
||||
|
||||
Network Time Protocol (NTP) may be configured via variables in
|
||||
``${KAYOBE_CONFIG_PATH}/ntp.yml``. The list of NTP servers is
|
||||
configured via ``ntp_config_server``, and by default the ``pool.ntp.org``
|
||||
@ -391,14 +396,17 @@ The NTP service may be disabled as follows:
|
||||
|
||||
ntp_service_enabled: false
|
||||
|
||||
.. _configuration-hosts-chrony:
|
||||
|
||||
Chrony
|
||||
------
|
||||
|
||||
Kolla Ansible can deploy a chrony container. This is disabled by default in
|
||||
Kayobe to avoid conflicting with the NTP daemon on the host.
|
||||
Kayobe on CentOS 7 to avoid conflicting with the NTP daemon on the host. On
|
||||
CentOS 8 Chrony is enabled by default.
|
||||
|
||||
To use the containerised chrony daemon and disable the host NTP daemon, set the
|
||||
following in ``${KAYOBE_CONFIG_PATH}/kolla.yml``:
|
||||
To use the containerised chrony daemon and disable the host NTP daemon on
|
||||
CentOS 7, set the following in ``${KAYOBE_CONFIG_PATH}/kolla.yml``:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
|
@ -185,8 +185,10 @@
|
||||
#kolla_enable_ceph_mds:
|
||||
#kolla_enable_ceph_nfs:
|
||||
#kolla_enable_ceph_rgw:
|
||||
# The chrony container is disabled by default because we enable an NTP daemon
|
||||
# on the host. Setting this to true will disable NTP on the host.
|
||||
# The chrony container is disabled by default on CentOS 7 because we enable an
|
||||
# NTP daemon on the host. On CentOS 8 the chrony container is enabled by
|
||||
# default because the NTP daemon is not supported. Setting this to true will
|
||||
# disable NTP on the host.
|
||||
#kolla_enable_chrony:
|
||||
#kolla_enable_cinder:
|
||||
#kolla_enable_cinder_backend_hnas_iscsi:
|
||||
|
@ -10,8 +10,10 @@
|
||||
###############################################################################
|
||||
# Network Time Protocol (NTP).
|
||||
|
||||
# Whether to enable the NTP daemon on the host. Default is true unless
|
||||
# 'kolla_enable_chrony' has been set to true on overcloud hosts.
|
||||
# Whether to enable the NTP daemon on the host. On CentOS 7 the default is true
|
||||
# unless 'kolla_enable_chrony' has been set to true on overcloud hosts. On
|
||||
# CentOS 8 the host NTP daemon is not supported, and kolla_enable_chrony is set
|
||||
# to true by default.
|
||||
#ntp_service_enabled:
|
||||
|
||||
# List of names of NTP servers.
|
||||
|
8
releasenotes/notes/centos-8-chrony-bec9d7bc8b346363.yaml
Normal file
8
releasenotes/notes/centos-8-chrony-bec9d7bc8b346363.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
Support for configuring an NTP daemon on the seed and overcloud hosts is no
|
||||
longer present for CentOS 8, as appropriate packages are not available.
|
||||
Instead, Kolla Ansible is configured to deploy the ``chrony`` container on
|
||||
overcloud hosts by default. This may be disabled by setting
|
||||
``kolla_enable_chrony`` to ``false``.
|
Loading…
Reference in New Issue
Block a user