Forum: CFEngine Help
Subject: Re: "expand_scalars" in "copy_from"?
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,23643,23671#msg-23671

Neil, your point about locally caching the template file (separating copy and 
edit stages) is worth consideration.

But in the other direction there is an as yet unmentioned point in favour of a 
single "copy-then-edit".  With "copy_from", sites can make extensive use of 
"preserve" to maintain the permissions of the master file onto the copy on the 
clients.  When there is a set of several files, needing a variety of different 
permissions, using "preserve" is both very clean and very clear.

Sadly, forcing apart the copy and the edit phases of this suggested 
"copy-and-edit" into two separate stages makes that more awkward. Yes, it can 
be achieved by specifying the mode as an explicit number  in the cfengine 
promises.  But for a set of files, all that has to be spelt out explicitly by a 
mode clause per file; one is, alas, unable to use that clean, clear  "preserve" 
clause.

The existing mechanism denies this possibility.  It would be very nice if this 
were available to use.

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

Reply via email to