Wrapper cookbook and cookbook_file resource gives FileNotFound error

If my base cookbook is something like this:

SSLCERT = node[:site][:SSLCert]
cookbook_file SSLCert do
    path "c:/tmp/#{SSLCert}"
    action :create_if_missing

And my wrapper has

override[:site][:SSLCert] = "cert.pfx"

I would like to specify the cert.pfx file in the wrapper cookbook's file/default/cert.pfx

However when I run the wrapper, I get

FileNotFound: cookbook_file[cert.pfx] does not contain a file at any of these locations....

How do I specify the cookbook file is in the wrapper and not in the base cookbook?


I think you might need to change your wrapers cookbook to have files plural with an s instead of file.

e.g. files/default/cert.pfx

Need Your Help

NSMutableString and (character)-encoding issue: getting \U00fc in case of ü

objective-c ios encoding character-encoding nsmutablestring

i am fetching my entity from coreData and saving the result of fetchrequest to an NSMutableString for text to speech.

Testing Mongoid scopes without actually hitting the db?

ruby-on-rails rspec mongoid factory-bot

Is there a smart way to test a scopes without hitting the db?