Project

General

Profile

Actions

Feature #14158

closed

Tailoring file support

Added by mattison ward about 8 years ago. Updated almost 6 years ago.


Description

Would it be possible to reference a tailoring file in the config so something like this could be run?

oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_rht-ccp_tailored --tailoring-file tailored-rhel6.xml

This puppet module could be changed to deliver the tailoring file and to make it different based on OS/hostgroup, etc https://github.com/theforeman/puppet-foreman_scap_client

One option would be to have a second parameter for foreman_scap_client that was 'custom options' ($2 below) that would let one pass any oscap options to the command such as --tailoring-file or anything else.

oscap xccdf eval --profile $1 $2

Actions

Also available in: Atom PDF