Report abuse

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

class testme {
    foo{"bar": }
}

include testme

notify{$puppetversion: }

output

1
2
3
4
5
6
% bin/puppet apply test.pp
notice: 2.7.6
notice: /Stage[main]//Notify[2.7.6]/message: defined 'message' as '2.7.6'
notice: bar
notice: /Stage[main]/Testme/Foo[bar]/Notify[bar]/message: defined 'message' as 'bar'
notice: Finished catalog run in 0.12 seconds