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.

Reply via email to