- From: Денис Барышев <
>
- To:
- Subject: [chef] Re: How can we use the attribute "path" in cookbook_file ?
- Date: Thu, 22 Sep 2011 17:02:37 +0400
cookbook_file resource is used for retrieval of remote content. This means the file is downloaded from sever. To copy file on the local system just use file resource.
On Sep 22, 2011 3:37 PM, "Ilya" <
">
> wrote:
>
>
> 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.