%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.80 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/proc/self/root/usr/share/sosreport/sos/plugins/ |
Upload File : |
from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
class Composer(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"""Lorax Composer
"""
plugin_name = 'composer'
profiles = ('sysmgmt', 'virt', )
packages = ('composer-cli',)
def _get_entries(self, cmd):
entries = []
ent_file = self.collect_cmd_output(cmd)
if ent_file['status'] == 0:
for line in ent_file['output'].splitlines():
entries.append(line)
return entries
def setup(self):
self.add_copy_spec([
"/etc/lorax/composer.conf",
"/var/log/lorax-composer/composer.log",
"/var/log/lorax-composer/dnf.log",
"/var/log/lorax-composer/program.log",
"/var/log/lorax-composer/server.log",
])
blueprints = self._get_entries("composer-cli blueprints list")
for blueprint in blueprints:
self.add_cmd_output("composer-cli blueprints show %s" % blueprint)
sources = self._get_entries("composer-cli sources list")
for src in sources:
self.add_cmd_output("composer-cli sources info %s" % src)
# vim: set et ts=4 sw=4 :