audit icon indicating copy to clipboard operation
audit copied to clipboard

The ruby files in files/ need to be moved into libraries/

Open lamont-granquist opened this issue 6 years ago • 0 comments

When Chef::Config[:no_lazy_load] = true is set in config.rb the files will not get synch'd and chef-client will error with:

LoadError
---------
cannot load such file -- /private/var/chef/cache/cookbooks/audit/files/default/handler/audit_report

The files that are in files/ or in templates/ need to be consumed by cookbook_file or template resources explicitly. Those aren't general-purpose file directories and lazy_loading breaks this behavior.

We found this in our own internal use at Chef where we had lazy loading turned on, and this prevented using the audit cookbook.

lamont-granquist avatar May 04 '18 17:05 lamont-granquist