eve
eve copied to clipboard
pillar/device-steps.sh: fix global NTPSERVER var initialization
A few commits target the following:
- On NTP servers restart NTPSERVER variable should be assigned, otherwise chrony will be reloaded with same values.
- Handle absence of the DeviceNetworkStatus/global.json correctly and return default pool.
- Make NTP servers sorted and uniq
- Make error path of the
dialUnixWithChronyd()
cleaner by moving socket cleanup directly into the function. - Report DNS name of the NTP peer, so do the reverse lookup.