I think the problem might be with the content of the file itself.
Cookbooks have a concrete directory structure, and if you are
uploading a cookbook with a recipe I think you'll have to respect
that. Take a look at how a PUT request against the cookbook version
endpoint looks like in the Chef Server API [1] and you will get an
idea of what the Chef Server expects.

You might need to upload every file in the cookbook and configure the
Resource class with the appropriate path information, etc. Take as an
example the json in the Chef Server API documentation, and have a look
at the directory structure and root files in some simple Opscode
Community cookbook to have an idea of what needs to be uploaded.


HTH,

Ignasi


[1] http://docs.opscode.com/api_chef_server_cookbooks_version.html

On 22 July 2013 21:39, sebb <seb...@gmail.com> wrote:
> On 22 July 2013 19:34, Alex Tang <2degh...@gmail.com> wrote:
>> Ignasi,
>>
>> Very much appreciate all the information you provided.  I created
>> myrecipe.rb and tried upload it and received this error when it reached
>
> This is not relevant to the general Incubator list.
> Please drop the list in any further replies to this thread.
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org
> For additional commands, e-mail: general-h...@incubator.apache.org
>

Reply via email to