FAQ
In a template, is there a way to use a variable to reference another variable name? For instance, let's say I have a variable 'interface', and in my template I want to reference @ipaddress_$interface so that when interface = 'eth0' I get the value of @ipaddress_eth0, but when interface = 'eth1' I get the value of @ipaddress_eth1.

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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 8 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedFeb 21, '13 at 4:28p
activeFeb 27, '13 at 2:32p
posts8
users4
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase