I want to use GIT repository path to be configured in knife.rb file.
What is the syntax for it ?
Basically, I want the cookbooks residing on GIT server to be called
whenever I run chef-client, and not the default cookbook path.
Any pointers ?
Chef is not git aware. You have to explicitly upload the cookbooks to chef
server and chef client can only fetch the recipes from there. If you are
using chef solo you can point the cookbook_path in solo.rb to a local git
repo.
On Jun 13, 2013 6:34 AM, "Ashutosh Narayan" aashutoshnarayan@gmail.com
wrote:
Hi Folks,
I want to use GIT repository path to be configured in knife.rb file.
What is the syntax for it ?
Basically, I want the cookbooks residing on GIT server to be called
whenever I run chef-client, and not the default cookbook path.
Any pointers ?
Or use Berkself, and point the individual cookbooks to their git repos in a Berksfile.
cassiano
On Thursday, June 13, 2013 at 12:57, Ranjib Dey wrote:
Chef is not git aware. You have to explicitly upload the cookbooks to chef server and chef client can only fetch the recipes from there. If you are using chef solo you can point the cookbook_path in solo.rb to a local git repo.
On Jun 13, 2013 6:34 AM, "Ashutosh Narayan" <aashutoshnarayan@gmail.com (mailto:aashutoshnarayan@gmail.com)> wrote:
Hi Folks,
I want to use GIT repository path to be configured in knife.rb file.
What is the syntax for it ?
Basically, I want the cookbooks residing on GIT server to be called
whenever I run chef-client, and not the default cookbook path.
Any pointers ?