Hi,
I'm trying to build a module for haproxy which fetches all the
configuration data from Hiera to populate the haproxy config file. I've run
into a number of issues though when I try to use hashes. Ideally, I want to
use something like this:
haproxy_listeners :
"cluster1" :
ip : '192.168.0.2'
port : '80'
servers :
"server1" :
ip : '192.168.0.3'
port : '8080'
So a hash of clusters with each cluster containing a nested hash of
servers. Is this possible with Hiera/ERB? It's easy enough to iterate over
the first hash, but I can't work out how to extract the contents of the
nested hash. Or I might just be approaching this in entirely the wrong
way... Any help would be much appreciated.
Thanks,
Andy
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/vtr8gCCwuBsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.