Skip to content

Instantly share code, notes, and snippets.

@b4ldr
Created March 26, 2014 11:52
Show Gist options
  • Save b4ldr/9781562 to your computer and use it in GitHub Desktop.
Save b4ldr/9781562 to your computer and use it in GitHub Desktop.
$service_addr6 = hiera('network::service6', undef)
<%- if @service_addr6 then -%>
<%- @service_addr6.each do |addr6| -%>
ip-address: <%= addr6.split("/")[0] %>
<%- end -%>
<%- end -%>
Filepath: /etc/puppetlabs/puppet/environment/network_test/modules/nsd/templates/nsd.conf.erb
Line: 17
Detail: undefined method `each' for "":String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment