Skip to content

Commit

Permalink
[presets] Add new preset for RHEL AI
Browse files Browse the repository at this point in the history
Add a new preset for RHEL AI, that captures
the output of Instructlab plugin, as well as
nvidia and bootc.

Related: RHEL-58169
Depends-on: #3804

Signed-off-by: Jose Castillo <[email protected]>
  • Loading branch information
jcastill committed Oct 25, 2024
1 parent 40ece39 commit 26daf68
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions sos/presets/redhat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@
NOTE_TIME = "This preset may increase report run time"
NOTE_SIZE_TIME = "This preset may increase report size and run time"

RHELAI = "rhelai"
RHELAI_DESC = "Red Hat Enterprise Linux AI"
RHELAI_OPTS = SoSOptions(
verify=True, all_logs=True,
enable_plugins=[
'instructlab',
'nvidia',
'bootc',
'containers_common'
])

RHELAI_NOTE = ("Collects RHEL AI related data, like Instructlab containers,"
"nvidia and bootc plugins.")

RHEL_PRESETS = {
AAPEDA: PresetDefaults(name=AAPEDA, desc=AAPEDA_DESC, opts=AAPEDA_OPTS,
note=AAPEDA_NOTE),
Expand All @@ -102,8 +116,9 @@
opts=_opts_verify),
RH_SATELLITE: PresetDefaults(name=RH_SATELLITE, desc=RH_SATELLITE_DESC,
note=NOTE_TIME, opts=SAT_OPTS),
CB: PresetDefaults(name=CB, desc=CB_DESC, note=CB_NOTE, opts=CB_OPTS)
CB: PresetDefaults(name=CB, desc=CB_DESC, note=CB_NOTE, opts=CB_OPTS),
RHELAI: PresetDefaults(name=RHELAI, desc=RHELAI_DESC, opts=RHELAI_OPTS,
note=RHELAI_NOTE)
}


# vim: set et ts=4 sw=4 :

0 comments on commit 26daf68

Please sign in to comment.