Puppet list files of certain type

asked 2018-10-04 12:39:32 -0500

master_of_puppets gravatar image

Hi! I would like to know if it is possible to perform a file search using puppet which collects all the files of a certain type. I have seen an interesting puppet attribute named tidy More info here which is used to remove all files of a certain type. I would like to be able to just collect the names of those files (not delete them). I know that I can create my own puppet fact with python code to do that, but efficiency is also important. Is it possible to use tidy just for collecting (and avoid deleting) or a similar puppet attribute to do this?


edit retag flag offensive close merge delete


What are you trying to accomplish? Puppet isn't really a query/status program, it's intended to take a declarative system configuration and apply it and manage it across a fleet of instances.

DarylW gravatar imageDarylW ( 2018-10-05 10:02:30 -0500 )edit