Module NTP error

Problem:
Hi

After au fresh install of Foreman and ntp module i get this dnf error :

Error: Execution of ‘/bin/dnf -d 0 -e 1 -y install ntp’ returned 1: Error: Unable to find a match: ntp
Error: /Stage[main]/Ntp::Install/Package[ntp]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/dnf -d 0 -e 1 -y install ntp’ returned 1: Error: Unable to find a match: ntp

Expected outcome:

Puppet doesn’t match on right package. ntp name package for Centos8/Fedora is chrony and the package_name in this case is wrong.

Foreman and Proxy versions:
2.1
Foreman and Proxy plugin versions:

Distribution and version:
Centos 8
Puppet 6.18.0

Other relevant data:

Error: Execution of '/bin/dnf -d 0 -e 1 -y install ntp' returned 1: Error: Unable to find a match: ntp Error: /Stage[main]/Ntp::Install/Package[ntp]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install ntp' returned 1: Error: Unable to find a match: ntp Notice: /Stage[main]/Ntp::Config/File[/etc/ntp.conf]: Dependency Package[ntp] has failures: true Warning: /Stage[main]/Ntp::Config/File[/etc/ntp.conf]: Skipping because of failed dependencies Warning: /Stage[main]/Ntp::Config/File[/etc/ntp/step-tickers]: Skipping because of failed dependencies Warning: /Stage[main]/Ntp::Service/Service[ntp]: Skipping because of failed dependencies

This is part of the ntp Puppet module you’re using. I noticed that at least puppetlabs/ntp doesn’t support EL8. Look like EL8 dropped the NTP package and now only supports chrony.

1 Like

Hi,

Thank you very much for your answer and clarifications

I’m going back to RHEL7/CentOS7.

Best regards

Hi @ekohl is there still that issue with the ntp module ntp 9.2.0 in Red Hat 8.5 ? Thank you