Feature #17229

Initiate OpenSCAP scan from web ui

Added by Ondřej Pražák 7 months ago. Updated 2 months ago.

Status:ClosedSpent time:-
Priority:Normal
Assigned To:-
Category:-
Target version:Foreman - Team Marek backlog
Difficulty: Bugzilla link:1339715
Found in release: Pull request:https://github.com/theforeman/community-templates/pull/340
Triaged:No
Story points-
Velocity based estimate-

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1339715
Description of problem:
Request enhancement of Foreman's OpenSCAP to start a scan of a selected host (or possibly more than one host) immediately via the Web UI.
There is a manual process via CLI, but being able to do this in the Web UI would be useful.


Related issues

Related to OpenSCAP - Feature #18734: Use Rex feature to initiate scans from UI Closed 03/01/2017

Associated revisions

Revision 51779491
Added by Marek Hulán 4 months ago

Fixes #17229 - add rex template to initiate SCAP scans

History

#1 Updated by Ondřej Pražák 7 months ago

  • Subject changed from Initiate OpenSCAP scan from web ui to Initiate OpenSCAP scan from web ui
  • Target version set to Team Marek backlog

#2 Updated by Shlomi Zadok 5 months ago

How about to add a remote_execution job template which runs "foreman_scap_client <policy_id>" and policy_id will be added from the host's policy ids (so to run the job per each policy, or choose policy)?
Let me know if this path makes sense :)

#3 Updated by Marek Hulán 5 months ago

I think that's the way to do it. I shared a template I used on last cfgmgmt talk via PR to community templates. I'll be happy if you test it and share your findings in the PR :-)

#4 Updated by Marek Hulán 4 months ago

We could also go further and define REX feature object and add a button somewhere on host page or even bulk action to trigger the template.

#5 Updated by Anonymous 4 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

#6 Updated by Marek Hulán 4 months ago

  • Status changed from Closed to New
  • Pull request https://github.com/theforeman/community-templates/pull/340 added

I'm reopening since there might be more than just a template. My apologies, I should have used Refs.

#7 Updated by Ondřej Pražák 3 months ago

  • Related to Feature #18734: Use Rex feature to initiate scans from UI added

#8 Updated by Marek Hulán 2 months ago

  • Status changed from New to Closed

The rest was implemented by #18734

Also available in: Atom PDF