Forum: Cfengine Help
Subject: templating and need for action
Author: bglomm
Link to topic: https://cfengine.com/forum/read.php?3,19663,19663#msg-19663

Hi all,

I finally understood the benefits of templating/variable expanding only to face 
a new question.
I followed closely
http://www.cfengine.org/manuals/cf3-solutions.html#Templating
but I'm now experiencing the fact that the template get downloaded and expanded 
EACH time
cf-agent is running.
Logically that might make sense but I'm trying to use "if_repaired" in the 
calling methods section of the "test bundle" to determine if there is a class 
to be set to restart a corresponding service... so, since the template get 
always copied, always expanded, this class is always true consequently the 
service always restarted, even if the file doesn't need to be repaired :-(
What am I missing?

thnx for any hint

Bernhard

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

Reply via email to