Hi group,

Im trying to get one element from a yaml structure which come from Foreman, 
the yaml is like this:

node:
   host1:
      ip: xxx.xxx.xxx
   host2:
      ip: xxx.xxx.xxx


Those parameter are used to in a template:

<%= @nodes[0][name] %> IPaddr2::<%= @nodes[0]['ip'] %>/<%= @nodes[0]['cidr'] 
%>/<%= @nodes[0]['interface'] -%>

The question is that i only need the first parameter, i tried some ways to 
do it but without any luck, so if someone could put me on the correct way 
or tell me what i would have to do....

Thanks.

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/13ed1412-5807-424e-971e-284e588411c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to