How to use option Always use latest provided by Red Hat Satellite 6 with hammer command line while adding a content view in composite content view.
Environment
- Red Hat Satellite 6.x
Issue
- How to use option
Always use latestprovided by Red Hat Satellite 6 with hammer command line while adding a content view in composite content view. - How to achieve automatic selection of the latest version of the content view while adding into the composite content view via hammer.
Resolution
-
While adding a content view to a composite content view,Red Hat Satellite provides an option of
Always use latestwhich always pick the latest version of a content view. To achieve the same in hammer command line, use--latestoption while adding a content view to a composite content view:# hammer organization list <<===== To get the organization-id # hammer content-view list <<===== To get the content-view-id # hammer content-view component add --component-content-view-id <content_view_id> --latest --composite-content-view-id <composite_content_view_id> --organization-id <organization_id>
For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues
For more KB articles/solutions related to Red Hat Satellite 6.x Content View Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Content View Issues
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.