Bug #23242
closedforeman-installer does not install hammer openscap plugin
Description
foreman-installer should install hammer cli openscap plugin if you enable opencap
# foreman-installer --scenario katello --enable-foreman-plugin-openscap --enable-foreman-proxy-plugin-openscap --foreman-admin-password changeme -s Installing Done [100%] Success! * Katello is running at https://localhost.localdomain Initial credentials are admin / changeme * To install an additional Foreman proxy on separate machine continue by running: foreman-proxy-certs-generate --foreman-proxy-fqdn "$FOREMAN_PROXY" --certs-tar "/root/$FOREMAN_PROXY-certs.tar" The full log is at /var/log/foreman-installer/katello.log
# hammer scap-content Error: No such sub-command 'scap-content'. See: 'hammer --help'.
# rpm -q tfm-rubygem-hammer_cli_foreman_openscap package tfm-rubygem-hammer_cli_foreman_openscap is not installed
Updated by Ales Dujicek over 6 years ago
- Related to Feature #16802: Hammer CLI scap plugin install support via foreman-installer added
Updated by Marek Hulán over 6 years ago
I think that should only happen if you also install hammer which is not always the case. CC Ewoud, I think you had some PoC for the $subject, is this a duplicate?
Updated by Ales Dujicek over 6 years ago
tfm-rubygem-hammer_cli is installed as a dependency of katello-common, so it is always installed, isn't it?
Updated by Ewoud Kohl van Wijngaarden over 6 years ago
There is a --enable-foreman-cli-openscap parameter to the installer which should do what you want.
We currently do not automatically detect which plugins are needed (nor are there other hammer plugins in the installer). I am working on this (https://github.com/theforeman/puppet-foreman/pull/636 adds more classes) but my experiment on using datacat to automatically include the correct plugin classes doesn't appear to work (this code is only local). Not sure if that's ever going to work.
Updated by Ales Dujicek over 6 years ago
Aha! katello scenario doesn't know it:
# foreman-installer --scenario katello --enable-foreman-cli-openscap ERROR: Unrecognised option '--enable-foreman-cli-openscap' See: 'foreman-installer --help'
Thank you
Updated by Ewoud Kohl van Wijngaarden over 6 years ago
Ah right, the katello scenario. There we miss the option. You can try to add foreman::cli::openscap: true to your answers file /etc/foreman-installer/katello-answers.yaml (similar to https://github.com/theforeman/foreman-installer/blob/c9bede90d1ee0a2392fa829b09e60ff697b3bbf3/config/foreman-answers.yaml#L22) but it may cause issues with missing caches.
Updated by Ewoud Kohl van Wijngaarden over 6 years ago
- Project changed from Installer to Katello
- Category set to Installer
Updated by Justin Sherrill over 6 years ago
- Assignee set to Chris Roberts
- Translation missing: en.field_release set to 349
- Difficulty set to easy
chris, mind taking a look at this?
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello-installer/pull/612 added
Updated by Anonymous over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-installer|0d7f961829417df30651e7feb166d6b9b1be18f0.