Yeah, so if I recall correctly it used to check if the mtime of the file on the hub was newer, if it was it would update. Now it uses digest so it just looks for content difference, it doesn't actually compare the timestamps for what's newer. Date stamp is just sufficiently different and likely to assist a human looking at the file more than a uuid or something.
What command are you running and expecting am update to happen.
Yes! That is correct. I deleted it from /var/cfengine/masterfiles. So, I deleted /var/cfengine/inputs/cf_promises_validated*, AND from /var/cfengine/masterfiles/. cf_promises_validated is re-created with a new timestamp in /var/cfengine/masterfiles, not in inputs/ and it still doesn't update. I think I might edit failsafe.cf on the client and comment out the checks for cf_promises_validated, just as a test.
ah, yes... I see the copy_from body definition. But I don't see the where u_rcp is defined? It sounds like I need to re-read about bodies. Thanks for pointing me in the right direction.
% cf-locate u_rcp /var/cfengine/masterfiles
definition for u_rcp found in /var/cfengine/masterfiles/failsafe.cf on line 198
body copy_from u_rcp(from,server)
{
source => "$(from)";
compare => "digest";
trustkey => "false";
!am_policy_hub::
servers => { "$(server)" };
}
#########################################################
% cf-locate main /var/cfengine/masterfiles
definition for main found in /var/cfengine/masterfiles/promises.cf on line 20
bundle agent main
{
reports:
am_policy_hub::
"--> I'm a policy hub."
comment => "Display message on screen/email",
handle => "main_reports_i_am_hub";
!am_policy_hub::
"--> $(sys.policy_hub) is my policy hub."
comment => "Display message on screen/email",
handle => "main_reports_is_my_hub";
"--> CFE is running on $(sys.fqhost)"
comment => "Display message on screen/email",
handle => "main_reports_cfe_running";
}
###############################################################################
#
# common def
# - common/global variables and classes here
#
###############################################################################