Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1537540 - Review procedure to create Puppet environment for OpenSCAP
Summary: Review procedure to create Puppet environment for OpenSCAP
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Docs Install Guide
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Sergei Petrosian
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-23 13:32 UTC by Stephen Wadeley
Modified: 2019-09-26 18:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-15 13:07:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
yum install puppet-foreman_scap_client (31.06 KB, image/png)
2018-03-12 11:57 UTC, Ondřej Pražák
no flags Details

Description Stephen Wadeley 2018-01-23 13:32:24 UTC
Document URL: 

https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/host_configuration_guide/ch05s02#sect-Red_Hat_Satellite-Host_Configuration_Guide-Security_Compliance_Management_with_OpenSCAP-Installation-Importing_OpenSCAP_Puppet_Modules

Section Number and Name: 

Procedure 5.3. Import OpenSCAP Puppet Modules

Describe the issue: 

I hit the error described here:
https://bugzilla.redhat.com/show_bug.cgi?id=1478403#c6

The navigation steps also need updating. I noticed this needs changing:

s/Click Import, then Import from satellite.example.com./Click Import from satellite.example.com./

Suggestions for improvement: 

We can add the step "chown apache /etc/puppet/environments/production/modules

But lets first confirm if the directory should also be owned by apache. and if the sticky git should be set to ensure new subdirectories are owned correctly.

I think this would do it:

chmod u+s /etc/puppet/environments/ 

Additional information: 

I think Sergei is correct, there is an engineering issue here too.

Comment 1 Eric Helms 2018-01-25 01:01:31 UTC
Marek,

Do you mind commenting here on the use of the OpenSCAP puppet module?

Comment 2 Andrew Dahms 2018-02-21 13:24:28 UTC
Assigning to Sergei for review.

Comment 3 Marek Hulan 2018-03-06 07:13:33 UTC
OpenSCAP puppet module should be installed in shared directory, that means that all puppet environments will automatically include it. With puppet 3, it used to be /usr/share/puppet/modules/

Therefore any puppet enviornment that is imported from puppet master should list OpenSCAP module automatically. There's no need to create a new one.

IMHO 5.2.3. Step 1. is misleading and should not be needed at all. production environment was always created by default installation (againt at least with puppet 3). Step 2. is also misleading, since as I said, the foreman_scap_module should be present in any environment without any extra action as long as you have puppet-foreman_scap_client installed. That was not installed by default in 6.2 IIRC but in 6.3 it should be.

Comment 7 Ondřej Pražák 2018-03-12 11:57:43 UTC
Created attachment 1407158 [details]
yum install puppet-foreman_scap_client


Note You need to log in before you can comment on or make changes to this bug.