Modify the `wwctl container list` command to use -l to gather more information. Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com> Signed-off-by: Jonathon Anderson <janderson@ciq.com>
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
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 image list -l",
|
|
"wwctl profile list",
|
|
"wwctl profile list -a",
|
|
"wwctl image kernels",
|
|
"wwctl version"
|
|
])
|
|
|
|
self.add_journal(units="warewulfd.service")
|