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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/96c60b30-8615-470d-a8cd-f45d944d39f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to