how to define multiple array on hiera.yaml file and how we can iterate/access in template file(erb file)

asked 2014-04-04 09:21:07 -0600

rasati gravatar image

hiera.yaml file entry project:module:propertyName:: servers: -server1 ip: port: route: hostname: -member1;{name, server, ip} -member2:{name, server, ip}

-server2 ip: port: route: hostname: -member1;{name, server, ip} -member2:{name, server, ip}

xyz.erb file here how we can access that hiera proprty.

Please also let me know how i can define in hiera as well as in erb file for multiple array values.

Thanks

edit retag flag offensive close merge delete

Comments

Hi, please put your YAML in code blocks because it is not readable like this. How should the erb template render the array values? One value per line, all on ...(more)

ffrank gravatar imageffrank ( 2014-04-04 16:42:55 -0600 )edit