From a608b1f0d7c26cd58f64e43c176c98a829fce30b Mon Sep 17 00:00:00 2001
From: Rich Megginson This role provides an easy way to configure systemd-journald logging
-service. This role provides an easy way to configure the systemd-journald
+logging service. See below Role allows system administrator to configure basic systemd-journald
-settings, through following set of variables which form role's public
-API. The role allows system administrator to configure basic
+systemd-journald settings, through the following set of variables which
+form the role's public API.Contents
-Requirements
Collection requirements
@@ -162,14 +162,19 @@ Collection requirements
ansible-galaxy collection install -vv -r meta/collection-requirements.yml
Role Variables
-
-
journald_persistent
- boolean variable which governs
+journald_persistent
- boolean variable which governs
where journald stores log file. When set to true
the logs
will be stored on disk in /var/log/journal/
. Defaults to
-false
, i.e. volatile
journal storage.
false
, i.e. volatile
journal storage.
+
+NOTE: The following settings apply to both
+persistent
and volatile
modes unless otherwise
+indicated.
journald_max_disk_size
- integer variable, in
megabytes, that governs how much disk space can journal files occupy
before some of them are deleted. No implicit value is configured by the
@@ -180,8 +185,8 @@
journald_max_file_size
- integer variable, in
-megabytes, describes maximum size of single journal file. No implicit
-configuration is set up by the role.
journald_per_user
- boolean variable, allows to
configure whether journald should keep log data separate for each user,
e.g. allowing unprivileged users to read system log from their own user
@@ -190,11 +195,13 @@
journald_persistent: true
.journald_compression
- boolean variable instructs
journald to apply compression to journald data objects that are bigger
-then default 512 bytes. Defaults to true
.
true
.
journald_sync_interval
- integer variable, in
-minutes, configures the time span after which journald synchronizes
+minutes, configures the time span after which journald synchronizes the
currently used journal file to disk. By default role doesn't alter
-currently used value.
journald_persistent: true
. You will get a warning if set
+otherwise.
journald_forward_to_syslog
- boolean variable,
control whether log messages received by the journal daemon shall be
forwarded to a traditional syslog daemon. Defaults to
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 077c0eb..a88e5db 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,13 @@
Changelog
=========
+[1.2.2] - 2024-01-16
+--------------------
+
+### Bug Fixes
+
+- fix: Compress applies to all storage modes, SyncInterval only to persistent (#58)
+
[1.2.1] - 2024-01-10
--------------------