[chef] Re: Re: Re: Re: how to log-in to chef-server and create role normally?


Chronological Thread 
  • From: Ilya Maltsev < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: how to log-in to chef-server and create role normally?
  • Date: Wed, 07 Dec 2011 14:11:05 +0400

we want to ask about "Spice"

not be obtained using the method POST, such as

Spice.connection.post ("/ roles",: name => "awesome")

method GET (for example, Spice.connection.get ("/ clients")) runs OK.

Do not tell, what could be the problem?

On Втр, 2011-12-06 at 08:31 -0800, Daniel DeLeo wrote:
> -- 
> Dan DeLeo
> 
> 
> On Tuesday, December 6, 2011 at 3:22 AM, Ilya wrote:
> 
> > it seems that some sort of signing going on, but not substituted for
> the required headers (see attached screenshot)
> 
> Here's an example using RestClient:
> https://github.com/opscode/chef/blob/master/chef/lib/chef/cookbook_uploader.rb#L123-139
> 
> You can also try Dan Ryan's spice:
> https://github.com/danryan/spice/tree/
> 
> And Chef::REST should be working, try checking
> Chef::REST#sign_requests? to see if the object thinks it should sign
> the requests.
> 
> HTH,
> Dan 
-- 
Best regards,
Ilya Maltsev




Archive powered by MHonArc 2.6.16.

§