From 3d999a08e72834cf9a6562102af13dd3c02fbbdb Mon Sep 17 00:00:00 2001 From: Packet Please Date: Thu, 29 Aug 2024 00:43:21 +0200 Subject: [PATCH] system: make log_size configurable --- group_vars/all/general.yml | 1 + roles/cfg_openwrt/templates/common/config/system.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/group_vars/all/general.yml b/group_vars/all/general.yml index 60a7e2749..1262fca4b 100644 --- a/group_vars/all/general.yml +++ b/group_vars/all/general.yml @@ -1,6 +1,7 @@ --- zonename: 'Europe/Berlin' timezone: 'CET-1CEST,M3.5.0,M10.5.0/3' +log_size: 64 # TODO: find a second good DNS upstream in Berlin dns_servers: diff --git a/roles/cfg_openwrt/templates/common/config/system.j2 b/roles/cfg_openwrt/templates/common/config/system.j2 index 5ecedd0ae..bf0da917b 100644 --- a/roles/cfg_openwrt/templates/common/config/system.j2 +++ b/roles/cfg_openwrt/templates/common/config/system.j2 @@ -3,7 +3,7 @@ config system option zonename '{{ zonename }}' option timezone '{{ timezone }}' option ttylogin '0' - option log_size '64' + option log_size '{{ log_size }}' option urandom_seed '0' option compat_version '9.9' # hardcoded to a bbb-configs exclusive version identifier, matches patch in image builder, because we dont retain device config. {% if role == 'corerouter' or role == 'gateway' %}