No, it is the same for the this test. You do need to have a resolvable IP
address for each interface IP it finds or it will error. For example I had
to add hostnames in my /etc/hosts file for my vagrant IPs (10.0.2.15,
172.28.128.5).

That maybe the error you're seeing there, "cannot interpret as address".

On Thu, Nov 26, 2015 at 8:54 AM, Dayton Jones <[email protected]>
wrote:

> 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
> <https://groups.google.com/d/msgid/puppet-users/f15d30b2-2be4-4267-a8eb-9c19bbb63034%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJsPER0VK81hmbFLcuSRxCTMQ086x5kM9V5%3DT1Mp%3DdEvSR%3DwSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to