How to add to solo.rb cookbooks and site-cookbooks


#1

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


#2

resolved…

added chef_repo_path root

On Sun, Dec 7, 2014 at 4:32 PM, David Montgomery davidmontgomery@gmail.com
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