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 <[email protected]
<mailto:[email protected]>> wrote:
On Mon, May 7, 2018 at 10:55 AM, Brian Bouterse
<[email protected] <mailto:[email protected]>> 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
[email protected] <mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/pulp-dev
<https://www.redhat.com/mailman/listinfo/pulp-dev>
_______________________________________________
Pulp-dev mailing list
[email protected] <mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/pulp-dev
<https://www.redhat.com/mailman/listinfo/pulp-dev>
_______________________________________________
Pulp-dev mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-dev
_______________________________________________
Pulp-dev mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-dev