Red Hat Training

A Red Hat training course is available for Red Hat Satellite

5.3. Filtering Content

Filters are created to prevent packages from being promoted to subsequent environments. Package names or regular expressions are added to the filter to create the rules to blacklist packages and the filter is then associated to entire products or individual repositories within any product.

5.3.1. Creating a Filter

These steps show how to create a filter.

Procedure 5.1. Creating a Filter

  1. Click ContentContent Views.
  2. Select the Content View you wish to filter.
  3. Click the ContentFilters subtab.
  4. Click on the +New Filter button.
  5. Type in the name of the new filter in the Name field.
  6. Choose a content type from the Content Type drop down menu.
  7. Choose whether the filter includes or excludes the selected content type by selecting the Type drop down menu.
  8. Optionally, enter a description in the Description field.
  9. Click the Save button to save your new filter.
Result:

A filter is created.

5.3.2. Adding Content to a Filter

Prerequisites

Requires a created Filter.

  1. Click ContentContent Views.
  2. Select the Content View you wish to filter.
  3. Click the ContentFilters subtab.
  4. Click a created package filter's name. Depending on the type of filter selected, the readout will be different.
    1. If the filter is made for Packages:
      1. Enter a package name and select a Detail value from the dropdown menu. Click +Add to add the package to the filter.
      2. Under the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, then choose the desired repositories and click Update Repositories.
    2. If the filter is made for package groups:
      1. Click on the Add subtab, and choose the desired package group. Click the +Add Package Group button.
      2. Under the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, then choose the desired repositories and click the Update Repositories button.
    3. If the filter is made for Errata:
      1. Click on the Add subtab. Check the desired boxes for the Errata type, whether is be Security, Enhancement, or Bugfix. Then choose a start date and end date. Click the +Add Errata button.
      2. Under the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, then choose the desired repositories and click the Update Repositories button.
    4. If the filter is made for Errata - Date and Type:
      1. Under the Erratum Date Range subtab, check the desired boxes for the Errata type, whether is be Security, Enhancement, or Bugfix. Then choose a start date and end date. Click the Save button.
      2. Under the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, then choose the desired repositories and click the Update Repositories button.
  5. Click the Publish New Version button. Enter a comment if desired, then click the Save button.
Result

Packages are added to the filter.

5.3.3. Removing Content from a Filter

Prerequisites

Requires a created Filter.

  1. Click ContentContent Views.
  2. Select the Content View you wish to filter.
  3. Click the ContentFilters subtab.
  4. Click a created package filter's name. Depending on the type of filter selected, the readout will be different.
    1. If the filter is made for Packages:
      1. Click the Packages subtab then click the Package Name checkbox next to the package to remove. Click the Remove Packages button to remove the package from the filter.
      2. Under the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, then choose the desired repositories and click the Update Repositories button.
    2. If the filter is made for package groups:
      1. Click the List/Remove subtab then click the Name checkbox next to the package group to remove. Click the Remove Package Group button to remove the package group from the filter.
      2. Under the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, then choose the desired repositories and click the Update Repositories button.
    3. If the filter is made for Errata:
      1. Click the List/Remove subtab then click the Errata ID checkbox next to the errata to remove. Click the Remove Errata button to remove the errata from the filter.
      2. Under the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, then choose the desired repositories and click the Update Repositories button.
    4. If the filter is made for Errata - Date and Type:
      1. Under the Erratum Date Range subtab, check the desired boxes for the Errata type, whether is be Security, Enhancement, or Bugfix. Then edit the start date and end date. Click the Save button.
      2. Under the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, then choose the desired repositories and click the Update Repositories button.
  5. Click the Publish New Version button. Enter a comment if desired, then click the Save button.
Result

Packages are removed from the filter.

5.3.4. Removing a Filter

These steps show how to remove a filter.

Procedure 5.2. Remove a Filter

  1. Click ContentContent Views.
  2. Select the Content View you wish to filter.
  3. Click the ContentFilters subtab.
  4. Click the checkbox next to the name of the package filter you wish to remove.
  5. Click the Remove Filters button.
Result:

A filter is removed.