Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Puppet list files of certain type

$
0
0
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](https://puppet.com/docs/puppet/6.0/type.html#tidy) 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? Thanks!

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>