Yep...the IP's are all resolvable, and if I hardcode one of them in to the 
Resolv... line, it works and writes to the file... so I have no idea why 
passing @int_ip to Resolv (instead of the hardcoded IP) fails...

Thanks again for the help...

On Wednesday, November 25, 2015 at 4:04:00 PM UTC-6, denmat wrote:
>
> 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] 
> <javascript:>> 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] <javascript:>.
>> 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/1fdbbe47-4e4f-4ede-8226-cba9f2f90fb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to