Hi,
I need to use a file that is delivered with a recipe. I do not need to copy it out of the cookbook. It contains some sql needed to initialize a DB.
Problem 1 – I can’t find a way to refer to a file inside a cookbook (ex: <cookbook_path>/files/default/myfile.sql). I end up with something like #{Chef::Config[:file_cache_path]}/cookbooks/my_cookbook/files/default/myfile.sql. It works but doesn’t feel right.
Problem 2 – I need to use the cookbook_file resource and copy the file to tmp otherwise the file is not available locally. Again, this feels like this is not what I should be doing.
Cheers, Florian
From:
Dennis Benzinger [mailto:
Hello Florian,
Dennis Benzinger LEGAL DISCLAIMER
This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system. |
Archive powered by MHonArc 2.6.16.