- From: Dreamcat4 <
>
- To:
- Subject: [chef] Re: chef-solo + cookbooks development
- Date: Wed, 20 Oct 2010 13:16:48 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=PHWOMQY+9DfwJO1IaC+BvyYnFJJNh+RVXb+bh9XDVt2M2nh89Bvyl/Xd4jPsiExTXR Hr4mcgM8hz7OkPzB/JctBFGAitXI5HHpASimZa0TWr8+qthgL8sWICkklG+iWOJmU+bM rZ87mSTZS0B+d9bwqC76yCmPYjddF5iKI46k4=
It should be possible to generate the metadata by running a rake task
(Rakefile in the chef-repo parent folder, a seperate git-repository for
containing your cookbooks).
Assuming its still there - as havent used it recently.
2010/10/20 Sébastien Nicouleaud
<
>:
>
I want to develop cookbooks and test them in virtualbox before using
>
them in production.
>
>
Having to upload my cookbooks to the chef server and run chef-client
>
from virtualbox everytime I make a little change seems like overkill...
>
>
So I clone my chef repository in virtualbox, write a solo.rb file to
>
make my cookbooks_path point to the cookbooks dir of my repository, and
>
a solo.json file to make it use my recipe.
>
>
But when I run chef-solo, it says my cookbook is not found. I suppose it
>
has something to do with the metadata.json file of my cookbook not being
>
generated.
>
>
So I try to generate the metadata using the knife cookbook metadata
>
subcommand, but knife now complains about the chef server authentication
>
(which I didn't set up since I wanted to use chef-solo).
>
>
So, my question is: is there a way to develop and test cookbooks locally
>
without any chef server ?
>
Or am I missing something ?
>
>
Seb
>
>
>
Archive powered by MHonArc 2.6.16.