Yes... this would be a better cleaner solution.. sadly we are running 0.25 still until we upgrade.
Hashes are great, aren't they? Thx On Oct 28, 12:41 am, Felix Frank <[email protected]> wrote: > On 10/28/2010 04:00 AM, Joe McDonagh wrote: > > > On 10/27/2010 07:37 PM, Roberto Bouza wrote: > >> Thanks!!! > > >> It worked like a charm. > > >> On Oct 27, 3:23 pm, Joe McDonagh<[email protected]> wrote: > > > FYI, if you're using 2.6, the new pure Ruby stuff might look better. > > Unfortunately I have not yet deployed 2.6 for prod so I don't have much > > experience using the pure Ruby DSL stuff. > > While we're talking 2.6: > > $logs = { > a => { > project1 => "machine1", > }, > b => { > project2 => "machine2", > }, > > } > > Then $machine_name = $logs[$letter][$project]. > > Cheers, > Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
