You may also want to try using copy_type => "exists" (which is the
seed copy), combined with convergent file edits (cfe wont reapply
file-edits that are already present.
On Wed, Nov 17, 2010 at 7:31 AM, Seva Gluschenko
wrote:
> for example,
>
> classes:
> "do_it" not => fileexists("/tmp/foo");
for example,
classes:
"do_it" not => fileexists("/tmp/foo");
2010/11/16 William R. Lorenz :
> Hello,
>
> What's the best method to have cfengine create a file (and do a few
> edit_line's on it) without modifying it if it exists? For example, I
> would like cfengine to seed a file but not mod
Hello,
What's the best method to have cfengine create a file (and do a few
edit_line's on it) without modifying it if it exists? For example, I
would like cfengine to seed a file but not modify it again afterwards.
I suppose I'm looking for some kind of conditional that might help.
Thanks,
__