Hi,

I've got a windows machine with two IPs :
$ ipconfig
Carte Ethernet VirtualBox Host-Only Network:
(...)
        Adresse IP. . . . . . . . . . . . : 192.168.56.1
(...)
Carte Ethernet Connexion au réseau local:
(...)
        Adresse IP. . . . . . . . . . . . : 192.168.56.101
(...)


The adress detected by cfengine is the second one :
cf3 Address given by nameserver: 192.168.56.101

I would so expect that ${sys.ipv4} is 192.168.56.101, however it is not :
ip.cf :

bundle agent testip {   
    commands:
        "/bin/echo ${sys.ipv4} ${sys.ipv4[eth0]} ${sys.ipv4[eth1]} ";
}

$ cf-agent.exe -Kf ./ip.cf
Q: ".../bin/echo 192.1": 192.168.56.1 192.168.56.1 192.168.56.101
I: Last 1 QUOTEed lines were generated by promiser "/bin/echo 
192.168.56.1 192.168.56.1 192.168.56.101 "


Is it the expected behavior ?


Regards,
Nicolas
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to