Satellite 6 How to enable automatic task cleanup

Solution Verified - Updated

Environment

  • Red Hat Satellite 6

Issue

  • The Red Hat Satellite 6 installer has a new feature (introduced in 6.3) to automate the cleanup of old tasks, how do I enable this?

Resolution

  • With the release of Red Hat Satellite 6.3, the installer now has a new feature to enable a cronjob to automatically remove old tasks

  • To enable this cronjob, run the installer with the following additional parameters:

      # satellite-installer --foreman-plugin-tasks-automatic-cleanup true --foreman-plugin-tasks-cron-line "00 15 * * *"
    
  • The value of the --foreman-plugin-tasks-cron-line can be adjust to the desired time and should adhere to the crontab specification. See man 5 crontab for more details.

  • To change the period of tasks to keep (i.e. delete tasks older that a certain number of days), please update /etc/foreman/plugins/foreman-tasks.yaml

  • For more information on how to manually remove tasks, see Satellite 6.2 tasks cleanup

Root Cause

  • In previous versions of Red Hat Satellite this feature is absent.
  • This new feature is not enabled by default to avoid unwanted tasks cleanup.
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.