aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPep Turro Mauri <pep@redhat.com>2014-07-08 13:37:48 +0200
committerPep Turro Mauri <pep@redhat.com>2014-07-08 14:04:37 +0200
commit2e1f199421e00cc30963f3fb022c5c173b18d509 (patch)
treec55e6640ed73757536cce5d3971eaa1b98f3e1cc
parentbf007f15c8e4595d560bd78343386834ef9e341f (diff)
downloadsos-2e1f199421e00cc30963f3fb022c5c173b18d509.tar.gz
[openshift] Don't collect all of /etc/openshift
Reduce glob based collection and aim at more specific paths. Signed-off-by: Pep Turró Mauri <pep@redhat.com>
-rw-r--r--sos/plugins/openshift.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/sos/plugins/openshift.py b/sos/plugins/openshift.py
index 56ffb19a..b4d6efa9 100644
--- a/sos/plugins/openshift.py
+++ b/sos/plugins/openshift.py
@@ -37,15 +37,18 @@ class Openshift(Plugin, RedHatPlugin):
def setup(self):
self.add_copy_specs([
- "/etc/openshift-enterprise-*",
+ "/etc/openshift-enterprise-release",
"/var/log/openshift/",
- "/etc/openshift/"
+ "/etc/openshift/*.conf",
+ "/etc/openshift/upgrade",
])
self.add_cmd_output("oo-diagnostics -v")
if self.is_broker():
self.add_copy_specs([
+ "/etc/openshift/quickstarts.json",
+ "/etc/openshift/plugins.d/*.conf",
"/var/www/openshift/broker/httpd/conf.d/*.conf",
"/var/www/openshift/console/httpd/conf.d/*.conf",
])
@@ -58,6 +61,11 @@ class Openshift(Plugin, RedHatPlugin):
if self.is_node():
self.add_copy_specs([
+ "/etc/openshift/node-plugins.d/*.conf",
+ "/etc/openshift/iptables.*.rules",
+ "/etc/openshift/web-proxy-config.json",
+ "/etc/openshift/env",
+ "/etc/openshift/cart.conf.d",
"/opt/%s/%s/root/etc/mcollective/" % (self.vendor, self.ruby),
"/var/log/httpd/openshift_log",
"/var/log/mcollective.log",
@@ -87,8 +95,4 @@ class Openshift(Plugin, RedHatPlugin):
r"(SESSION_SECRET=)(.*)",
r"\1*******")
- self.do_file_sub('/etc/openshift/htpasswd',
- r"(.*:)(.*)",
- r"\1********")
-
# vim: et ts=4 sw=4