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.
For more options, visit https://groups.google.com/d/optout.