aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/policies/distros/redhat.py5
-rw-r--r--sos/presets/redhat/__init__.py15
2 files changed, 19 insertions, 1 deletions
diff --git a/sos/policies/distros/redhat.py b/sos/policies/distros/redhat.py
index fe74d0ee..6797d878 100644
--- a/sos/policies/distros/redhat.py
+++ b/sos/policies/distros/redhat.py
@@ -16,7 +16,8 @@ from sos.policies.auth import DeviceAuthorizationClass
from sos.report.plugins import RedHatPlugin
from sos.presets.redhat import (RHEL_PRESETS, RHV, RHEL, CB, RHOSP,
- RHOCP, RH_CFME, RH_SATELLITE, AAPEDA)
+ RHOCP, RH_CFME, RH_SATELLITE, AAPEDA,
+ AAPCONTROLLER)
from sos.policies.distros import LinuxPolicy, ENV_HOST_SYSROOT
from sos.policies.package_managers.rpm import RpmPackageManager
from sos.policies.package_managers.flatpak import FlatpakPackageManager
@@ -479,6 +480,8 @@ support representative.
if self.pkg_by_name("ovirt-engine") is not None or \
self.pkg_by_name("vdsm") is not None:
return self.find_preset(RHV)
+ if self.pkg_by_name("automation-controller-server") is not None:
+ return self.find_preset(AAPCONTROLLER)
for pkg in ['automation-eda-controller',
'automation-eda-controller-server']:
if self.pkg_by_name(pkg) is not None:
diff --git a/sos/presets/redhat/__init__.py b/sos/presets/redhat/__init__.py
index b3508dc9..2536dc0a 100644
--- a/sos/presets/redhat/__init__.py
+++ b/sos/presets/redhat/__init__.py
@@ -64,6 +64,18 @@ AAPEDA_NOTE = ('Collects \'eda\' user output for the containers_common plugin.'
' If you need more users, do not forget to add \'eda\' '
'to your own list for the \'rootlessusers\' option.')
+AAPCONTROLLER = 'aap_controller'
+AAPCONTROLLER_DESC = 'Ansible Automation Platform Controller'
+AAPCONTROLLER_OPTS = SoSOptions(
+ enable_plugins=['containers_common'],
+ plugopts=[
+ 'containers_common.rootlessusers=awx'
+ ])
+AAPCONTROLLER_NOTE = ('Collects \'awx\' user output for the containers_common'
+ 'pluging. If you need more users, do not forget to add'
+ '\'awx\' to your own list for the \'rootlessusers\' '
+ 'option.')
+
CB = "cantboot"
CB_DESC = "For use when normal system startup fails"
CB_OPTS = SoSOptions(
@@ -79,6 +91,9 @@ NOTE_SIZE_TIME = "This preset may increase report size and run time"
RHEL_PRESETS = {
AAPEDA: PresetDefaults(name=AAPEDA, desc=AAPEDA_DESC, opts=AAPEDA_OPTS,
note=AAPEDA_NOTE),
+ AAPCONTROLLER: PresetDefaults(name=AAPCONTROLLER, desc=AAPCONTROLLER_DESC,
+ opts=AAPCONTROLLER_OPTS,
+ note=AAPCONTROLLER_NOTE),
RHV: PresetDefaults(name=RHV, desc=RHV_DESC, note=NOTE_TIME,
opts=_opts_verify),
RHEL: PresetDefaults(name=RHEL, desc=RHEL_DESC),