Project

Profile

Help

Task #899

closed

Puppet Forge modules.json performs fuzzy search instead of exact search which gives undesired side-effects

Added by epienbroek about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

In our Puppet-based environment we are using various Puppet modules from the Puppet Forge.
With Katello/Pulp I'm now trying to only sync the Puppet modules which we are interested in
(in order to save disk space, save network bandwidth and reduce load on the Puppet Forge servers).
In the tool katello-disconnected there's an option called 'puppet_queries' which allows a search
filter to be set on the Puppet Forge repository.

In Pulp internally this results in URL's like https://forge.puppetlabs.com/modules.json?q=adrien-network
to be retrieved. I would expect only the Puppet module 'adrien-network' to be returned, but instead several
other Puppet modules are returned in the result set as well (20 in total for this specific example).

I've did some more research on the Puppet Forge API and found out that https://forgeapi.puppetlabs.com/v3/modules?query=adrien-network
gives the expected results for me. However, Pulp isn't able to process the output from this API call yet.

Would it be possible to change Pulp so that it uses the v3 forgeapi to search for modules?

Also available in: Atom PDF