Skip to content

Commit

Permalink
[greenboot] seperate logs to a standalone plugin.
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Slutsky <[email protected]>
  • Loading branch information
eslutsky committed Sep 13, 2023
1 parent 6526985 commit 5319c3f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
26 changes: 26 additions & 0 deletions sos/report/plugins/greenboot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2023 Red Hat, Inc. Evgeny Slutsky <[email protected]>
# 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 Greenboot(Plugin, RedHatPlugin):
"""The greenboot plugin collects systemd service logs and configuration.
"""

short_desc = 'Greenboot'
plugin_name = 'greenboot'
services = (plugin_name, 'greenboot-healthcheck',
'greenboot-task-runner', 'redboot-task-runner',)
profiles = ('system',)

def setup(self):
self.add_copy_spec([
"/etc/greenboot/greenboot.conf",
])
6 changes: 2 additions & 4 deletions sos/report/plugins/microshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ class Microshift(Plugin, RedHatPlugin):
short_desc = 'Microshift'
plugin_name = 'microshift'
plugin_timeout = 900
packages = ('microshift', 'microshift-selinux', 'microshift-networking',
'microshift-greenboot')
services = (plugin_name, 'microshift-etcd.scope', 'greenboot-healthcheck',
'greenboot-task-runner', 'redboot-task-runner')
packages = ('microshift', 'microshift-selinux', 'microshift-networking',)
services = (plugin_name, 'microshift-etcd.scope',)
profiles = (plugin_name,)
localhost_kubeconfig = '/var/lib/microshift/resources/kubeadmin/kubeconfig'

Expand Down

0 comments on commit 5319c3f

Please sign in to comment.