Project

General

Profile

Actions

Bug #23242

closed

foreman-installer does not install hammer openscap plugin

Added by Ales Dujicek about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

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

Related issues 1 (0 open1 closed)

Related to Installer - Feature #16802: Hammer CLI scap plugin install support via foreman-installerClosedMarek Hulán10/05/2016Actions
Actions #1

Updated by Ales Dujicek about 6 years ago

  • Related to Feature #16802: Hammer CLI scap plugin install support via foreman-installer added
Actions #2

Updated by Marek Hulán about 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?

Actions #3

Updated by Ales Dujicek about 6 years ago

tfm-rubygem-hammer_cli is installed as a dependency of katello-common, so it is always installed, isn't it?

Actions #4

Updated by Ewoud Kohl van Wijngaarden about 6 years ago

It's not: https://github.com/theforeman/foreman-packaging/blob/93a35b8a0c68f4bb27fc6540940410ee44447f0d/packages/katello/katello/katello.spec#L137-L139

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.

Actions #5

Updated by Ales Dujicek about 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

Actions #6

Updated by Ewoud Kohl van Wijngaarden about 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.

Actions #7

Updated by Ewoud Kohl van Wijngaarden about 6 years ago

  • Project changed from Installer to Katello
  • Category set to Installer
Actions #8

Updated by Justin Sherrill about 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?

Actions #9

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/612 added
Actions #10

Updated by Anonymous about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF