Forum: CFEngine Help
Subject: Re: Proper way to manage large unique files
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,26033,26036#msg-26036

(sorry, reposting under my own account)

Dave, what you could do in this case is to split the operation into two steps:

1. Copy the template file onto a local staging file that does not get edited. 
This way the large network copy operation would not be repeated every time, 
just when the source file changes.

2. Generate the final file from the copied template, by performing any 
replacements or edits necessary.

This approach is described here: 
https://cfengine.com/manuals/st-editing#Combining-copy-with-template-expansion

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

Reply via email to