- From: Staticprop <
>
- To: "
" <
>
- Cc: "
" <
>
- Subject: [chef] Re: Re: Cookbook Template: Populating MAC address in ifcfg
- Date: Thu, 3 Oct 2013 14:30:37 -0400
Works perfect for my configuration.
Thanks for the help.
On Oct 1, 2013, at 11:32 PM, Mike <
">
> wrote: You could try passing the keys to .first - that will select the first element in the array and return a string.
Like so:
HWADDR=<%= node[:network][:interfaces][:eth1][:addresses].keys.first %>
But I don't think this is exactly right, since there may be multiple entries in the array.
Hope this helps, -M
|
Archive powered by MHonArc 2.6.16.