EL drops systemd-journald-audit.socket from journald's Sockets=, so kernel audit records never reach the journal or the victorialogs upload. journald only picks up listen fds at start, so the drop-in needs a restart to apply.
- add a systemd-journald drop-in listing the audit socket when journald upload is enabled
- remove the drop-in when upload is disabled
- restart journald on drop-in add or removal via the drop-in notifying the service puppet-systemd already manages
Reviewed-on: #579
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
systemd-journal-upload never ships logs on SELinux-enforcing hosts: policy denies `systemd_journal_upload_t` `name_connect` to `http_port_t` (443), so uploads to VictoriaLogs fail.
- add local `journal_upload_local` SELinux module to `victorialogs::client::journald` on enforcing hosts
- order the module before `Service[systemd-journal-upload]`
Reviewed-on: #577
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
- create module class for journald clients
- ensure module class it used on all hosts
- use consul service address for insert/journald
Reviewed-on: #377