On 06/21/2012 08:07 AM, Riccardo Murri wrote:
> Hi Ted,
> "cf_promises_validated" seems to contain the date of the last
> successful validation, so maybe this one instead?

I was under the impression that it worked like this.

When policy has changed and then been successfully validated 
/var/cfengine/masterfiles/cf_promises_validated is updated. Previously 
just touched, as of 3.3 it contains the date time stamp of the 
validation. This helps if remote agents clocks get skewed.

On a 3.3.0 system if I remove 
/var/cfengine/masterfiles/cf_promises_validated then run cf-agent -K the 
file is re-created with a new date time stamp. If I run cf-agent -K 
again there is no change. It only seems to be updated if policy changes 
in /var/cfengine/inputs. For example I add a blank line to promises.cf 
and run cf-agent -K and the date time stamp in 
/var/cfengine/masterfiles/cf_promises_validated gets updated.

Perhaps I have missed something in the policy that does some of that but 
I thought cf_promises_validated being updated was internal to CFEngine 
and was independent of the policy. Remote agents updating based on the 
"newness" of cf_promises_validated is of course policy dependent.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to