Bug 1362665

Summary: SCAP puppet module should not use /var/spool/cron/root, but rather /etc/cron.d
Product: Red Hat Satellite Reporter: Rich Jerrido <rjerrido>
Component: SCAP PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Ondřej Pražák <oprazak>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: dsanzmor, ehelms, jcallaha, ktordeur, mhulan, oprazak
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
cron.d on client none

Description Rich Jerrido 2016-08-02 19:33:38 UTC
Description of problem:
The SCAP plugin uses /var/spool/cron/root, which is the root users crontab by default. As this file is managed via puppet, it is expected that users do not modify it. However, users frequently modify this file, and we'd overwrite their changes without warning. 

It is suggested to use a file in /etc/cron.d/, such as /etc/cron.d/foreman_scap_client, that way it can be ensured that the configuration for the SCAP client isn't intermingled with the users other cron jobs. 

Version-Release number of selected component (if applicable):
puppet-foreman_scap_client-0.3.3-10.el7sat.noarch



Expected results:


Additional info:

Comment 2 Ondřej Pražák 2016-11-23 09:01:20 UTC
Connecting redmine issue http://projects.theforeman.org/issues/16149 from this bug

Comment 3 Ondřej Pražák 2016-11-23 10:01:13 UTC
*** Bug 1305824 has been marked as a duplicate of this bug. ***

Comment 4 Bryan Kearney 2016-11-23 11:03:24 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16149 has been resolved.

Comment 6 Ondřej Pražák 2017-08-02 14:19:57 UTC
Created attachment 1308265 [details]
cron.d on client

Comment 7 Ondřej Pražák 2017-08-02 14:20:37 UTC
Verified.

Sat-6.3.0 snap 9.0

Comment 9 Satellite Program 2018-02-21 16:54:17 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336