I’m trying to modify chrony.conf to add a gps source server from GPSD
driftfile /var/lib/chrony/drift
allow
# set larger delay to allow the NMEA source to overlap with
# the other sources and avoid the falseticker status
refclock SHM 0 refid GPS precision 1e-1 offset 0.9999 delay 0.2
refclock SOCK /var/run/chrony.ttyACM0.sock refid PPS
The only config way I read about was to modify the config.json file.
At the moment, there is no way to configure chrony.conf via config.json.
As a workaround, you can ssh into the host OS, mount the os as read-write using mount -o remount,rw / and edit chrony.conf.
Note that these changes won’t persist after a HUP.
Thank @zubairlk for the tip. I was able to edit the file. Didn’t get it to work but Chrony sees the entries when checking service status sync, I guess now it is a matter of figuring out the correct Chrony config entries.
Any possible roadmap for an api endpoint to edit the conf file?
We have plans to support a higher level declarative configuration format for balenaOS, and while we are currently working on it, its hard to say when this will be available to use in production, but stay tuned!