[chef] Re: Re: resource for copy local file?


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Re: Re: resource for copy local file?
  • Date: Tue, 30 Aug 2011 20:29:43 -0700 (PDT)

I still got error: FATAL: Errno::ENOENT: No such file or directory - /httpfile
after I add only_if statement
 
remote_file "/httpfile" do
    source "http://wiki.opscode.com/display/chef/Home";
    mode "0666"
end
file "/httpfile.bak" do
    content IO.read("/httpfile")
    only_if {File.exists?("/httpfile")}    
end





Archive powered by MHonArc 2.6.16.

§