How to remove a puppet module on Katello or Satellite 6
1. -Enter in hammer shell with the following command
#hammer -u admin -p <password> shell
2. -First we need to get our Organization ID with the following command
#hammer> organization list
---|----------|----------|------------
ID | NAME | LABEL | DESCRIPTION
---|------------|------------|------------
1 | Example | Example |
---|------------|-------------|------------
3.- We check the repositories to get the id of our puppet repository
#hammer> repository list --organization-id 1
---|---------------------------|------------------------|------------------------|--------------------------
ID | NAME | PRODUCT | CONTENT TYPE | URL
---|---------------------------|------------------------|------------------------|---------------------------
16 | V1 | Puppet Modules | puppet |
---|---------------------------|------------------------|-------------------------|-------------------------
4.- With the id of the repository now we can ask for the list of puppet modules we have in the repository with the following command
#hammer> puppet-module list --repository-id 16 --organization-id 1
-------------------------------------|-------------|------------|-----------------
ID | NAME | AUTHOR
-------------------------------------|-------------|------------|-----------------
0df292e4-06f5-4712-84ae-8a467c4597b5 | sudoers | Mario -------------------------------------|-------------|------------|-----------------
5.Remove the module copy the id and run the following command to remove the module
#hammer> repository remove-content --content-ids 0df292e4-06f5-4712-84ae-8a467c4597b5 --id 16 --organization-id 1
#hammer -u admin -p <password> shell
2. -First we need to get our Organization ID with the following command
#hammer> organization list
---|----------|----------|------------
ID | NAME | LABEL | DESCRIPTION
---|------------|------------|------------
1 | Example | Example |
---|------------|-------------|------------
3.- We check the repositories to get the id of our puppet repository
#hammer> repository list --organization-id 1
---|---------------------------|------------------------|------------------------|--------------------------
ID | NAME | PRODUCT | CONTENT TYPE | URL
---|---------------------------|------------------------|------------------------|---------------------------
16 | V1 | Puppet Modules | puppet |
---|---------------------------|------------------------|-------------------------|-------------------------
4.- With the id of the repository now we can ask for the list of puppet modules we have in the repository with the following command
#hammer> puppet-module list --repository-id 16 --organization-id 1
-------------------------------------|-------------|------------|-----------------
ID | NAME | AUTHOR
-------------------------------------|-------------|------------|-----------------
0df292e4-06f5-4712-84ae-8a467c4597b5 | sudoers | Mario -------------------------------------|-------------|------------|-----------------
5.Remove the module copy the id and run the following command to remove the module
#hammer> repository remove-content --content-ids 0df292e4-06f5-4712-84ae-8a467c4597b5 --id 16 --organization-id 1
Comments
Post a Comment