Forum: Cfengine Help Subject: List of copied files Author: rosin Link to topic: https://cfengine.com/forum/read.php?3,21638,21638#msg-21638
Hey there. Im a newbee to cfengine - but impressed about the prospects it brings. In my scenario i want to copy the files needed in a compact way. Therefore I wrote something like that: bundle agent copy{ "/" comment => "specific configuration files for this system", depth_search => b_recurse, copy_from => digist_cp("${source}"); } body copy_from digist_cp(from) { source => "$(from)"; compare => "digest"; verify => "true"; preserve => "true"; } body depth_search b_recurse { depth => "inf"; } The ${source} point to a location where I build a directory structure similar to the root-Filesystem (with paths like "/etc/", "/usr/", "/etc/ssh" and so on). Is it possible to check which files within this directory structure has been replaced? For example: I want to know if the sshd_config has been replaced to restart the server. How can I realize this? Or is this realisation completely on the wron track? Thanks for your help, Moritz _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine