First, thanks for the help - I've been banging my head against the wall too
much on this.
Unfortunately, it's still not working for me..
I'm not using an inline template, I have an actual .erb file called out in
my manifest - though I don't see why this would be any different.
my erb now looks like:
<% scope.lookupvar("interfaces").split(",").each do |interface| %>
<% @int_ip = scope.lookupvar("ipaddress_" + interface) %>
<% @int_name = Resolv.new.getname @int_ip %>
<%= "#{@int_ip} :::::::: #{@int_name}" %>
<% end %>
(thanks, didn't realize I'd mixed up the single/double quotes)
and here is the result when puppet runs and the class is applied:
Filepath: /usr/lib/ruby/1.8/resolv.rb
Line: 429
Detail: cannot interpret as address:
Is there a difference in using an inline template inside of the class
defintion as opposed to using an erb file called as a resource?
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/f15d30b2-2be4-4267-a8eb-9c19bbb63034%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.