I have the following promises.

        vars:
                "policy_host"           string  => "server1.cfengine.com";
                "master_location"       string  => "/var/cfengine/masterfiles";

        files:
                "$(master_location)" 
                        comment         => "copying masterfiles into inputs",
                        perms           => u_p("600"),
                        copy_from       => 
mycopy("$(master_location)","$(policy_host)"),
                        depth_search    => recurse("inf"),
                        action          => uimmediate,
                        classes         => if_repaired("masterfiles_changed");

        reports:
                masterfiles_changed::
                        "The masterfiles have changed."
                                comment => "This is a message to let us know 
that the masterfiles have changed.";

body copy_from mycopy(from,server)
{
        source          => "$(from)";
        servers         => { "$(server)" };
        compare         => "digest";
        encrypt         => "true";
        purge           => "true";
        verify          => "true";
        trustkey        => "true";
}

When I create an empty file in master_location, I get a report.  When I delete 
this same file, I do not get a report.  Is this a normal behavior?  How do I 
make cfengine report when I delete the file?

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

Reply via email to