Project

General

Profile

Actions

Feature #30568

open

Add setting in GUI (Administer -> Settings) to set retention time for tasks/audits/reports

Added by Jonas Trüstedt over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Settings
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

At the moment there is a cronjob to automatically clean-up reports from config-management (mainly puppet). This is configured to delete all reports older than 7 days.

A similar cronjob can be created manually to cleanup Tasks (and probably Audits) using the right foreman-rake command ( for example documented here: https://access.redhat.com/solutions/2755731 ). We can also install the plugin --foreman-plugin-tasks-automatic-cleanup to enable a corresponding cronjob to do this.

However, there might be users/customers which are not happy with the default values of keeping config-reports 7 days and tasks 30 days. You can change this for puppet using the foreman-rake command from the documentation ( https://theforeman.org/manuals/1.24/index.html#3.5.4PuppetReports ) and adapt the foreman-rake for the tasks (and audits) as well.

But it would be nice if you have the option under Administer -> Settings to configure the retention time of the tasks, reports, audits and to configure the automatic cleanup on this way. Then it could be active by default and in the settings you should also have the possibility to turn it off completely.

This is not a critical feature but it would improve the customer experience to configure this without handling foreman-rake commands and to create/adapt cronjobs manually.

No data to display

Actions

Also available in: Atom PDF