puppetlabs-ntp
puppetlabs-ntp copied to clipboard
openSUSE broken on recent versions of facter
Describe the Bug
Error: Systemd start for ntp failed!
journalctl log for ntp:
-- No entries --
Error: /Stage[main]/Ntp::Service/Service[ntp]/ensure: change from 'stopped' to 'running' failed: Systemd start for ntp failed!
journalctl log for ntp:
-- No entries --
When running a recent version of facter on opensuse, the ntp service name is not correctly matched because facter is now returning a string with different case so the hiera data file does not get matched. The string used to be "OpenSuSE" (facter 3.14.12) and now it is "openSUSE" (facter 4.4.1)
Expected Behavior
Correct service name of "ntpd" to be found by hiera and service started correctly.
Steps to Reproduce
Steps to reproduce the behavior:
- upgrade facter to version 4.4 or so
- run puppet on opensuse system
Environment
- Version Puppet 6.29.0, Facter 4.4.1
- Platform OpenSuse 15.5
Additional Context
I suppose the easiet solution is just to duplicate the hiera data file to match both cases. Pity we cannot just downcase all the facts as a more elegant solution.