body common control
{
bundlesequence => { test1,test2 };
}
bundle agent test_method
{
reports:
any::
"XXXXXXXXXXXXXXXXXXXXXXXX";
}
bundle agent test1
{
methods:
any::
"daemon1"
usebundle => test_method;
"daemon2"
usebundle => test_method;
}
bundle agent test2
{
methods:
any::
"daemon3"
usebundle
=> test_method;
}
cf-agent -K
R: XXXXXXXXXXXXXXXXXXXXXXXX
R: XXXXXXXXXXXXXXXXXXXXXXXX
R: XXXXXXXXXXXXXXXXXXXXXXXX
because the method is called three times giving the report three times.
But instead, the method is only called one time:
cf-agent -K
R: XXXXXXXXXXXXXXXXXXXXXXXX
Why is this? And how can I make sure that the method is called each and every single time?
Jon
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "help-cfengine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/help-cfengine/0mPddg8ICqY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to help-cfengin...@googlegroups.com.
You are likely correct about sys.date.--Mike Weilgart
Sent from my iPod
You received this message because you are subscribed to a topic in the Google Groups "help-cfengine" group.I assumed that the -K option tells cfengine to ignore locking?--
Yes the Cfengine-thinking is unfamiliar, but it makes sense. However, I'm currently stumbling over this non-sequential logic:
One of the strengths of Cfengine is, as far as I can see, that it encourages abstraction and modularization. So I've implemented a generic service_reload method, that, as the name implies, reloads a given service whenever called.
Now I've got two independent bundles that require the reloading of the same service when something has changed. While a change in the first bundle triggers the reload, a subsequent change in the second one does not, because cfengine has already done the reload of this service and thinks it has converged already. Unfortunately the next time Cfengine runs, the second reload does not get triggered anymore, because the change has already occured in the previous Cfengine run. So the service is left running with an old configuration.
How to deal with situations like these without inventing unnecessary ballast/complexity? For modularization and isolation reasons I don't want to combine these two bundles as from a logical perspective, this doesn't make sense.
'ifelapsed' does not seem to help here.
@Mike, doesn't $(sys.date) always contain the date/time of the beginning of the Cfengine run?
Jon
To unsubscribe from this topic, visit https://groups.google.com/d/topic/help-cfengine/0mPddg8ICqY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to help-cfengine+unsubscribe@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengine+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengine+unsubscribe@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengine+unsubscribe@googlegroups.com.