Friday, December 18, 2015
Managing Content views using Hammer commands:
1. To list all the available repositories,
# hammer repository list --organization "MyCompany"
---|-------------------------------------------------------------------|---------------------------------|--------------|---------------------------------------------------------------------------------
ID | NAME | PRODUCT | CONTENT TYPE | URL
---|-------------------------------------------------------------------|---------------------------------|--------------|---------------------------------------------------------------------------------
1 | Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.1 | Red Hat Enterprise Linux Server | yum | https://cdn.redhat.com/content/dist/rhel/server/7/7.1/x86_64/kickstart
4 | Red Hat Enterprise Linux 7 Server - RH Common RPMs x86_64 7Server | Red Hat Enterprise Linux Server | yum | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/rh-common/os
2 | Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server | Red Hat Enterprise Linux Server | yum | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os
3 | Red Hat Satellite Tools 6.1 for RHEL 7 Server RPMs x86_64 | Red Hat Enterprise Linux Server | yum | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6....
---|-------------------------------------------------------------------|---------------------------------|--------------|---------------------------------------------------------------------------------
2. To create a content view,.
# hammer content-view create --name "rhel70cv" \
--description "RHEL 7.0 Content View" --organization "MyCompany"
3. To add the required repositories to the content view,
# hammer content-view update --repository-ids 4,2,3 --name "rhel70cv" --organization "MyCompany"
4. Publish the content view so that its contents are locked,
# hammer content-view publish --name "rhel70cv" --organization "MyCompany"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment