Report abuse

simple inheritance fails

1
2
3
4
5
6
7
8
9
10
11
class foo($bar) {
    notify{$bar: }
}

class 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
class foo($bar) {
    notify{$bar: }
}

class 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
class foo($bar) {
    notify{$bar: }
}

class 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