Hi Chris, > On 18 Nov 2017, at 15:07, Chris Denneen <[email protected]> wrote: > > Can you use an ERB template to construct the changes you require rather than > augeas?
There is a new template engine since Puppet 4: EPP (Embedded Puppet) This prevents people from doing weird ruby stuff in a file. Templates should be used to only present data. > If not another suggestion would be 1 file resource from src to temp location, > which only gets updated when src changes. An Exec that is refreshonly that > copies from temp to dest (which is notified by file resource) and finally > Augeas that updates dest file. No no no. Please don’t do a tempfile and an exec resource. Use a template instead. > The template is obviously your most efficient method using a single resource. Yes! -- 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/30CEB4C1-7094-4083-BAE6-B84929A28985%40gmail.com. For more options, visit https://groups.google.com/d/optout.
