Pulp – pulp-admin



Pulp – pulp-admin

0 0


pulppresentation

Pulp presentation

On Github Akegata / pulppresentation

Pulp

What is pulp?

Why pulp?

  • Current repo syncing messy
  • Red hat community developed
  • Ease of use

Installation

  • Puppet
  • Foreman
  • Physical installation

pulp-admin

Logging in

pulp-admin login -u admin
              

Creating a regular repo

pulp-admin rpm repo create --repo-id "repo ID" \
--display-name "Human readable name" \
--feed="URL" --relative-url "Publishing URL" \
--serve-http true --serve-https true
							

Example

pulp-admin rpm repo create --repo-id ScientificLinux6_Fastbugs_x86_64 \
--display-name "Scientific Linux 6 Fastbugs Updates x86_64" \
--feed http://ftp.scientificlinux.org/linux/scientific/6/x86_64/updates/fastbugs/
--relative-url ScientificLinux/6/Fastbugs/x86_64 --serve-http true --serve-https true
							

Creating a RHN repo

  • subscription-manager
  • cert, ca-cert, key

Example

pulp-admin -uadmin -padmin rpm repo create --repo-id RHEL6_OS_x86_64 \
--feed https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os \
--feed-ca-cert /etc/rhsm/ca/redhat-uep.pem \
--feed-key=/etc/pki/entitlement/2110182916095302994-key.pem \
--feed-cert=/etc/pki/entitlement/2110182916095302994.pem \
--relative-url "RHEL/6/OS/x86_64/" --serve-http "true" \
--serve-https "true" --display-name "RHEL6 OS x86_64"
							

Adding RPMs to existing repo

pulp-admin rpm repo uploads rpm --file "file name" --repo-id="repo ID"
							

Don't forget to publish the repo!

Syncing

pulp-admin rpm repo sync run --repo-id "repo ID"
							

Listing repos

pulp-admin rpm repo list
							

Copying repos (freezing)

pulp-admin rpm repo copy rpm --from-repo-id "source repo ID" \
--to-repo-id "target repo ID"
							

Scheduling

pulp-admin rpm repo sync schedules create --schedule P7D \
--repo-id "repo ID"
							
More info at pulp-user-guide.readthedocs.org.

Publishing

pulp-admin rpm repo publish run --repo-id "repo ID"
							

Accessing the repos

repo.unibet.com/pulp/repos

Rejected features

  • Consumer client
  • Nodes

Problems / limitations

  • Installation images
  • Non-RPM repos