From 4b0ed8092c01970ea4e8f97dde201dc3e243bc0e Mon Sep 17 00:00:00 2001 From: John Castranio Date: Mon, 17 Aug 2026 09:29:14 -0400 Subject: [PATCH] plugins: add sysroles plugin to collect /var/log/sysroles.jsonl The RHEL System Roles sr_fingerprint module writes role execution fingerprint data to /var/log/sysroles.jsonl in JSONL format. This plugin collects that file for inclusion in sos reports. Assisted-by: Claude --- sos/report/plugins/sysroles.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sos/report/plugins/sysroles.py diff --git a/sos/report/plugins/sysroles.py b/sos/report/plugins/sysroles.py new file mode 100644 index 0000000000..3c8d998676 --- /dev/null +++ b/sos/report/plugins/sysroles.py @@ -0,0 +1,25 @@ +# Copyright (C) 2026 Red Hat, Inc. + +# This file is part of the sos project: https://github.com/sosreport/sos +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions of +# version 2 of the GNU General Public License. +# +# See the LICENSE file in the source distribution for further information. + +from sos.report.plugins import Plugin, RedHatPlugin + + +class SysRoles(Plugin, RedHatPlugin): + + short_desc = 'RHEL System Roles fingerprint data' + + plugin_name = 'sysroles' + packages = ('rhel-system-roles',) + files = ('/var/log/sysroles.jsonl',) + + def setup(self): + self.add_copy_spec('/var/log/sysroles.jsonl') + +# vim: set et ts=4 sw=4 :