From 8f8068f9d1b1ecb77727f1fac77d3f7a26311675 Mon Sep 17 00:00:00 2001 From: Alexandre Skrzyniarz Date: Thu, 26 Sep 2024 17:17:56 +0200 Subject: [PATCH] update documentation for Debian case in service_chronyd_or_ntpd_enabled rule --- .../ntp/service_chronyd_or_ntpd_enabled/rule.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/linux_os/guide/services/ntp/service_chronyd_or_ntpd_enabled/rule.yml b/linux_os/guide/services/ntp/service_chronyd_or_ntpd_enabled/rule.yml index 103e08113f8..b94d2306a8f 100644 --- a/linux_os/guide/services/ntp/service_chronyd_or_ntpd_enabled/rule.yml +++ b/linux_os/guide/services/ntp/service_chronyd_or_ntpd_enabled/rule.yml @@ -4,7 +4,11 @@ documentation_complete: true title: 'Enable the NTP Daemon' description: |- + {{% if "debian" in product %}} + {{{ ocil_service_enabled(service="chrony") }}} + {{% else %}} {{{ ocil_service_enabled(service="chronyd") }}} + {{% endif %}} Note: The chronyd daemon is enabled by default.

{{{ ocil_service_enabled(service="ntpd") }}} @@ -23,7 +27,7 @@ description: |- for guidance which NTP daemon to choose depending on the environment used. rationale: |- - Enabling some of chronyd or ntpd services ensures + Enabling some of {{% if "debian" in product %}}chrony{{% else %}}chronyd{{% endif %}} or ntpd services ensures that the NTP daemon will be running and that the system will synchronize its time to any servers specified. This is important whether the system is configured to be a client (and synchronize only its own clock) or it is also @@ -60,5 +64,9 @@ references: srg: SRG-APP-000116-CTR-000235 ocil: |- + {{% if "debian" in product %}} + {{{ ocil_service_enabled(service="chrony") }}} + {{% else %}} {{{ ocil_service_enabled(service="chronyd") }}} + {{% endif %}} {{{ ocil_service_enabled(service="ntpd") }}}