Problem:
I’m trying to run openscap from my Satellite server using Ansible to scan a remote host. Running the role “theforeman.foreman_scap_client” works flawlessly. Everything is configured on the remote host automatically after the role is run so that I can execute “foreman_openscap_client 1” on the remote host and it starts the scan without error.
I just found out that there is a bug in foreman_openscap for versions older than 2.0.0. that prevents running the scan via Ansible from the Satellite via the “Run OpenSCAP Scans” job template. I need to upgrade just that plugin to get passed this error. In the About page on the Foreman UI, my version says,
" foreman_openscap Foreman plug-in for managing security compliance reports slukasik@redhat.com 1.0.4"
There is no guidance on getting from 1.0.4 to 2.0.0. for this plugin. I installed the plugin using the foreman-installer tool: foreman-installer --enable-foreman-plugin-openscap
Looking at the help page from the tool, it doesn’t tell you how to upgrade a plugin. I have reinstalled the plugin hoping it would pull the latest version. But it doesn’t.
This website says there is an RPM for foreman_openscap, but doesn’t tell you how to download it or install it:
https://projects.theforeman.org/projects/foreman/wiki/List_of_Plugins
Expected outcome:
Instructions on how to upgrade a plugin when a bug is fixed in a newer version and an upgrade is needed to fix the bug. Right now I am only able to scan hosts manually.
Foreman and Proxy versions:
Foreman version: 1.23.1
Foreman Proxy version: 1.23.0
Foreman and Proxy plugin versions:
|foreman-tasks| |0.16.2|
|foreman_ansible| |3.0.5|
|foreman_openscap| |1.0.4|
|foreman_remote_execution| |1.8.2|
|katello| |3.13.1|
Distribution and version:
Running CentOS 7.6
Other relevant data:
N/A