Hi Dave,

> On 17 Nov 2017, at 16:21, Dave F <[email protected]> wrote:
> 
> Hi
> 
[…]
> I'm doing this by 
> 
> a) using a file resource to put the xml file in place
> b) Using Augeas to search and replace a value within the file
> 
> This all works... except that, of course, everytime puppet runs, step a) 
> notices that step b) has changed the file, which replaces it, and then step b 
> edits it again...
> 
> How do I prevent this? I know I could tell step a to not replace an existing 
> file, but then we'd fail to pick on unplanned changes.

You should have a look at puppet templates:
https://puppet.com/docs/puppet/5.3/lang_template_epp.html

Best,
Martin

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/E451A6B0-D66C-4E76-A58B-9251F5BDE86E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to