Hi I'm pretty new to puppet and am still learning, so apologies for what is probably a daft question..
I'm using puppet to deploy tomcat, and as part of this I need to dynamically edit an XML file based on data passed to the class from heira. 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. I could also, I suppose, construct the file every time puppet runs in a temp location, and then check the resultant file against the actual xml file - but that seems counter-intuitive. Is there a way to modify the existing file using augeas, and then check the result against the live version, while keeping the code fairly straightforward and self-contained within puppet? Thanks Dave -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1c3ca846-584e-4381-9af0-7365c28c19eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.