Re: [Puppet-dev] Searching the inventory service

2011-11-28 Thread Carl Caum
On Mon, Nov 28, 2011 at 4:46 PM, Daniel Pittman wrote: > I think you need to set the `Accept` header in your request to > explicitly include a format that Puppet supports; try `pson` or `yaml` > as the format. (Yes, not actually a MIME type, just the one string.) > That solved it. Thanks. > >

Re: [Puppet-dev] Searching the inventory service

2011-11-28 Thread Daniel Pittman
I think you need to set the `Accept` header in your request to explicitly include a format that Puppet supports; try `pson` or `yaml` as the format. (Yes, not actually a MIME type, just the one string.) Daniel On Tue, Nov 22, 2011 at 15:41, Carl Caum wrote: > Or not.  After fighting with this f

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
Or not. After fighting with this for quite some time, I seem to be hitting bug #7294. I can use REST API with curl to search for nodes using facts, but can't do it from a Face. This is the error I'm getting from the GET: No specified acceptable formats (*/*) are functional on this machine Here

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
Wow. I left the issue and came back later to it to discover I had been editing /etc/puppet/auth.conf and using PE. I should have been modifying /etc/puppetlabs/puppet/auth.conf. It works now, thanks for the help. On Tue, Nov 22, 2011 at 2:02 PM, Carl Caum wrote: > > > On Tue, Nov 22, 2011 at

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
On Tue, Nov 22, 2011 at 1:26 PM, Brice Figureau < brice-pup...@daysofwonder.com> wrote: > On 22/11/11 20:05, Carl Caum wrote: > > [snip] > > I went ahead made the code in to a face and yes, it's sending the > > correct certificate now. > > However, I'm getting a 'Forbidden Request' error: > > Deny

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
On Tue, Nov 22, 2011 at 1:29 PM, Nick Lewis wrote: > On Tuesday, November 22, 2011 at 11:05 AM, Carl Caum wrote: > > > > On Mon, Nov 21, 2011 at 11:21 PM, Nick Lewis wrote: > > On Mon, Nov 21, 2011 at 9:01 PM, Carl Caum wrote: > > I have a question about using the inventory service's REST API.

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Nick Lewis
On Tuesday, November 22, 2011 at 11:05 AM, Carl Caum wrote: > > > On Mon, Nov 21, 2011 at 11:21 PM, Nick Lewis (mailto:n...@puppetlabs.com)> wrote: > > On Mon, Nov 21, 2011 at 9:01 PM, Carl Caum > (mailto:c...@puppetlabs.com)> wrote: > > > I have a question about using the inventory service's R

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Brice Figureau
On 22/11/11 20:05, Carl Caum wrote: > [snip] > I went ahead made the code in to a face and yes, it's sending the > correct certificate now. > However, I'm getting a 'Forbidden Request' error: > Denying access: Forbidden request: puppetagent.localdomain(127.0.0.1) > access to /facts/search [search

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
On Mon, Nov 21, 2011 at 11:21 PM, Nick Lewis wrote: > On Mon, Nov 21, 2011 at 9:01 PM, Carl Caum wrote: > > I have a question about using the inventory service's REST API. I have > this code: http://pastie.org/2901445 > > It uses the default OpenSSL::SSL::VERIFY_PEER but the peer certificate >

Re: [Puppet-dev] Searching the inventory service

2011-11-21 Thread Nick Lewis
On Mon, Nov 21, 2011 at 9:01 PM, Carl Caum wrote: > I have a question about using the inventory service's REST API.  I have this > code: http://pastie.org/2901445 > It uses the default OpenSSL::SSL::VERIFY_PEER but the peer certificate auth > fails. I believe it's because I'm not using > the pup

[Puppet-dev] Searching the inventory service

2011-11-21 Thread Carl Caum
I have a question about using the inventory service's REST API. I have this code: http://pastie.org/2901445 It uses the default OpenSSL::SSL::VERIFY_PEER but the peer certificate auth fails. I believe it's because I'm not using the puppet agent's certificate to connect to the master. How do I