[chef] Re: How to add to solo.rb cookbooks and site-cookbooks


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] Re: How to add to solo.rb cookbooks and site-cookbooks
  • Date: Mon, 8 Dec 2014 01:51:02 +0800

resolved....

added chef_repo_path root

On Sun, Dec 7, 2014 at 4:32 PM, David Montgomery < " target="_blank"> > wrote:
Hi,

How do I use the below specify cookbook and site-cookbook path?  This works => cookbook_path root + '/cookbooks'




I get the below error




root = File.absolute_path(File.dirname(__FILE__))

file_cache_path root

#cookbook_path root + '/cookbooks'
cookbook_path [root + '/cookbooks',root + '/site-cookbooks']
data_bag_path root + '/data_bags'
environments_path root + '/environments'

file_cache_path = '/var/chef/cache'
Chef::Config[:file_cache_path]= '/var/chef/cache'



Unexpected Error:
-----------------
TypeError: can't convert Array into String





Archive powered by MHonArc 2.6.16.

§