timesync icon indicating copy to clipboard operation
timesync copied to clipboard

'timesync_chrony_sysconfig_options' is undefined"

Open zmaki opened this issue 9 months ago • 3 comments

When running the role on Oracle Linux 8 and 9 systems we get the error 'timesync_chrony_sysconfig_options' is undefined" on the task "timesync : Generate chronyd sysconfig file". we have found that in the /vars folder none of the OracleLinux_X.yml var files have timesync_chrony_sysconfig_options defined, on the contrary RedHat_X.yml files contain this variable.

Image Image

zmaki avatar Apr 09 '25 07:04 zmaki

@zmaki ideally the various OracleLinux_X.yml vars files would be symlinks to the corresponding RedHat_X.yml vars files. However, there is one difference in el7:

diff OracleLinux_7.yml RedHat_7.yml 
2c2
< timesync_ntp_provider_os_default: ntp
---
> timesync_ntp_provider_os_default: chrony

Do you have any idea why OracleLinux 7 uses ntp by default instead of chrony?

richm avatar Apr 10 '25 17:04 richm

@zmaki ideally the various OracleLinux_X.yml vars files would be symlinks to the corresponding RedHat_X.yml vars files. However, there is one difference in el7:

diff OracleLinux_7.yml RedHat_7.yml 
2c2
< timesync_ntp_provider_os_default: ntp
---
> timesync_ntp_provider_os_default: chrony

Do you have any idea why OracleLinux 7 uses ntp by default instead of chrony?

@bl4ckfir3 you added the Oracle 7 support in https://github.com/linux-system-roles/timesync/pull/157 - any idea why OL7 uses ntp but other el7 uses chrony?

richm avatar Apr 10 '25 18:04 richm

No, i can‘t remember why. I checked the Doku for ol7 and the default is atm chrony. I think it’s the best to switch it to chrony as default. And yes OracleLinux_X.yml var Files should be symlinks to there corresponding el files

bl4ckfir3 avatar Apr 12 '25 16:04 bl4ckfir3

No, i can‘t remember why. I checked the Doku for ol7 and the default is atm chrony. I think it’s the best to switch it to chrony as default. And yes OracleLinux_X.yml var Files should be symlinks to there corresponding el files

Thanks! Then I'll remove the OracleLinux_X.yml var Files and instead just make them symlinks to the corresponding el files

richm avatar Apr 14 '25 19:04 richm