Hmm, I find that hard to believe, ie. that's a pretty massive and
fundamental bug in facter if that is indeed the case.

Can you reproduce on other boxes?

R.


On 28 July 2014 19:19, Joao Morais <[email protected]> wrote:

>
> List, just to document the solution. My CentOS was localized and facter
> couldn't parse de output properly. Changing the locale to en_US solves this
> issue.
>
> Joao Morais
>
>
> Em quinta-feira, 26 de junho de 2014 14h25min27s UTC-3, Joao Morais
> escreveu:
>
>>
>> Hello list. I am trying to read the IP address of the eth0 interface from
>> a CentOS 6.5 VM (XenServer).
>>
>> Running the manifest gives empty values to all of the following vars:
>> $ipaddress, $ipaddress_eth0, and its $::<name> version. $interfaces has
>> "eth0,lo".
>>
>> Running facter from the VM I get:
>>
>> # facter -v
>> 2.0.1
>>
>> # facter | grep virtual
>> is_virtual => true
>> virtual => xenu
>>
>> # facter | grep eth
>> interfaces => eth0,lo
>> mtu_eth0 => 1500
>>
>> # facter ipaddress_eth0
>>
>> # facter ipaddress
>>
>> ifconfig output:
>>
>> # ifconfig eth0
>> eth0      Link encap:Ethernet  Endereço de HW 7E:81:CD:66:77:DF
>>           inet end.: 10.200.118.83  Bcast:10.200.119.255
>> Masc:255.255.254.0
>>           UP BROADCASTRUNNING MULTICAST  MTU:1500  Métrica:1
>>           ...etc...
>>
>> Any tip? Thanks!
>>
>>  --
> 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/96c60b30-8615-470d-a8cd-f45d944d39f2%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/96c60b30-8615-470d-a8cd-f45d944d39f2%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/CAJGKfwCyJt9B2xrbWe-0Wm8MMXeBdRFQphY5uOT6cDK29bcAVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to