On Friday, September 30, 2011 4:50:33 PM UTC+1, jcbollinger wrote:
> I do think there's a bug, but I'm not confident it's the one you think
> it is. I find no documentation of any difference in variable
> interpolation in class parameter defaults than in any other context,
> so I expect the interpolation to be performed according to the same
> rules as elsewhere. Specifically, I expect interpolation to draw on
> only variables available in the scope in which the host string
> appears. A class's parameters cannot be in scope in that class's own
> parameter list definition, because their values are not known at that
> point. Therefore, you should not be able to interpolate one
> parameter's actual value into the default value of a another
> parameter. That is, NONE of the interpolations in your example should
> work.
>
Hi John,
This thing scaries me a bit.
I'm rewriting my modules in order to merge the usage of a params.pp class
where defaults are set and parametrized classes.
The output is something like :
class openssh (
[...]
$package = $openssh::params::package,
$service = $openssh::params::service,
$service_status = $openssh::params::service_status,
$process = $openssh::params::process,
$process_args = $openssh::params::process_args,
$config_dir = $openssh::params::config_dir,
$config_file = $openssh::params::config_file,
$config_file_mode = $openssh::params::config_file_mode,
$config_file_owner = $openssh::params::config_file_owner,
$config_file_group = $openssh::params::config_file_group,
$config_file_init = $openssh::params::config_file_init,
$pid_file = $openssh::params::pid_file,
$data_dir = $openssh::params::data_dir,
$log_dir = $openssh::params::log_dir,
$log_file = $openssh::params::log_file
) inherits openssh::params {
There is no particular interpolation on variables, just their value's
assignment as default.
Is this a supported behaviour that I can trust to be mantained on future
versions?
Al
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/XriIlABmFyEJ.
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-users?hl=en.