Issue #2931 has been updated by Dan Bode.
There is a little precedent for what to expect. This case is similar to regular
resource param overrides with multiple inheritance.
So, if the code above returns:
Resource Default 'mode' is already set on File
This would be consistent with the result of the following code:
<pre>
class one{
file{'/tmp/test':
mode => '777'
}
}
class two inherits one{
File['/tmp/test'] { mode => '776'}
}
class three inherits one{
File['/tmp/test'] { mode => '444'}
}
include two, three
</pre>
which is:
Parameter 'mode' is already set on File[/tmp/test]
----------------------------------------
Bug #2931: resource defaults should work with inheritence
http://projects.reductivelabs.com/issues/2931
Author: Dan Bode
Status: Needs more information
Priority: Normal
Assigned to:
Category:
Target version:
Affected version: 0.25.1
Keywords:
Branch:
It should be possible to use inheritance to change default resource values.
Class two should override the default resource param mode to 664.
<pre>
class one {
File{mode=>777}
file{
'/tmp/one':
content => 'one';
'/tmp/two':
content => 'two';
}
}
class two inherits one{
File{mode => 664}
}
#include one
include two
</pre>
--
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://reductivelabs.com/redmine/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.