Re: [Puppet Users] file absent in config manifest fails

2015-10-16 Thread Tim Dunphy
> > ... 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, onl

Re: [Puppet Users] file absent in config manifest fails

2015-10-16 Thread David Schmitt
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 pur

Re: [Puppet Users] file absent in config manifest fails

2015-10-14 Thread Tim Dunphy
> > 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

Re: [Puppet Users] file absent in config manifest fails

2015-10-14 Thread Peter Bukowinski
Tim, > On Oct 14, 2015, at 10:14 PM, Tim Dunphy wrote: > > Hey guys, > > On puppet server 3.8.2 here. And I have a file definition that I want to set > as 'absent'. For example, this is what I have: > > file { '/etc/newrelic/newrelic.cfg': > ensure => absent, > path=> '/etc/ne

[Puppet Users] file absent in config manifest fails

2015-10-14 Thread Tim Dunphy
Hey guys, On puppet server 3.8.2 here. And I have a file definition that I want to set as 'absent'. For example, this is what I have: file { '/etc/newrelic/newrelic.cfg': ensure => absent, path=> '/etc/newrelic/newrelic.cfg', content => template('newrelic/newrelic.cfg.erb'),