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


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] How to add to solo.rb cookbooks and site-cookbooks
  • Date: Sun, 7 Dec 2014 16:32:17 +0800

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.

§