aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-06-23 17:55:00 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-06-23 17:55:00 +0100
commit886b1f31b751f2167090c154533af4433fffb617 (patch)
tree51f890845efec3455d05160deb66d1dc73346528
parentd6272e00fff2a600c850a06bf0b6d253a9319757 (diff)
downloadsos-886b1f31b751f2167090c154533af4433fffb617.tar.gz
[tomcat] update for tomcat6 and add password filtering
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/tomcat.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/sos/plugins/tomcat.py b/sos/plugins/tomcat.py
index 5e8399fd..e6135de9 100644
--- a/sos/plugins/tomcat.py
+++ b/sos/plugins/tomcat.py
@@ -20,12 +20,19 @@ class Tomcat(Plugin, RedHatPlugin):
plugin_name = 'tomcat'
- packages = ('tomcat5',)
+ packages = ('tomcat6',)
def setup(self):
self.add_copy_specs([
- "/etc/tomcat5",
- "/var/log/tomcat5"
+ "/etc/tomcat6",
+ "/var/log/tomcat6/catalina.out"
])
+ def postproc(self):
+ self.do_file_sub(
+ "/etc/tomcat6/tomcat-users.xml",
+ r"password=(\S*)",
+ r'password="********"'
+ )
+
# vim: et ts=4 sw=4