zhaoxinyu 3a612db733 Preload all recipes and templates when chef-client runs
Preload all recipes and templates when chef-client runs so as to
avoid 403 Forbidden errors in the middle of a long recipe run when
retrieving templates. Fix chef bug: CHEF-4253 CHEF-3045

Change-Id: I733b1a6ad3b83e733646fd369b5052424a84af7f
2014-02-05 18:05:27 +00:00

19 lines
484 B
Ruby

log_level :info
log_location '/var/log/chef-client.log'
#if $getVar('chef_url', '') != ""
chef_server_url '$chef_url'
#end if
#if $getVar('proxy', '') != ""
http_proxy '$proxy'
https_proxy '$proxy'
#end if
#if $getVar('ignore_proxy', '') != ""
no_proxy '$ignore_proxy'
#end if
#if $getVar('chef_node_name', '') != ""
node_name '$chef_node_name'
#end if
validation_client_name 'chef-validator'
# Using default node name (fqdn)
no_lazy_load true