Re: [Puppet Users] Dynamic file content

13 views
Skip to first unread message

Martin Alfke

unread,
Nov 18, 2017, 6:59:34 AM11/18/17
to puppet...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages