[chef] How can we use the attribute "path" in cookbook_file ?


Chronological Thread 
  • From: Ilya < >
  • To: < >
  • Subject: [chef] How can we use the attribute "path" in cookbook_file ?
  • Date: Thu, 22 Sep 2011 15:36:19 +0400

Good day.
We have a problem. We are trying to copy a file from one folder to
another, using "cookbook_file" using the attribute "path". Example code:

cookbook_file "/opt/server.tgz" do
   path "/mnt/server/"
   source "server.tgz"
end

But the chef throws an error:

FATAL: Chef:: Exceptions:: FileNotFound: cookbook_file [/opt/
server.tgz] (copy_file_rep:: default line 9) had an error: cookbook
copy_file_rep does not contain file files/server.tgz

How can we use the attribute "path"?

Thank you!

--
Best Regards,
Ilya




Archive powered by MHonArc 2.6.16.

§