Irgendwann am Fri, Nov 18, 2016 um 05:32:47PM +0000, schrieb Tobias Köck:
> Hi,
>
> I use Debian Jessie
>
> I get an
>
> [DEBUG 2016-11-18 18:28:19 main] Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=–force-confold install ruby-foreman-openscap'
> [ERROR 2016-11-18 18:28:20 main] Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=–force-confold install ruby-foreman-openscap' returned 100: Reading package lists…
> [ERROR 2016-11-18 18:28:20 main] Building dependency tree…
> [ERROR 2016-11-18 18:28:20 main] Reading state information…
> [ERROR 2016-11-18 18:28:20 main] E: Unable to locate package ruby-foreman-openscap
At which stage are you getting this error? Is this printer after
running foreman-installer? From what I see on my debian box, the
package isn't called 'openscap'.
> if I try to install openscap
>
> I have added the two apt sources like described in
>
> Foreman :: Quickstart
>
> So it should be available? Has somebody an idea?
What Michael said. It has been packaged for yum based distros.
···
On Sunday, November 20, 2016 at 11:16:11 PM UTC+2, Michael Moll wrote:
>
> On Fri, Nov 18, 2016 at 05:32:47PM +0000, Tobias Köck wrote:
> > [ERROR 2016-11-18 18:28:20 main] E: Unable to locate package
> ruby-foreman-openscap
>
> OpenSCAP didn't get packaged for Debian based distros, as AFAICT it's not
> usable anyway on non-RH based distros.
>
> Regards
> --
> Michael Moll
>
Hi,
I know this topic is 3 years old, but I was wondering if it is still the case today?
OpenSCAP now provides Scap Security Guides for non-EL based distributions (including Ubuntu, Debian, OpenSUSE) so it should be working somehow. Any idea?
Just failed to install due to “E: Unable to locate package ruby-foreman-openscap” and wondering if the mistake is running foreman on Ubuntu in the first place!?
On my Fedora 34 with scap-workbench I can remotely scan both debian 9 and 10 as well as Ubuntu 16.04, 18.04 and 20.04 so I figure someone has put some effort to make it work on debian. If your goal is just to scan your debian hosts maybe you can try a search for scap-workbench. I think it’s available in buster. If it is to do it from foreman maybe you have to wait for the foreman guys to answer your question.
Using foreman_openscap with Foreman installation on Ubuntu/Debian @upadhyeammit openscap plugin has never really been packaged for Ubuntu/Debian and it is unlikely to change unless we find someone who is willing to build and maintain those packages.
scanning Ubuntu/Debian systems
As @swefredde says, it is possible to scan Ubuntu/Debian systems with openscap. Due to the lack of debian packaging, foreman_scap_client package is not present in the deb repos. It should be possible to use the ATIX repo. I think @jtruestedt might have more details about that.
However the client-package has a different name in the deb-packages (at least in our repos), but this should be included in the ansible-role and the puppt-module as well or should be at least a variable, which can be overwritten.