Forum: CFEngine Help Subject: Re: "expand_scalars" in "copy_from"? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23643,23672#msg-23672
I do not encourage the use of preserving permissions based on the remote server's masterfiles. Cfengine is meant to allow the agent to work in the absence of a central authority. Preserving permissions breaks that independence. I believe you can do a single edit and expand if, instead of a template file, you keep the template in a variable. Have the promise empty the target file, insert the block of text and expand the variables. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine