----- "Jesse Wolfe" <[email protected]> wrote:
> > My current answer is "no", just because I'm trying to keep things
> simple.
>
> I'm leaning toward "no", but let's try this:
>
> class A {
> File { owner => "root" }
> }
>
> class B
> class C inherits A {
> file {"foo" :}
> class D {
> file {"bar" :}
> }
> }
> }
>
>
> Would you expect "bar" to be owned by "root" ?
I think the least surprising thing would be yes it should, but its not great.
The main thing wrt defaults I want to see disabled is that they pass down
through includes.
How does all this stuff relate to parametrized classes? What is the behavior
of class A (with parameters) being inherited by B? Does B get the exact same
list of parameters, how does B add to this list? Does it restate the whole list
of parameters?
Testing suggests that:
class foo($bar) {
notice($bar)
}
class foo::bar inherits foo {
notice($bar)
}
class{"foo::bar": bar => "baz"}
doesnt work: Invalid parameter bar at /home/rip/test.pp:9 on node ..
I think it should, I also think foo::bar should be able to just append to the
parameter list the stuff it is interested in.
I know I am kind of hijacking the thread but seems related
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en.