Puppet Facter AWS

35 views
Skip to first unread message

Gowtham P R

unread,
Feb 23, 2016, 7:29:59 PM2/23/16
to Puppet Users

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} " : }

Felix Frank

unread,
Feb 27, 2016, 6:15:49 PM2/27/16
to puppet...@googlegroups.com
Hi,

could you please elaborate a bit on your issue? I do not quite
understand what you are trying to do, and how you are currently failing.

Thanks,
Felix
Reply all
Reply to author
Forward
0 new messages