On Wed, 23 May 2012 16:25:05 +0200 (CEST) daveseff wrote: 

n> I am distributing a large XML config file to a group of servers for an
n> application. some parameters in the file need to be unique to the
n> machine it's on. Because of it's size I would normally use a copy_from
n> promise from a master server, but if I use an edit_line to edit the
n> contents, that would conflict with the first promise.

n> Has anybody had this situation and what solutions did you come up with?

You may want to copy to an intermediate file (1) and use Augeas or
edit_line on a second copy (2) which then gets copied into the final
destination (3).  That way the network copy is done only when necessary
into (1), while Augeas/edit_line runs locally on (2), and finally (3) is
updated only when changes bubble up.

Ted
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to