On Mon, Dec 23, 2019 at 3:06 PM vince <
vince...@gmail.com> wrote:
>
> Ben - I've asked for changes in the last few years (and Matthew+Tom have made many) along the lines of making it a bit easier to do weewx with DevOps mindset. What in particular are you battling ?
>
I may be battling my own tendency to over-engineer more than anything.
I'm really looking at a hypothetical problem than a real one. What
I've done for now is set up a playbook to install today's current
version. As infrequently as I reinstall this machine (before
yesterday, I last did an install probably 10-ish years ago), that's a
fine approach. I can always update the playbook with a post-upgrade
config file as needed.
But in my ideal scenario, I'd like to see something like the way
Apache httpd and other daemons parse configs. So there would be
/etc/weewx/weewx.conf that would have the default settings and then I
could overwrite things as needed in /etc/weewx/weewx.local and/or
/etc/weewx/conf.d/*.
Another approach would be, at least on RPM-based systems, for the RPM
to just write an .rpmnew file and leave the existing config in place.
I'm not sure how much effort that would take to keep weewx happy—I
haven't looked in detail to see what sort of things get changed in the
config file between releases. Along this line, I'd briefly looked at
packaging weewx in the Fedora repos (or at least a COPR build), but
the amount of shell script in the RPM spec file changed my mind. :-)