Chef::Config

Hi,

I am used to using hosted chef. cache was in /var/chef/cache

When I use chef-solo cache was in cookbook directory. How do I override
Chef::Config[:file_cache_path] to got back to /var/chef/cache when using
chef-solo?

Thanks

Chef config used mixlin config under the hood , you should be able to
assign any value directly,

Chef::Config[:file_cache_path]= 'foo'

Also this is chef client related configuration, hence it might vary
depending upon chef version (hosted chef, opensource chef , private chef ..
chef server in general does not control this). All this configs are defined
in lib/chef/config.rb , and you can specify this in your client.rb file as
well, like
file_cache_path = '/var/chef/cache' (currently this is the default btw)

regards
ranjib

On Sat, Jul 6, 2013 at 10:53 PM, David Montgomery <davidmontgomery@gmail.com

wrote:

Hi,

I am used to using hosted chef. cache was in /var/chef/cache

When I use chef-solo cache was in cookbook directory. How do I override
Chef::Config[:file_cache_path] to got back to /var/chef/cache when using
chef-solo?

Thanks

David,

Just set it in solo.rb:

file_cache_path "/var/chef/cache"

HTH,
-- M

On 7 July 2013 07:53, David Montgomery davidmontgomery@gmail.com wrote:

Hi,

I am used to using hosted chef. cache was in /var/chef/cache

When I use chef-solo cache was in cookbook directory. How do I override
Chef::Config[:file_cache_path] to got back to /var/chef/cache when using
chef-solo?

Thanks