-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[greenboot] seperate logs to a standalone plugin.
Signed-off-by: Evgeny Slutsky <eslutsky@redhat.com>
- Loading branch information
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2023 Red Hat, Inc. Evgeny Slutsky <eslutsky@redhat.com> | ||
# 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", | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters