Good question. Since there is no inheritance for dolls for certain types, params.pp templates cannot be reproduced in the same way for certain types as for classes. However, there is another way."hello world" Foo ['bar'] :
class params {
$msg = 'hello world'
}
define foo($msg = $params::msg ) {
notify{ $msg: }
}
foo { 'bar': }
include params
, , params. Puppet , , $params::msg .
, Puppet . , , :
foo { 'bar':
require => Class['params']
}
include params
, , foo, params, , init.pp :
include foo::params
define foo($x = $foo::params::x, $y = $foo::params::y, ...)
params.pp, : params.pp