feat(system_baseline): let system_baseline_journal_max_use be empty to leave journald alone
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 2m33s
Molecule / molecule (pull_request) Successful in 7m29s

The role capped the persistent journal on every host with no way to opt
out, and wrote the value into the drop-in unchecked: an empty value
produced an empty SystemMaxUse=, and a bare number, a typo or a line
break went into the file as it was.

An empty system_baseline_journal_max_use now skips the journald task, as
an empty system_baseline_apt_daily_timeout skips its task: no drop-in
directory, no drop-in file and no restart of systemd-journald. A file an
earlier run wrote stays.

Any other value is checked before any change: infinity, or a number
followed by K, M, G or T. A bare number, a space and a line break stop
the run with a message that names the input. The default stays 200M.

Closes #401

Assisted-by: Claude Code:claude-sonnet-5-5
This commit is contained in:
Dragonish committed 2026-11-27 06:00:04 +00:00
1 parent 6a2060bd31
commit c51fa998b9
9 files changed
+117 -3

No files matched your search

@@ -0,0 +1,9 @@
---
minor_changes:
- >-
system_baseline - ``system_baseline_journal_max_use`` can be empty to leave journald alone: the role then writes no drop-in and does not
restart ``systemd-journald``. The default stays ``200M``.
- >-
system_baseline - ``system_baseline_journal_max_use`` is checked before any change: it must be empty, ``infinity`` or a number followed by
``K``, ``M``, ``G`` or ``T``. A value in any other form, which the role used to write into the drop-in as it was (a bare number, ``1.5G``,
a typo, a line break), now stops the run; an empty value used to write an empty ``SystemMaxUse=``.