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

how to read file and use content per line?

$
0
0
Hello! I have txt file consists where and what i want to delete, for example: /data/1 bak /data/2 tmp /data/3 dbf This mean puppet agent looking in /data/1 dir all files with bak extension and remove them. My desirable scheme:
1. This file storage on puppet master
2. Puppet agent read (or copy on agent-side than read) this file and delete specified files if they are. Regards

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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