Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using an array of hashes from hiera in a template with puppet
- id: 'one'
address: ''
port: '8001'
- id: 'two'
address: ''
port: '8002'
$sockets = hiera('sockets')
<% @sockets.each do |socket| -%>
id=<%= socket['id'] %>
address=<%= socket['address'] %>
port=<%= socket['port'] %>
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.