[Pulp-dev] How does the Developer Ansible Playbook Identify Dependencies?

Austin Macdonald austin at redhat.com
Mon Dec 12 17:32:46 UTC 2016


I was confused about how this works recently, so I dug around to get a
better idea. I learned some things that might be helpful to you:


   - The normal repo file is not created for some reason for f24:
   https://github.com/pulp/devel/blob/master/ansible/roles/dev/
   tasks/main.yml#L15
   <https://github.com/pulp/devel/blob/master/ansible/roles/dev/tasks/main.yml#L15>
   - This is where we use rpmspec to look for Requires:
   https://github.com/pulp/devel/blob/ef8a10122eb7d64b20d6410ef32f768def147a26/ansible/library/pulp_facts.py#L42
   - This is where those deps are installed.
   https://github.com/pulp/devel/blob/master/ansible/roles/dev/tasks/main.yml#L88

Also, I do expect the dev role to install pulp-server dependencies, but I
do not expect the pulp_server role to run on a dev system.

On Sat, Dec 10, 2016 at 1:47 PM, Brian Bouterse <bbouters at redhat.com> wrote:

> I ran into this issue [0] where vagrant up (master of pulp/devel) was not
> installing Kobo. Kobo is listed[1] as a dependency in the spec file on
> 2.10-dev, and I thought the Ansible dev playbook inspected the spec file
> for each plugin and platform and dnf installed those items. I was surprised
> when it was not installed by the Ansible playbook.
>
> I thought this line would do it which installs pulp-server [2] via rpm
> which should bring in kobo as a dependency.
>
> * Do others expect ansible dev to install pulp-server dependencies listed
> in the pulp.spec
> * Any insight into why this didn't happen?
> * Can someone explain to me how our dependencies are supposed to be
> treated by the dev Ansible playbook?
>
> [0]: https://pulp.plan.io/issues/2481
> [1]: https://github.com/pulp/pulp/blob/60e85bf4383a8c0bc5ef054c42bfc3
> 928777fd80/pulp.spec#L382
> [2]: https://github.com/pulp/devel/blob/8604223e2e23e208aa69e40d26e43c
> 3c1f7c2c84/ansible/roles/pulp/tasks/pulp_server.yaml#L48
>
> Thank you!
> Brian
>
> _______________________________________________
> 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/20161212/230117ce/attachment.htm>


More information about the Pulp-dev mailing list