User error --- No package rubygem-foreman_scap_client available

Hello,

New to Foreman, so am I sure my issue is user error…

Followed the latest install doc for Foreman+Katello, then the SCAP setup.

Issue –
After registering a host, when I attempt to run the Ansible Roles task I get this error:

*K [theforeman.foreman_scap_client : Install the foreman_scap_client package] *

  • 171:*
    fatal: [foreman-katello.mydomain.net]: FAILED! => {“changed”: false, “failures”: [“No package rubygem-foreman_scap_client available.”], “msg”: “Failed to install some of the specified packages”, “rc”: 1, “results”: []}

Per hitting the forum is sounds like the newly registered host can not access that installer. What repo should I add?

I added this repo as a Product:

Index of /plugins/latest/el9/x86_64 ALTHOUGH it only contains these clients, so not sure that is correct:

ansible-foreman_scap_client & ansible-foreman_scap_client

I think I set up all the Content correctly, but not sure the host is using it as it just says Enable Rep Sets. I have clicked on it then added then selected the above and said enable.

Picture2

Tried to add more images, but being a new user could only add one.

Hit me, what am I doing wrong/missing? What info can I gather for you SMEs?

Hi and welcome :slight_smile:
The repository you linked is the plugins Repo for Foreman/Katello itself, so this repo should only be enabled on the Foreman server and on additional smart-proxy servers you might have.
What you are looking for is the client repository. Those repos contain additional packages that are intended for the hosts you are managing. None of those packages are strictly necessary for basic host management, but are needed for certain use cases. The rubygem-foreman_scap_client package is also in there.
Here you can find the documentation for how to deploy policies via the Ansible method, which also links to the client repos.

Hope this helps

@areyus

173:

TASK [Apply roles] *************************************************************

174:

175:

TASK [theforeman.foreman_scap_client : Configure plugins repository (yum)] *****

176:

ok: [rocky-template.mydomain.net]

177:

178:

TASK [theforeman.foreman_scap_client : Configure plugins repository (apt)] *****

179:

skipping: [rocky-template.mydomainnet]

180:

181:

TASK [theforeman.foreman_scap_client : Set facts for deb-based OS] *************

182:

skipping: [rocky-template.mydomainnet]

183:

184:

TASK [theforeman.foreman_scap_client : Set facts for rpm-based OS] *************

185:

ok: [rocky-template.mydomainnet]

186:

187:

TASK [theforeman.foreman_scap_client : Install the foreman_scap_client package] ***

188:

fatal: [rocky-template.mydomainnet]: FAILED! => {“changed”: false, “failures”: [“No package rubygem-foreman_scap_client available.”], “msg”: “Failed to install some of the specified packages”, “rc”: 1, “results”: }

189:

PLAY RECAP *********************************************************************

190:

rocky-template.mydomainnet : ok=4 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0

191:

Exit status: 2

192:

StandardError: Job execution failed

UPDATE - it worked!

Issue seems to be that I created a Composite Content View not just a Content View.

Well that is after getting the correct client repo added.

THANKS SO MUCH FOR THE HELP!

1 Like

Im seeing the same error for .deb based clients.
I wasnt aware of additional requirements for the clients when running openscap, im not sure this is explicitly stated in the documentation or at least i didnt read it anywhere when setting up Foreman+Katello.

Is it still necessarry to depend on third party repos (ATIX)?
I looked at deb.theforeman.org and i cant see that it has any client stuff there which Index of /client has