Actions
Bug #27417
closedforeman_scap_client_cron not working for ansible deployments.
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1732818
Description of problem:
foreman_scap_client_cron not working for ansible deployments.
How reproducible:
always
Steps to Reproduce:
1. Create a host with scap configured via ansible.
2. Wait till scheduled cron time is complete.
Actual results:
- No reports generated even after scheduled cron time.
Expected results:
- Reports generated even after scheduled cron time.
Additional info:
- Issue seems to be occurring because of cron command in /etc/cron.d/foreman_scap_client_cron
- cat /etc/cron.d/foreman_scap_client_cron
- DO NOT EDIT THIS FILE MANUALLY
- IT IS MANAGED BY ANSIBLE
- ANY MANUAL CHANGES WILL BE LOST ON THE NEXT ANSIBLE EXECUTION #
- Executing foreman_scap_client from command line may be useful for debugging purposes.
- foreman_scap_client cron job
*/10 * * * * root "/bin/sleep 32; /usr/bin/foreman_scap_client 3 > /dev/null"
- after removing quotes the command runs fine.
- while same file when configured scap_client using puppet looks like
- cat /etc/cron.d/foreman_scap_client_cron
- DO NOT EDIT THIS FILE MANUALLY
- IT IS MANAGED BY PUPPET
- ANY MANUAL CHANGES WILL BE LOST ON THE NEXT PUPPET RUN #
- Executing foreman_scap_client from command line may be useful for debugging purposes.
- It may generate warnings due to a reference to a missing file.
- foreman_scap_client cron job
- Runs foreman_scap_client 1
*/30 * * * * root /bin/sleep 517 ; /usr/bin/foreman_scap_client 1 2>&1 | logger -t foreman_scap_client
Updated by Marek Hulán almost 6 years ago
- Subject changed from foreman_scap_client_cron not working for ansible deployments. to foreman_scap_client_cron not working for ansible deployments.
- Status changed from New to Closed
- Pull request https://github.com/theforeman/ansible-foreman_scap_client/pull/7 added
Updated by Ondřej Pražák almost 6 years ago
- Project changed from Ansible to OpenSCAP
- Fixed in Releases ansible-foreman_scap_client 0.0.3 added
Actions