Hi All,

I am not able to figure out how to replace "mac address value" with  first 
 mac address, appreciate your help.  

$aws_account = $::facts['ec2_metadata']['network']['interfaces']['macs'] 
['02:df:8d:XXXXXX'][owner-id]'] ? {
      /123456789/ => 'account1',
      /123456789/ => 'account2',
      /123456789/ => 'account3',   
      /123456789/ => 'account4',   
      /123456789/ => 'account5',   
}
notify { " ${aws_account} " : }

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e13e2084-50f7-436f-acc8-38f79a0282fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to