Is it possible to do the following: define mydefine($hash) { notice("Heres an instance ${hash[instance]}") } $pathtohash = "\$module::params::hash01" #Then do: @mydefine { $name: hash => $pathtohash} It want it instantiate and peform equivlant to : @mydefine { $name: hash => $module::params::hash01} fwiw- I realize the virtuals later... Can anyone help, not sure I understand the syntax around doing this. Thanks, rismoney -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Most simple example $vari="\$modu:params::hash01" notice("$vari") How can I make the notice enumerate the value stored in vari, not show the string value as above. vari is a constant in this primitive example. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On May 3, 4:15 pm, Rich Siegel <rismo...@gmail.com> wrote:> Most simple example > > $vari="\$modu:params::hash01" > notice("$vari") > > How can I make the notice enumerate the value stored in vari, not show > the string value as above. vari is a constant in this primitive > example.To the best of my knowledge, Puppet does not support a feature such as this. If you explain what you want to do with it, then perhaps we can suggest a more viable approach. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
i found the answer... in stdlib there is a getvar function. works a champ! thanks to Volcane on the #puppet channel -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.