[Puppet Users] Hiera hashes and arrays in ERB templates

2013-01-04 Thread Andy Taylor
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 :

Re: [Puppet Users] Hiera hashes and arrays in ERB templates

2013-01-04 Thread Wolf Noble
not sure if this is the best way to do this, but, taking from a different module I have: hiera yaml: snmp_filesystems: root: { mountpoint: '/', threshold: '10%' } snmp_collector: test: { ip:'1.2.3.4', group: 'readonly', community: 'somecommunity' }