You should propably package these files. Then you will not have this
problem.
The replace option for the file type is NOT intended for what you are
trying.

Regards,

Stefan.

On Nov 29, 4:34 pm, Os <ozzim...@googlemail.com> wrote:
> Hi,
>
> I am using puppet 2.6.2 and stepped over a situation, I cannot explain
> to myself. So here is the deal:
> - I want to source several directories and files one time to a client
> - with the first puppet run, puppet should copy the files and
> directories to the client to the specified location
> - if files are changed in their content, puppet does not replace them
>
> Up to this point everything works fine, but here comes the problem:
> - if files are deleted, puppet "restores" them and copies them back
> from the master
>
> And thats what I do not want, I have tried several things but did not
> get the trick how to prevent puppet from being so thoughtful. Can
> anyone give me a hint how to stop puppet from replacing deleted files?
>
> Here is my puppet construct:
>     file { "/oracle/files/":
>         source => "puppet:///modules/oracle_prereq/ORACLE_BASE",
>         ensure => "directory",
>         recurse => "true",
>         replace => "false",
>         checksum => "none",
>     }
>
> I think one problem might be the checksums, I have no clue how to
> prevent puppet from checkuming those files!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to