Skip to content

Commit

Permalink
Merge pull request #12463 from mildas/rename_cron
Browse files Browse the repository at this point in the history
Rename `cron` package to `cronie` for RHEL10 product
  • Loading branch information
jan-cerny authored Oct 8, 2024
2 parents 35e9675 + 3e8ae2c commit 3f0f19a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{% if product in ["sle12", "sle15"] %}}
{{% if product in ["rhel10", "sle12", "sle15"] %}}
{{% set package_name = "cronie" %}}
{{% else %}}
{{% set package_name = "cron" %}}
Expand Down Expand Up @@ -42,5 +42,6 @@ template:
name: package_installed
vars:
pkgname: cron
pkgname@rhel10: cronie
pkgname@sle12: cronie
pkgname@sle15: cronie
15 changes: 13 additions & 2 deletions linux_os/guide/services/cron_and_at/service_cron_enabled/rule.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{{% if product in ["rhel8", "rhel9", "rhel10"] %}}
{{% set service_name = "crond" %}}
{{% else %}}
{{% set service_name = "cron" %}}
{{% endif %}}

documentation_complete: true

title: 'Enable cron Service'
Expand All @@ -6,7 +12,7 @@ description: |-
The <tt>crond</tt> service is used to execute commands at
preconfigured times. It is required by almost all systems to perform necessary
maintenance tasks, such as notifying root of system activity.
{{{ describe_service_enable(service="cron") }}}
{{{ describe_service_enable(service=service_name) }}}
rationale: |-
Due to its usage for maintenance and security-supporting tasks,
Expand Down Expand Up @@ -34,9 +40,14 @@ references:
nist-csf: PR.IP-1,PR.PT-3

ocil: |-
{{{ ocil_service_enabled(service="cron") }}}
{{{ ocil_service_enabled(service=service_name) }}}
template:
name: service_enabled
vars:
servicename: cron
servicename@rhel8: crond
servicename@rhel9: crond
servicename@rhel10: crond
packagename: cron
packagename@rhel10: cronie

0 comments on commit 3f0f19a

Please sign in to comment.