Skip to content

Instantly share code, notes, and snippets.

@flyemsafe
Last active January 23, 2020 22:01
Show Gist options
  • Save flyemsafe/e3289a36b14e31578f91613d3ce49d9a to your computer and use it in GitHub Desktop.
Save flyemsafe/e3289a36b14e31578f91613d3ce49d9a to your computer and use it in GitHub Desktop.
Adding SCAP profiles to Satellite

Download the latest SCAP profile

This was done on the Satellite server.

current_dir=$(pwd)
cac_release=0.1.48
scap_guide="scap-security-guide-${cac_release}"
wget https://github.com/ComplianceAsCode/content/releases/download/v${cac_release}/scap-security-guide-${cac_release}.zip
unzip scap-security-guide-${cac_release}.zip
rm -f scap-security-guide-${cac_release}.zip

Upload the profile to satellite

cd $scap_guide

# Upload RHEL8 SCAP profile
hammer scap-content create --organization ACME --location Orlando  --scap-file ssg-rhel8-ds-1.2.xml --title ssg-rhel8-ds-1.2
hammer scap-content create --organization ACME --location Orlando  --scap-file ssg-rhel8-ds.xml --title ssg-rhel8-ds

# Upload RHEL7 SCAP profile
hammer scap-content create --organization ACME --location Orlando  --scap-file ssg-rhel7-ds-1.2.xml --title ssg-rhel7-ds-1.2
hammer scap-content create --organization ACME --location Orlando  --scap-file ssg-rhel7-ds.xml --title ssg-rhel7-ds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment