How to remove puppet modules synced/uploaded in the repository created on Red Hat Satellite v 6?
Environment
- Red Hat Satellite v 6
Issue
- How to remove puppet modules synced/uploaded in the repository created on Red Hat Satellite v 6?
- To this repository I can add puppet module, however I am not able to remove modules from this without destroying the repo.
Resolution
- The Red Hat Satellite v 6.1 provides a feature to delete puppet modules from Red Hat Satellite v 6 webui and command line.
Removing puppet modules from Red Hat Satellite v 6.1 webui
- Login to Red Hat Satellite webui
- Go to "Content" -> "Products" -> Click on the custom product where puppet repository is created.
- Click on "Repositories" tab under the product.
- Click on the repository name.
- Click on "Manage Puppet Modules" on top right side of the page.
- Select puppet module(s) from the list and click on "Remove Puppet Modules" button.
Removing Puppet module from Red Hat Satellite v 6.1 command line
- Get the ID of the puppet module which we need to remove
# hammer -u admin -p secret puppet-module list --repository-id YY --organization-label Org_Label --search XXXX
-------------------------------------|---------|-----------|--------
ID | NAME | AUTHOR | VERSION
-------------------------------------|---------|-----------|--------
dfd04218-3675-4e64-bc55-bbc8ea75ecaf | XXXX | ABC | 0.2.0
Replace XXXX with the puppet module name and YY with the organization ID where the puppet module is uploaded.
- Now remove the puppet module
# hammer -u admin -p secret repository remove-content --content-ids dfd04218-3675-4e64-bc55-bbc8ea75ecaf --id YY --organization-label Org_Label
Repository content removed
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.
Comments