Is it possible to dynamically determine a variable''s name? I would like to do: $project_NAME where NAME can be anything. I''ve tried this (for experiment purposes): $project_name = ''my_project'' $project_my_project = ''/mnt/pa/test'' #this variable will be set out of this script notice($"project$project_name") This is not parseble! Is it possible? Any alternative? Best regards, Rodrigo -- 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 Oct 6, 2010, at 2:48 PM, Rodrigo Lopes wrote:> Any alternative?There may be other options, but I would look at inline_template() for this. http://docs.puppetlabs.com/references/latest/function.html#inline_template -- Rob McBroom <http://www.skurfer.com/> -- 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.