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 <[email protected]> wrote: > for example, > > classes: > "do_it" not => fileexists("/tmp/foo"); > > 2010/11/16 William R. Lorenz <[email protected]>: >> 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, >> _______________________________________________ >> Help-cfengine mailing list >> [email protected] >> https://cfengine.org/mailman/listinfo/help-cfengine >> > > > > -- > SY, Seva Gluschenko. > _______________________________________________ > Help-cfengine mailing list > [email protected] > https://cfengine.org/mailman/listinfo/help-cfengine > _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
