Hello,
I have a yaml file with a hash of network interfaces (ifaces hash), each
nic has an associated ipaddress and netmask.
Using hiera ifaces fqdn=host.mycompany.com I can get all interfaces back.
Is there a way using the hiera cli to get a specific value of a key within
the hash?
e.g. hiera ifaces fqdn=host.mycompany.com
{"eth0"=>{"ipaddress"=>"10.4.115.48", "netmask"=>"255.255.255.0"},
"eth0:1"=>{"ipaddress"=>"10.4.115.58", "netmask"=>"255.255.255.0"}}
Can I with a single hiera command get info of only the interface eth0?
Or get just the ipaddress of interface eth0?
Or was hiera not meant for this kind of use?
Best Regards,
Jo
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.