Re: [Puppet Users] PC EU feedback: unpack array variables in string interpolation

2011-05-24 Thread vagn scott
What should this do? $array = [ "one", "two" ] $greeting = [ "hello", "howdy" ] @file { "host_$array$greeting" } or this? $array = [ "one", "two" ] @file { "$array_blah" } seems like we would need delimiters "host_${array}_${greeting}" and some form of expansion contr

[Puppet Users] PC EU feedback: unpack array variables in string interpolation

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7598 If your goal is this (pseudo-code): @file { "host_one" } @file { "host_two" } You should be able to say this: $array = [ "one", "two" ] @file { "host_$array" } Instead of this: @file { "host_one", "host_two" } Please comment on t