Charm should only write out configs and call autocert on changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autocert-charm |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
When rolling out latest charm, which should only change the shipped out cron job, the autocert charm writes out all site configs in /etc/autocert/
| tracer: ++ queue handler reactive/
| 2020-06-23 02:54:50 INFO juju-log Invoking reactive handler: reactive/
| 2020-06-23 02:54:50 DEBUG juju-log Writing file /etc/autocert/
| ...
| 2020-06-23 02:55:00 INFO juju-log Running autocert...
| 2020-06-23 02:55:13 DEBUG config-changed OK: Service 'haproxy', cert 'mysite' is present and correct
| ...
| 2020-06-23 02:55:13 INFO juju-log Successfully ran autocert
This also happens on config-changed enabling 'run_weekdays'. I think it should only write out configs on disk if the contents have changed and also call autocert (which then triggers service reload) on config changes.
summary: |
- Charm should only write on configs and call autocert on changes + Charm should only write out configs and call autocert on changes |