Hi Jay,<div><br></div><div>That's excellent news!  Please do let me know when it makes it into testing - that'll come in really handy.</div><div><br></div><div>Cheers,</div><div><br></div><div>Pete<br><br><div class="gmail_quote">
On 30 January 2013 13:53, Jay Dobies <span dir="ltr"><<a href="mailto:jason.dobies@redhat.com" target="_blank">jason.dobies@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I answered this in a similar thread but will add it here as well. We're working on that issue now. The 2.0 release used the modules.json API but not the releases.json API. It's being worked on right now and will be available in the 2.1 release in early April.<br>

<br>
If you're interested, I can let you know when it makes it to an testing build. If everything continues the way it's been going, that should be either this Friday or the following Friday's testing build.<div class="im">
<br>
<br>
<br>
On 01/30/2013 08:32 AM, Peter Hehn wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Yes, you're right Steven.  Looking at the request / responses to a<br>
puppetforge query / installation / installation w specific module<br>
version it looks simple enough that I might have a go at hacking<br>
together a simple cgi to spew json responses from mongodb (just to prove<br>
the concept)...<br>
<br>
puppet module search tomcat....<br>
<br>
GET /modules.json?q=tomcat HTTP/1.1<br></div>
Host: <a href="http://forge.puppetlabs.com" target="_blank">forge.puppetlabs.com</a> <<a href="http://forge.puppetlabs.com" target="_blank">http://forge.puppetlabs.com</a>><div><div class="h5"><br>
Accept: */*<br>
<br>
HTTP/1.1 200 OK<br>
Server: nginx/1.2.1<br>
Date: Tue, 29 Jan 2013 11:50:18 GMT<br>
Content-Type: application/json<br>
Content-Length: 2116<br>
Connection: keep-alive<br>
Status: 200 OK<br>
X-Frame-Options: sameorigin<br>
X-XSS-Protection: 1; mode=block<br>
X-Node: forgeweb01<br>
X-Revision: fb00b97e9f189bebf0bdb5bb8c6601<u></u>2dcc5acdc9<br>
<br>
[{"author":"llehmijo","full_<u></u>name":"llehmijo/tomcat7_rhel",<u></u>"name":"tomcat7_rhel","desc":"<u></u>Tomcat<br>
7 for RHEL<br>
6","project_url":"<a href="https://github.com/laurilehmijoki/tomcat7_rhel" target="_blank">https://<u></u>github.com/laurilehmijoki/<u></u>tomcat7_rhel</a>","releases":[{"<u></u>version":"1.4.0"},{"version":"<u></u>1.3.0"},{"version":"1.2.0"},{"<u></u>version":"1.1.1"},{"version":"<u></u>1.1.0"},{"version":"1.0.0"},{"<u></u>version":"0.3.3"},{"version":"<u></u>0.3.2"},{"version":"0.3.1"},{"<u></u>version":"0.3.0"},{"version":"<u></u>0.2.0"},{"version":"0.1.2"},{"<u></u>version":"0.1.1"},{"version":"<u></u>0.1.0"}],"version":"1.4.0","<u></u>tag_list":["rhel","centos","<u></u>tomcat7","tomcat"]},{"author":<u></u>"cloudfront","full_name":"<u></u>cloudfront/tomcat","name":"<u></u>tomcat","desc":"#<br>

Apache Tomcat Module<br>
#","project_url":"<a href="https://github.com/terrancesnyder/bigdata" target="_blank">https://<u></u>github.com/terrancesnyder/<u></u>bigdata</a>","releases":[{"<u></u>version":"0.1.0"}],"version":"<u></u>0.1.0","tag_list":["tomcat"]},<u></u>{"author":"yguenane","full_<u></u>name":"yguenane/tomcat6","<u></u>name":"tomcat6","desc":"This<br>

module aims to install tomcat6 on EL/Debian platforms using their<br>
respective package managers and not by compiling the source<br>
code","project_url":"<a href="https://github.com/Spredzy/puppet-tomcat6" target="_blank">https://<u></u>github.com/Spredzy/puppet-<u></u>tomcat6</a>","releases":[{"<u></u>version":"0.0.5"},{"version":"<u></u>0.0.3"},{"version":"0.0.1"}],"<u></u>version":"0.0.5","tag_list":["<u></u>tomcat","servlet","tomcat6"]},<u></u>{"author":"multiverse","full_<u></u>name":"multiverse/Tomcat","<u></u>name":"Tomcat","desc":"Module<br>

for deploying applications to<br>
Tomcat.","project_url":"","<u></u>releases":[{"version":"0.0.1"}<u></u>],"version":"0.0.1","tag_list"<u></u>:["tomcat","deployment","wars"<u></u>,"applications"]},{"author":"<u></u>jeffmccune","full_name":"<u></u>jeffmccune/tomcat","name":"<u></u>tomcat","desc":"This<br>

puppet module manages the [Apache Tomcat](<a href="http://tomcat.apache.org/" target="_blank">http://tomcat.apache.<u></u>org/</a>)<br>
Java Servlet<br>
implementation.","project_url"<u></u>:"<a href="http://github.com/puppetlabs/puppetlabs-tomcat" target="_blank">http://github.com/<u></u>puppetlabs/puppetlabs-tomcat</a>",<u></u>"releases":[{"version":"1.0.1"<u></u>},{"version":"1.0.0"}],"<u></u>version":"1.0.1","tag_list":["<u></u>web","java","jsp","webapp","<u></u>tomcat","service","servlet","<u></u>puppetlabs"]},{"author":"<u></u>camptocamp","full_name":"<u></u>camptocamp/tomcat","name":"<u></u>tomcat","desc":"Tomcat<br>

Puppet<br>
module","project_url":"<a href="http://github.com/camptocamp/puppet-tomcat" target="_blank">http://<u></u>github.com/camptocamp/puppet-<u></u>tomcat</a>","releases":[{"version"<u></u>:"0.0.2"},{"version":"0.0.1"}]<u></u>,"version":"0.0.2","tag_list":<u></u>["webservers","web","java","<u></u>jsp","languages"]}]<br>

<br>
<br>
puppet module install cloudfront/tomcat...<br>
<br>
GET /api/v1/releases.json?module=<u></u>cloudfront/tomcat HTTP/1.1<br></div></div>
Host: <a href="http://forge.puppetlabs.com" target="_blank">forge.puppetlabs.com</a> <<a href="http://forge.puppetlabs.com" target="_blank">http://forge.puppetlabs.com</a>><div class="im"><br>
Accept: */*<br>
<br>
HTTP/1.1 200 OK<br>
Server: nginx/1.2.1<br>
Date: Tue, 29 Jan 2013 11:50:46 GMT<br>
Content-Type: application/json<br>
Content-Length: 131<br>
Connection: keep-alive<br>
Status: 200 OK<br>
X-Frame-Options: sameorigin<br>
X-XSS-Protection: 1; mode=block<br>
X-Node: forgeweb01<br>
X-Revision: fb00b97e9f189bebf0bdb5bb8c6601<u></u>2dcc5acdc9<br>
<br>
{"cloudfront/tomcat":[{"file":<u></u>"/system/releases/c/<u></u>cloudfront/cloudfront-tomcat-<u></u>0.1.0.tar.gz","version":"0.1.<u></u>0","dependencies":[]}]}<br>

<br>
<br>
puppet module install cloudfront/tomcat --version 0.1.0...<br>
<br>
GET /api/v1/releases.json?module=<u></u>cloudfront/tomcat&version=0.1.<u></u>0 HTTP/1.1<br></div>
Host: <a href="http://forge.puppetlabs.com" target="_blank">forge.puppetlabs.com</a> <<a href="http://forge.puppetlabs.com" target="_blank">http://forge.puppetlabs.com</a>><div class="im"><br>
Accept: */*<br>
<br>
HTTP/1.1 200 OK<br>
Server: nginx/1.2.1<br>
Date: Tue, 29 Jan 2013 11:51:57 GMT<br>
Content-Type: application/json<br>
Content-Length: 131<br>
Connection: keep-alive<br>
Status: 200 OK<br>
X-Frame-Options: sameorigin<br>
X-XSS-Protection: 1; mode=block<br>
X-Node: forgeweb03<br>
X-Revision: fb00b97e9f189bebf0bdb5bb8c6601<u></u>2dcc5acdc9<br>
<br>
{"cloudfront/tomcat":[{"file":<u></u>"/system/releases/c/<u></u>cloudfront/cloudfront-tomcat-<u></u>0.1.0.tar.gz","version":"0.1.<u></u>0","dependencies":[]}]}<br>

<br>
On 30 January 2013 07:09, Steven Roberts <<a href="mailto:strobert@strobe.net" target="_blank">strobert@strobe.net</a><br></div><div><div class="h5">
<mailto:<a href="mailto:strobert@strobe.net" target="_blank">strobert@strobe.net</a>>> wrote:<br>
<br>
    okay, I stand corrected on the content not being published, pulp_puppet<br>
    publishes into a different spot than pulp_rpm so couldn't find it at<br>
    first.  Did some more digging and found it at:<br>
<br>
    /var/www/pulp_puppet/http/<u></u>repos/<br>
<br>
    after some more poking I also came across this blog post:<br>
    <a href="http://www.pulpproject.org/2012/08/29/mirroring-puppet-forge-with-pulp/" target="_blank">http://www.pulpproject.org/<u></u>2012/08/29/mirroring-puppet-<u></u>forge-with-pulp/</a><br>
<br>
    I think I am seeing what Peter is getting at now though.  the<br>
    'puppet module' tool looks like it is expecting some forge API foo<br>
<br>
    here is the bit from puppet's forge.rb:<br>
    response =<br>
    repository.make_http_request("<u></u>/modules.json?q=#{URI.escape(<u></u>term)}")<br>
<br>
    so looks like the puppet module tools are expecting some URL handling<br>
    in adiditon to the basic json content.<br>
<br>
    I am wondering if some of it is related to:<br>
    <a href="http://projects.puppetlabs.com/issues/5033" target="_blank">http://projects.puppetlabs.<u></u>com/issues/5033</a><br>
<br>
    Steve<br>
<br>
    On Tue, Jan 29, 2013 at 09:25:21PM -0800, Steven Roberts wrote:<br>
     > On Fri, Jan 18, 2013 at 09:55:16AM -0500, Jay Dobies wrote:<br>
     > ><br>
     > > >so in 2.0 we've got the repo side going and in theory could then<br>
     > > >point "puppet module" at the pulp server and get modules installed<br>
     > > >and updated on the pupept master that way.<br>
     > > ><br>
     > > >Steve<br>
     > ><br>
     > > That's exactly right.<br>
     ><br>
     > On Wed, Jan 30, 2013 at 12:13:20AM +0000, Peter Hehn wrote:<br>
     > > Hello,<br>
     > ><br>
     > > I've only recently stumbled across Pulp, and I'm loving the<br>
    repository<br>
     > > syncing side of it, but I wonder if I'm missing a trick...  I'm<br>
    hoping<br>
     > > to<br>
     > > access those modules using "puppet module install / search" but<br>
    as far<br>
     > > as I<br>
     > > can tell the JSON API just isn't there.<br>
     > ><br>
     > > Have I missed something in the documentation?  I can lend a hand if<br>
     > > that<br>
     > > task's outstanding (just thought I'd check before I re-invent)<br>
     ><br>
     > Jay, I decided to try out the puppet module use to see if I can<br>
     > replicate what Peter is seeing.<br>
     ><br>
     > I made a repo, uploaded a module and ran the publish.  but I'm not<br>
     > seeing any files in the published dir.<br>
     ><br>
     > Running 2.1.0-0.1.alpha<br>
     ><br>
     > Steve<br>
     ><br>
     > ______________________________<u></u>_________________<br>
     > Pulp-list mailing list<br></div></div>
     > <a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a> <mailto:<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a>><br>
     > <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/pulp-list</a><br>
<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------<br>
This email was sent by a company owned by Pearson plc, registered office<br>
at 80 Strand, London WC2R 0RL.  Registered in England and Wales with<br>
company number 53723.<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Jay Dobies<br>
Freenode: jdob @ #pulp<br>
<a href="http://pulpproject.org" target="_blank">http://pulpproject.org</a></font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/pulp-list</a><br>
</div></div></blockquote></div><br></div>

<br>
<hr><span style="font-family:'Times New Roman'">This email was sent by a company owned by Pearson plc, registered office at 80 Strand, London WC2R 0RL.  Registered in England and Wales with company number 53723.</span>