[chef] Re: strage behaviour of remote_directory


Chronological Thread 
  • From: Grzegorz Marszałek < >
  • To:
  • Subject: [chef] Re: strage behaviour of remote_directory
  • Date: Thu, 10 Feb 2011 00:33:51 +0100


Wiadomość napisana przez Grzegorz Marszałek w dniu 2011-02-09, o godz. 23:01:

> Hello!
> 
> I'm trying to copy whole directory tree from cookbook files/default/far2 to 
> windows workstation.
> 
> Im using following code:
> 
> remote_directory "#{ENV["DFCLIENT"]}/opt/far2" do
> source "far2"
> files_backup 0
> purge true
> overwrite true
> end
> 
> funny thins is - that each 2 runs it DELETES everything in opt/far2 
> directory!
> 
> Is that bug, or maybe I don't understand how purge works?
> 
> Im using chef 0.9.12 on windows.
This behaviour happens only when purge is set to true. It seems, that chef 
tries to purge everything from directory!

---
Grzegorz Marszałek






Archive powered by MHonArc 2.6.16.

§