Open mattqm opened 1 year ago
Setting 'ntpd' service name in data/Suse-family.yaml also fixes the problem. Does anyone know why this is different to opensuse - is/was sles using a different service name to opensuse?
seems SLES recommends Chrony - I could switch to that too - I've been upgrading these systems for about 10 years, so probably time to switch to Chrony.
I've switched to Chrony now, so this can be closed if no one else cares if this is broken.
class { 'chrony':
servers => $ntp_servers,
}
service { 'ntpd':
ensure => 'stopped',
enable => false,
before => Class['Chrony'],
}
Describe the Bug
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:
Environment
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.