Added new sosreport plugin

New sos report plugin added as separate RPM

Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com>
This commit is contained in:
Stephen Simpson
2025-02-20 16:16:37 -06:00
committed by Jonathon Anderson
parent 3b3851c6ca
commit 2852cd5e88
6 changed files with 103 additions and 20 deletions

39
include/sos/warewulf.py Normal file
View File

@@ -0,0 +1,39 @@
from sos.report.plugins import Plugin, IndependentPlugin
class Warewulf(Plugin, IndependentPlugin):
short_desc = 'Warewulf provisioning server'
plugin_name = 'warewulf'
services = ('warewulfd')
packages = ('warewulf')
def setup(self):
self.add_copy_spec([
"/var/lib/warewulf/overlays/",
"/usr/share/warewulf/overlays/",
"/var/log/warewulfd.log",
"/etc/warewulf/",
"/var/lib/dhcpd/",
"/etc/dhcp/",
"/etc/dnsmasq.d",
"/var/lib/dnsmasq/dnsmasq.leases"
])
self.add_forbidden_path([
"/var/lib/warewulf/overlays/wwinit/rootfs/warewulf/wwclient",
"/usr/share/warewulf/overlays/wwinit/rootfs/warewulf/wwclient"
])
self.add_cmd_output([
"wwctl node list",
"wwctl node list -a",
"wwctl container list",
"wwctl profile list",
"wwctl profile list -a",
"wwctl image kernels",
"wwctl version"
])
self.add_journal(units="warewulfd.service")