aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2021-01-13 17:03:08 -0500
committerJake Hunsaker <jhunsake@redhat.com>2021-01-19 11:44:55 -0500
commit0c93334379b23149fef7780f807b9b996c8fc73f (patch)
treeb718d256b86ca1e45ca415c2198afc466a60509e
parent9b459d58e7c5a1388ef53e4aab195d59a8f751e3 (diff)
downloadsos-0c93334379b23149fef7780f807b9b996c8fc73f.tar.gz
[tigervnc] Add new plugin
Adds a new plugin for the TigerVNC plugin Closes: #2347 Resolves: #2371 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/tigervnc.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/sos/report/plugins/tigervnc.py b/sos/report/plugins/tigervnc.py
new file mode 100644
index 00000000..d24d5708
--- /dev/null
+++ b/sos/report/plugins/tigervnc.py
@@ -0,0 +1,28 @@
+# Copyright (C) 2021 Red Hat, Inc., Jake Hunsaker <jhunsake@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 TigerVNC(Plugin, RedHatPlugin):
+
+ plugin_name = 'tigervnc'
+ packages = ('tigervnc-server',)
+
+ def setup(self):
+ self.add_copy_spec([
+ '/etc/tigervnc/vncserver-config-defaults',
+ '/etc/tigervnc/vncserver-config-mandatory',
+ '/etc/tigervnc/vncserver.users'
+ ])
+
+ self.add_cmd_output('vncserver -list')
+
+# vim: set et ts=4 sw=4 :