Project

General

Profile

Feature #24902

allow specifying a package list when publishing a content view

Added by Chris Duryee 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Right now, a new content view version just gets whatever's in Library when published. This makes it difficult to replicate the same content view on multiple Katellos.

It would be better if an optional list of repos and packages can be specified to the publish call.

Associated revisions

Revision fcbd67c7 (diff)
Added by Chris Duryee 10 months ago

Fixes #24902 - pass in list of packages when publishing CV

Previously, the only way to control which packages land in content
view version was by using filters, or by managing the contents of the
Library versions of the repos.

This commit lets you optionally specify the exact package set you want
in your repository. It will look at the Library version of each repo,
and copy the list of packages into the CV version.

Example value for `repos_units` when calling
`/katello/api/v2/content_views/2/publish`:

```json
[ {
"label": "zoo",
"rpm_filenames": [
"walrus-5.21-1.noarch.rpm",
"gorilla-0.62-1.noarch.rpm"
]
}, {
"label": "a_longer_label",
"rpm_filenames": [
"facter-2.4.6-3.el7sat.x86_64.rpm",
"pulp-rpm-handlers-2.13.4.9-1.el7sat.noarch.rpm"
]
}
]
```

This works the same for custom and RH repos.

When used with https://github.com/Katello/katello/pull/7594, you can
set the CV version number as well as the list of packages in each
repo. This is useful for cloning a CV version from one Katello to
another.

Revision a4d21f85 (diff)
Added by Chris Duryee 10 months ago

Refs #24902 - apipie fixup for new CV publish api

The previous apipie definition was incorrect and caused problems with
hammer.

The Hash definition is implicit and only the keys inside need to be
defined.

History

#1 Updated by The Foreman Bot 11 months ago

  • Pull request https://github.com/Katello/katello/pull/7696 added

#2 Updated by Jonathon Turel 11 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.9.0

#3 Updated by The Foreman Bot 11 months ago

  • Status changed from New to Ready For Testing

#4 Updated by Chris Duryee 10 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by The Foreman Bot 10 months ago

  • Pull request https://github.com/Katello/katello/pull/7745 added

Also available in: Atom PDF