> > ... in a catalog. The module is just source code on the master which can > contain as many "conflicting" resource definitions as it wants. The > important thing is that only unique resources are then sent to the agent. I > don't know the newrelic module, but from the class names I'd assume, only > one of them is included on your node.
Hi David, Ah, ok! That sounds right. So as long as the resource that is sent to the agent is unique, you're good. Thanks for the clarification! Thanks Tim On Fri, Oct 16, 2015 at 6:20 AM, David Schmitt <david.schm...@puppetlabs.com > wrote: > > > On 15/10/2015 04:55, Tim Dunphy wrote: > > If you specify 'ensure => absent' then you should not have a 'content' >> line. They are contradictory parameters. (Also, but unrelated, the path >> parameter is duplicative since specifying the path as the file resource >> name serves the same purpose.) > > > Ok! Gothca. Actually not to deflect blame, but I didn't author this > manifest. I downloaded it from puppet forge for the newrelic module. > > > (also, ensure will override content any time of the day) > > > But the real problem I found out was that they duplicated the file > definition in two separate manifests. It was listed in: > > Class: newrelic::php > environments/production/modules/newrelic/manifests/php.pp > > And > > Class: newrelic::agent::php > environments/production/modules/newrelic/manifests/agent/php.pp > > Not sure how they did that and got away with it, since I thought you could > only define a resource once in a module. > > ... in a catalog. The module is just source code on the master which can > contain as many "conflicting" resource definitions as it wants. The > important thing is that only unique resources are then sent to the agent. I > don't know the newrelic module, but from the class names I'd assume, only > one of them is included on your node. > > > Cheers, D. > > -- > 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/5620CF61.9080402%40puppetlabs.com > <https://groups.google.com/d/msgid/puppet-users/5620CF61.9080402%40puppetlabs.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- 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/CAOZy0emb6aASJ3u%3Did0w_k55NBaktp1pLaNH8sEyUvCsJc9Bpw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.