From 16efa607c90c32e3a3dd7d2935ea2cc661937945 Mon Sep 17 00:00:00 2001 From: Ashish Humbe Date: Tue, 19 Mar 2019 16:42:41 +0000 Subject: [insights] update package names and paths Resolves: #1426 Signed-off-by: Ashish Humbe Signed-off-by: Bryn M. Reeves --- sos/plugins/insights.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/sos/plugins/insights.py b/sos/plugins/insights.py index a175f6f8..f4fd542f 100644 --- a/sos/plugins/insights.py +++ b/sos/plugins/insights.py @@ -13,16 +13,24 @@ class RedHatInsights(Plugin, RedHatPlugin): '''Collect config and log for Red Hat Insights ''' plugin_name = 'insights' - packages = ['redhat-access-insights'] + packages = ['redhat-access-insights', 'insights-client'] profiles = ('system', 'sysmgmt') - conf_file = '/etc/redhat-access-insights/redhat-access-insights.conf' + config = ( + '/etc/insights-client/insights-client.conf', + '/etc/redhat-access-insights/redhat-access-insights.conf' + ) def setup(self): - self.add_copy_spec(self.conf_file) + self.add_copy_spec([ + self.config, + # Legacy log file location + "/var/log/redhat-access-insights/*.log" + ]) + if self.get_option("all_logs"): - self.add_copy_spec("/var/log/redhat-access-insights/*.log*") + self.add_copy_spec("/var/log/insights-client/*.log*") else: - self.add_copy_spec("/var/log/redhat-access-insights/*.log") + self.add_copy_spec("/var/log/insights-client/insights-client.log") def postproc(self): self.do_file_sub( -- cgit