I think comments would cover most files, even recursive if you are
diligent. Other options:
1. Put a CFEngine-managed file in any directory covered by a recursive
promise.
2. With a reporting engine like Delta Reporting you can query using
expanded promisers (that look like $(myvar) in policy. For example,
let's assume that CFEngine is popular enough that I can afford an
intern. Asok, my intern, wants to know if /var/www/cottage/app (my
cottage rental site
http://thewavesbeachhouse.ca) is managed by
CFEngine. Asok is new and I haven't given him policy access yet, but he
can query for the latest record in Delta Reporting for the promiser
/var/www/cottage/app.
/opt/delta_reporting/app/script/query -pr "/var/www/cottage/app%" -l
Promiser Promisee Promise handle Promise outcome Timestamp Hostname IP address Policy server
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/var/www/cottage/app/. thewavesbeachhouse.c efl_service_recurse_dir kept 2015-06-03 07:53:27-04 mercury.watson- 2a02:2770:5:0:21a:4aff:f
ettin.watson-wilson.ca
/var/www/cottage/app thewavesbeachhouse.c efl_service_recurse_copy kept 2015-06-03 07:53:27-04 mercury.watson- 2a02:2770:5:0:21a:4aff:f
ettin.watson-wilson.ca
/var/www/cottage/app thewavesbeachhouse.c efl_service_recurse_perms kept 2015-06-03 07:53:27-04 mercury.watson- 2a02:2770:5:0:21a:4aff:f
ettin.watson-wilson.ca
/var/www/cottage/app thewavesbeachhouse.c efl_service_recurse_perms repaired 2015-05-28 09:57:47-04 mercury.watson- 2a02:2770:5:0:21a:4aff:f
ettin.watson-wilson.ca
/var/www/cottage/app thewavesbeachhouse.c efl_service_recurse_copy repaired 2015-05-28 09:52:41-04 mercury.watson- 2a02:2770:5:0:21a:4aff:f
ettin.watson-wilson.ca
And now he knows that CFEngine manages that directory and even which promises
(see handles) are involved. Since DR reports on all promisers Asok can also
test processes, packages, commands, even live sysctl settings.
Sincerely,
--
Neil H Watson
Sr. Partner, Architecture and Infrastructure
CFEngine reporting:
https://github.com/evolvethinking/delta_reporting
CFEngine policy:
https://github.com/evolvethinking/evolve_cfengine_freelib
CFEngine and vim:
https://github.com/neilhwatson/vim_cf3
CFEngine support:
http://evolvethinking.com