Issue #1774 has been updated by Paul Nasrat.

Status changed from Accepted to Closed

This seems working note that we now mung the variable names as per Issue #1846 
so your manifest would need to use ipaddress_eth0_0 in this version of facter.

[r...@cambridge facter]# ifconfig eth0 | grep inet\ 
          inet addr:192.168.162.128  Bcast:192.168.162.255  Mask:255.255.255.0
[r...@cambridge facter]# ifconfig eth0:1 | grep inet\ 
          inet addr:192.168.163.142  Bcast:192.168.163.255  Mask:255.255.255.0
[r...@cambridge facter]# ruby -Ilib bin/facter | grep eth0_1
interfaces => eth0,eth0_1,pan0,sit0
ipaddress_eth0_1 => 192.168.163.142
macaddress_eth0_1 => 00:0C:29:1D:CE:4D
netmask_eth0_1 => 255.255.255.0
network_eth0_1 => 192.168.163.0

----------------------------------------
Bug #1774: Ethernet interface aliases not working
http://projects.reductivelabs.com/issues/1774

Author: Marten Vijn
Status: Closed
Priority: Normal
Assigned to: Paul Nasrat
Category: 
Target version: 1.5.5
Complexity: Unknown
Keywords: ipaddress_eth0:0
alias


facter return a wrong value on evaluating an alias (eth0:0)

example:

$ipaddress_eth0:0 returns  10.11.11.29:0

which should be 13.1.1.1

On the system (gentoo)

#ifconfig eth0 | grep inet
inet addr:10.11.11.29  Bcast:10.11.11.255  Mask:255.255.255.0

#ifconfig eth0:0 | grep inet 
inet addr:13.1.1.1  Bcast:13.255.255.255  Mask:255.0.0.0

os gentoo
puppetversion => 0.24.6
facterversion => 1.5.2


reproduction

On the client:
ifconfig eth0 10.11.11.29/24
ifconfig eth0:0 13.1.1.1


On the master
somewhere in the class for this host
notify { "my ip 
        1 $ipaddress 
        4 $ipaddress_eth0:0
        5 $ipaddress_eth0
        ": }

on the client: 
puppetd --verbose --no-daemonize --ignorecache


thanks for you work so far!
kind regards
Marten





-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to