Issue #20475 has been reported by Erik Dalén.

----------------------------------------
Feature #20475: Allow class & define parameters to reference earlier parameters
https://projects.puppetlabs.com/issues/20475

* Author: Erik Dalén
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: parser
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
It would be good if code like this was possible:

    class postgresql (
      $version = '9.0',
      $datadir = "/var/lib/postgresql/${version}/main",
     ) { ... }

or used in expressions:

    class foo (
      $concurrent_reads = 20,
      $concurrent_writes = $concurrent_reads/2,
    ) { ... }

Some of this can be possible to workaround using class inheritance, but for 
each reference you need another layer of inheritance and it also results in 
weird parameter naming for the data bindings. Like having to specify 
postgresql::params::version but then postgresql::datadir.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to