Hi,
With cfengine-community-3.3.5-1 on RedHat Enterprise 6:
I've run into an issue where if I remove a file on server:/var/cfengine/masterfiles, that file does not get removed on client:/var/cfengine/inputs with a cf-agent run.
I'm using the distributed
cfengine_stdlib.cf "For Cfengine Core: 3.1.0", and
failsafe.cf "Community Failsafe.cf 1.0.0".
In
failsafe.cf, there is the following in the "files" section:
am_policy_hub|validated_updates_ready:: # policy hub should always put masterfiles in inputs in order to check new policy
"$(inputs_dir)"
comment => "Copy policy updates from master source on policy server if a new validation was acquired",
handle => "update_files_inputs_dir",
copy_from => u_rcp("$(master_location)","$(sys.policy_hub)"),
depth_search => u_recurse("inf"),
# file_select => u_input_files,
file_select => all,
depends_on => { "check_valid_update" },
action => u_immediate,
classes => u_if_repaired("update_report");
Perhaps this needs a "purge => true" or similar directive to accomplish removing obsolete files on clients?
Thanks for any assistance with this.