simple inheritance fails
1 2 3 4 5 6 7 8 9 10 11 |
($bar) { notify{$bar: } } inherits foo { notify{"foo": } } class{"bar": bar => "blah"} Invalid parameter bar at /home/rip/test.pp:9 on node devco.net |
trying to be more explicit about it fails too
1 2 3 4 5 6 7 8 9 10 11 |
($bar) { notify{$bar: } } ($bar) inherits foo { notify{"foo": } } class{"bar": bar => "blah"} Must pass bar to Class[Foo] at /home/rip/test.pp:9 on node devco.net |
trying to inherit to add more params fails too
1 2 3 4 5 6 7 8 9 10 11 |
($bar) { notify{$bar: } } ($bar, $baz) inherits foo { notify{"foo": } } class{"bar": bar => "blah", baz => "meh"} Must pass bar to Class[Foo] at /home/rip/test.pp:9 on node devco.net |
