On 04/16/2013 05:39 PM, Rahul Khengare wrote: > I am not able to change postgresql.conf file twice in postgresql module > and then pg_statsinfo module in case of db01, it give duplication > declaration of file resources.
This is important: Puppet does not "change" your files. Puppet rewrites the file to have the exact content you specify in your manifest/template. The content must be rendered exactly once. You need to build a template that can serve both your use cases. See to it that db01 sets an appropriate variable. The template should add the additional content only if this variable is set. See http://docs.puppetlabs.com/guides/templating.html#conditionals HTH, Felix -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.