Commit Graph

5 Commits

Author SHA1 Message Date
unkin-agent c6e411a027 fix(nginx): drop hostname from journald syslog targets (#584)
nginx's syslog output puts the hostname between the timestamp and the tag. journald's /dev/log parser expects the tag directly after the timestamp, so SYSLOG_IDENTIFIER is never set and the hostname and tag stay in MESSAGE.

- add `nohostname` to every `syslog:server=unix:/dev/log` access and error log target

Reviewed-on: #584
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-24 23:30:19 +11:00
unkin-agent 89bd97048e Send nginx logs to journald (#583)
nginx only logs to files, so its access and error logs never reach journald or VictoriaLogs, and proxy errors (e.g. consul.service.consul 502s) can't be diagnosed from vlogs.

- add a `journald` log_format with `$host`, request time and upstream addr/status/response time
- add syslog (`unix:/dev/log`) targets estate-wide: `tag=nginx_access` for access, `tag=nginx` for errors
- add the same syslog targets to the per-vhost logs in simpleproxy, edgecache, reposync, certbot and puppetboard, keeping the existing files

Reviewed-on: #583
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-24 21:32:06 +11:00
unkinben 2ef4fb0bf8 feat: update certbot module
- update documentation
- add option to notify services
- set haproxy role to notify the haproxy service
2024-10-07 13:40:53 +11:00
unkinben d9a2966ffd fix: certbot selinux and rsync
- fix rsync to use 755 permissions
- add rsync selinux booleans
2024-07-08 23:17:38 +10:00
unkinben bd5164fed3 feat: certbot reorg
- moved certbot into its own module
- added fact to list available certificates
- created systemd timer to rsync data to $data_dir/pub
- ensure the $data_dir/pub exists
- manage selinux for nginx
2024-07-08 22:33:11 +10:00