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

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