From e0e241e9f8e650ac3e8fdc49574f6dfb06384b82 Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Thu, 25 Jun 2026 14:34:28 +0200 Subject: [PATCH] Add leech2 reporting drop-in directory Ship leech2/README.txt documenting the inputs/leech2/ drop-in directory, where *.json fragments extend the leech2 reporting configuration. The policy update distributes it to inputs/leech2/. Ticket: ENT-14205 Changelog: Added inputs/leech2/ drop-in directory for extending leech2 reporting Signed-off-by: Lars Erik Wik --- configure.ac | 3 +++ leech2/README.txt | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 leech2/README.txt diff --git a/configure.ac b/configure.ac index c06bb72ed4..21a66e395f 100644 --- a/configure.ac +++ b/configure.ac @@ -235,6 +235,9 @@ do done done +dnl leech2 reporting drop-in directory (ENT-14205) +MASTERFILES_INSTALL_TARGETS="$MASTERFILES_INSTALL_TARGETS $srcdir/leech2/README.txt" + AC_SUBST(MASTERFILES_INSTALL_TARGETS) diff --git a/leech2/README.txt b/leech2/README.txt new file mode 100644 index 0000000000..f349c08196 --- /dev/null +++ b/leech2/README.txt @@ -0,0 +1,13 @@ +leech2 reporting drop-in directory +================================== + +Files in this directory extend the leech2 configuration. + +leech2's base config (/var/cfengine/.leech2/config.json) includes every +*.json file found here, deep-merging each one into the configuration +(last writer wins). Use this to add or override reporting tables without +editing the shipped config.json, which package upgrades overwrite. + +To deploy a fragment to your hosts, place a *.json file under leech2/ in +your masterfiles; the policy update distributes it to inputs/leech2/ on +every host. Only *.json files are loaded; this README is ignored.