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

inserting a fragment of data into a file that changes during runtime

$
0
0
I have a file in which the application prepends data to during runtime. There is no Augeas lense for this file. And I need a text block to be inserted into this file. Any ideas? Here are some of the ideas I've considered; file_line with a crazy gigantic regex. But there's no way I can think of to remove the file in the case that the regex does not match. Maybe there's a module out there which allows a regex on a file, where I could use an "if" statement to see if my text block exists, and if it doesn't, use a simple file template? Use an exec statement. Ughh....

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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