Hi Dave,
> On 17 Nov 2017, at 16:21, Dave F <
d.f...@bath.ac.uk> 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