Dan Pasacrita
2014-Apr-21 15:18 UTC
[Puppet Users] How to check a text file for a certain line?
Hi everyone, I'm pretty new to puppet, and I was wondering if you guys to help me with something pretty basic. I'm attempting to write a module that will check a text file for a certain line of text, and if it doesn't find it, to add a that content in a new line. I'm pretty sure I can add the new line using exec to run echo "content" >> file.txt, but checking the file for said content has me completely stumped. What can I do here? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ff5d0baa-7adc-4162-983a-67bb010a3fb1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.