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
- Click Content → Content Views.
- Select the Content View you wish to filter.
- Click the Content → Filters subtab.
- Click on the +New Filter button.
- Type in the name of the new filter in the Name field.
- Choose a content type from the Content Type drop down menu.
- Choose whether the filter includes or excludes the selected content type by selecting the Type drop down menu.
- Optionally, enter a description in the Description field.
- 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.
- Click Content → Content Views.
- Select the Content View you wish to filter.
- Click the Content → Filters subtab.
- Click a created package filter's name. Depending on the type of filter selected, the readout will be different.
- If the filter is made for Packages:
- Enter a package name and select a Detail value from the dropdown menu. Click +Add to add the package to the filter.
- 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.
- If the filter is made for package groups:
- Click on the Add subtab, and choose the desired package group. Click the +Add Package Group button.
- 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.
- If the filter is made for Errata:
- 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.
- 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.
- If the filter is made for Errata - Date and Type:
- 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.
- 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.
- 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.
- Click Content → Content Views.
- Select the Content View you wish to filter.
- Click the Content → Filters subtab.
- Click a created package filter's name. Depending on the type of filter selected, the readout will be different.
- If the filter is made for Packages:
- 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.
- 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.
- If the filter is made for package groups:
- 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.
- 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.
- If the filter is made for Errata:
- 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.
- 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.
- If the filter is made for Errata - Date and Type:
- 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.
- 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.
- 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
- Click Content → Content Views.
- Select the Content View you wish to filter.
- Click the Content → Filters subtab.
- Click the checkbox next to the name of the package filter you wish to remove.
- Click the Remove Filters button.
Result:
A filter is removed.