How do I tell if file name is under puppet control?
# show all the puppet managed files in a directory $ puppet-ls /etc/mcollective /etc/mcollective/facts.yaml /etc/mcollective/server.cfg # show all the puppet managed files in /etc and any of its subdirectories $ puppet-ls -r /etc/ # show all unmanaged files in /etc/nagios and any subdirectories $ puppet-ls -r -i /etc/nagios/
While it's possible to search through the clients catalog and
state.yaml files for each file you want to check the simplest way is to
download and run
puppet-ls from GitHub.
puppet-ls script will show all the puppet managed files in the given
directory (or the current directory if called without arguments), can be
made to check recursively (with -r) or can reverse its behaviour (when
passed -i for invert) to show all files that are not yet puppet managed.