aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2018-12-28 12:37:25 -0500
committerBryn M. Reeves <bmr@redhat.com>2019-03-21 16:23:27 +0000
commitac4247c3964653232474b9a4f40b7010b41480bc (patch)
treecfab33a333e16341c04fb954a8bf106b1a136e2f
parent68bf5239d2fc0d9555e884f463f8cd88d64dd31f (diff)
downloadsos-ac4247c3964653232474b9a4f40b7010b41480bc.tar.gz
[redhat] Enable apache.log option for RH Sat preset
Sets the Red Hat Satellite preset to enable the apache 'log' option by default so that all of /var/log/httpd is collected Related: #1525 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/policies/redhat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py
index 3a759eda..a1f3b2ed 100644
--- a/sos/policies/redhat.py
+++ b/sos/policies/redhat.py
@@ -214,6 +214,7 @@ RHOCP_DESC = "OpenShift Container Platform by Red Hat"
RH_SATELLITE = "satellite"
RH_SATELLITE_DESC = "Red Hat Satellite"
+SAT_OPTS = SoSOptions(verify=True, plugopts=['apache.log=on'])
CB = "cantboot"
CB_DESC = "For use when normal system startup fails"
@@ -233,7 +234,7 @@ rhel_presets = {
RHOCP: PresetDefaults(name=RHOCP, desc=RHOCP_DESC, note=NOTE_SIZE_TIME,
opts=_opts_all_logs_verify),
RH_SATELLITE: PresetDefaults(name=RH_SATELLITE, desc=RH_SATELLITE_DESC,
- note=NOTE_TIME, opts=_opts_verify),
+ note=NOTE_TIME, opts=SAT_OPTS),
CB: PresetDefaults(name=CB, desc=CB_DESC, note=CB_NOTE, opts=CB_OPTS)
}