I’m trying to use remote_file to cache a local copy of a large package on a Windows share. How is this done?
I can’t get it to work with a drive-letter-based path, a UNC-based path, or a file: URL.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I worked out a trick that I think is pretty neat. I created the following definition (and put it in
definitions/default.rb):Definitions do not work quite the same way resources do, but this was easy to implement and does what I need it to do. The in-memory read makes it impractical for huge files, of course, but it allows Chef to check that the content is different before triggering an action on the file resource.