Skip to content

plugins: add sysroles plugin to collect /var/log/sysroles.jsonl - #4455

Closed
jcastran wants to merge 1 commit into
sosreport:mainfrom
jcastran:add-sysroles-plugin
Closed

plugins: add sysroles plugin to collect /var/log/sysroles.jsonl#4455
jcastran wants to merge 1 commit into
sosreport:mainfrom
jcastran:add-sysroles-plugin

Conversation

@jcastran

Copy link
Copy Markdown

Summary\n\nRHEL System Roles ships an sr_fingerprint Ansible module that writes role execution fingerprint data to /var/log/sysroles.jsonl in JSONL format (one JSON object per line, max 2 MB self-managed). This plugin collects that file for inclusion in sos reports.\n\nEach record contains: date, role_name, role_path, status, ansible_version, managed_node_distro, play_hosts_number, ansible_check_mode.\n\nThe plugin is scoped to Red Hat systems via RedHatPlugin and triggers on either the rhel-system-roles package or the presence of the log file.\n\n## Test plan\n\n- [ ] Install rhel-system-roles and run a role with write_log_file: true\n- [ ] Verify /var/log/sysroles.jsonl is present and contains records\n- [ ] Run sos report and confirm var/log/sysroles.jsonl appears in the archive\n- [ ] Confirm plugin is skipped when neither the package nor the file is present

The RHEL System Roles sr_fingerprint module writes role execution
fingerprint data to /var/log/sysroles.jsonl in JSONL format. This
plugin collects that file for inclusion in sos reports.

Assisted-by: Claude
@packit-as-a-service

Copy link
Copy Markdown

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo dnf install -y 'dnf*-command(copr)'
  • dnf copr enable packit/sosreport-sos-4455
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@arif-ali arif-ali added the Reviewed/Duplicate This issue or pull request already exists label Sep 3, 2026
@arif-ali

arif-ali commented Sep 3, 2026

Copy link
Copy Markdown
Member

closing as duplicate

@arif-ali arif-ali closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed/Duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants