[Pulp-dev] Pulp3 "auto-distribute" Feature?
Jeff Ortel
jortel at redhat.com
Tue May 8 15:11:23 UTC 2018
On 05/07/2018 10:19 AM, Kersom Moura Oliveira wrote:
> Is there a specific user case that requires that a publisher and a
> publication to be part of a distribution?
Just the publisher & publication, No.
The Distribution.publication links a publication to the Distribution and
is completely independent from Publisher. It determines which
publication the Distribution is distributing.
The Distribution.publication and Distribution.repository are only set
(always together) to support auto-distribute. That is "when this
publisher creates a new publication for this repository, update the
Distribution.publication = <new publication>".
>
> Thanks,
>
>
>
> On Mon, May 7, 2018 at 11:11 AM, Austin Macdonald <amacdona at redhat.com
> <mailto:amacdona at redhat.com>> wrote:
>
>
> On Mon, May 7, 2018 at 10:55 AM, Brian Bouterse
> <bbouters at redhat.com <mailto:bbouters at redhat.com>> wrote:
>
> I'm confused about the feature claim of the auto-distribute
> feature for Pulp 3.0 GA. The distribution object takes both
> 'repository' and 'publisher' as options currently...
>
> As a user, can I create a distribution that will
> auto-distribute any new repository version for repo 'foo'?
>
> As a user, can I create a distribution that will
> auto-distribute any publication produced by a specific
> publisher, e.g. 'baz'?
>
>
> Repository and publisher must both be set at the same time. Any
> time the publisher is used to create a new publication of the
> repository it is auto distributed.
>
> Not sure why the help text isn't showing up in the autogenerated docs.
> https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/serializers/repository.py#L203-L223
> <https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/serializers/repository.py#L203-L223>
>
> Heres how it works:
> https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/models/publication.py#L107-L112
> <https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/models/publication.py#L107-L112>
>
> Thanks,
> Brian
>
> _______________________________________________
> Pulp-dev mailing list
> Pulp-dev at redhat.com <mailto:Pulp-dev at redhat.com>
> https://www.redhat.com/mailman/listinfo/pulp-dev
> <https://www.redhat.com/mailman/listinfo/pulp-dev>
>
>
>
> _______________________________________________
> Pulp-dev mailing list
> Pulp-dev at redhat.com <mailto:Pulp-dev at redhat.com>
> https://www.redhat.com/mailman/listinfo/pulp-dev
> <https://www.redhat.com/mailman/listinfo/pulp-dev>
>
>
>
>
> _______________________________________________
> Pulp-dev mailing list
> Pulp-dev at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20180508/3fc299e6/attachment.htm>
More information about the Pulp-dev
mailing list