Issue #12789 has been updated by Chris Price.

File test3.pp added
File test4.pp added
Status changed from Investigating to Needs More Information
Assignee changed from Chris Price to Thomas Sturm

So... my test1.pp and test2.pp manifests seem to behave the same way via 
master/agent as they do via apply.

My next guess was that maybe this is something specific to either the 'file' 
resource type, or the 'ensure' parameter, or both... so I created test3.pp and 
test4.pp, which are based off of your code above.

Based on your description I'd expect:

1. test3.pp does not create the file via 'apply'
2. test3.pp does not create the file via master/agent
3. test4.pp does not create the file via 'apply'
4. test4.pp DOES create the file via master/agent

However, in all 4 permutations, I am not seeing the file get created.  Any 
ideas what I'm doing differently from you?
----------------------------------------
Bug #12789: Overwriting a class that's using a definition fails
https://projects.puppetlabs.com/issues/12789#change-58744

Author: Thomas Sturm
Status: Needs More Information
Priority: High
Assignee: Thomas Sturm
Category: class inheritance
Target version: 
Affected Puppet version: 2.7.11
Keywords: 
Branch: 


Hello,

please apologize if this was reported elsewhere already...

We have class X that's included in the default node. The class uses a defined 
type of the same class with ensure => present. We also have class Y that 
inherits X and sets this defined type ensure => absent. If we assign Y to a 
node via another class or via ENC, it does nothing. The defined type is still 
ensure => present. However, if we assign class Y via a node definition, it 
works, the define is ensure => absent. 

Overwriting native puppet types always works, but as soon as you are 
overwriting a definition, the overwrite does just nothing.

If this is supposed to work, I think we hit a bug here...

Best regards,
Thomas


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to