Title: Message Title
Henrik Lindberg commented on an issue
Puppet / Improvement PUP-2273
Enable access to parameters of defined types
If I have the following define:

{noformat}
define foo ($bar) {
  $baz = "${bar}_qux"
}
{noformat}

I'd like to be able to do something like:

{noformat}
class foo2 {
  foo { 'myfoo':
    bar => 'mybar',
  }

  notify { "${Foo['myfoo']::bar} ${Foo['myfoo']::baz}": }
}
{noformat}

And have the notify message be "mybar mybar_qux"


--
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to