theforeman / ansible-foreman_scap_client

GNU General Public License v3.0
4 stars 13 forks source link

No package rubygem-foreman_scap_client available #52

Open PiRomant opened 2 weeks ago

PiRomant commented 2 weeks ago

Ubuntu 22.04

TASK [theforeman.foreman_scap_client : Install the foreman_scap_client package] ***
fatal: []: FAILED! => {"changed": false, "msg": "No package matching 'ruby-foreman-scap-client' is available"}

Rocky Linux 9

TASK [theforeman.foreman_scap_client : Install the foreman_scap_client package] ***
fatal: []: FAILED! => {"changed": false, "failures": ["No package rubygem-foreman_scap_client available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
PiRomant commented 2 weeks ago

https://github.com/theforeman/ansible-foreman_scap_client/blob/124c524f988c82ea60eac6930f6c8c47b6fb4664/tasks/main.yml#L2-L16 https://github.com/theforeman/ansible-foreman_scap_client/blob/124c524f988c82ea60eac6930f6c8c47b6fb4664/defaults/main.yml#L13

Why there absent instead of present?

PiRomant commented 2 weeks ago

I have overridden foreman_scap_client_repo_state to present via Foreman and it helped. It's strange that this is not the default. image

adamruzicka commented 2 weeks ago

The only thing I can think of is that the role by default assumes that you are using it from foreman with katello, where the role makes assumption that you make all the necessary content available to the client through katello and therefore you wouldn't want the role to set up third party repositories and start pulling content from the internet.

PiRomant commented 2 weeks ago

How about using the repository in case it is not found in other repositories. Or at least a nice error message.

adamruzicka commented 4 days ago

How about using the repository in case it is not found in other repositories

That might still be unacceptable in the "katello is the canonical source of content" scenario.

Or at least a nice error message.

That might be easier said than done, but patches welcome.