Pulp is basically a open source repository management from where you can create a repository for your environment. You can copy a remote repository or can hosts your rpms.There are lot of commands which can help you managing your pulp repository.
Start, Stop and Restart pulp services:
# systemctl start pulp_celerybeat # systemctl start pulp_resource_manager # systemctl start pulp_workers # systemctl start httpd # systemctl stop pulp_celerybeat # systemctl stop pulp_resource_manager # systemctl stop pulp_workers # systemctl stop httpd # systemctl restart pulp_celerybeat # systemctl restart pulp_resource_manager # systemctl restart pulp_workers # systemctl restart httpd
Login to pulp Server:
# pulp-admin login -u admin (It will prompt for password)
Create a pulp repository:
# pulp-admin rpm repo create --repo-id rhel-7-server-rpms --feed=https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os --feed-ca-cert=/etc/rhsm/ca/redhat-uep.pem --feed-cert=/etc/pki/entitlement/7526879063412291612.pem --feed-key=/etc/pki/entitlement/7526879063412291612-key.pem --serve-http=true --relative-url=http://repos.nix.teo.earth/pulp/repos/rhel/7/7Server/x86_64/os --remove-missing=true --gpg-key=/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release # pulp-admin rpm repo sync run --repo-id=rhel-7-server-rpms
If there is no key things like that then you can make those command small as mentioned below:
# pulp-admin rpm repo create --repo-id=puppet_RHEL7_x86_64 --serve-http=true --feed=http://yum.puppetlabs.com/el/7/products/x86_64/ --display-name=puppet_RHEL7 # pulp-admin rpm repo sync run --repo-id=puppet_RHEL7_x86_64
Delete an existing repository:
# pulp-admin rpm repo delete --repo-id=puppet_RHEL7_x86_64
Update an existing repository:
In below command, We are updating certificates.
# pulp-admin rpm repo update --repo-id=rhel-7-server-rpms --feed-ca-cert=/etc/rhsm/ca/redhat-uep.pem --feed-key=/etc/pki/entitlement/7526879063412291612-key.pem --feed-cert=/etc/pki/entitlement/7526879063412291612.pem # pulp-admin rpm repo publish --repo-id=rhel-7-server-rpms
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.