VMware Cloud Community
JohnRocha
Enthusiast
Enthusiast

What does machine_ip_addr choose if there is more than one IP configured

I found the built in variable machine_ip_addr in the documentation

  • machine_ipaddr: The machine’s IP address

    Example values:

    10.0.0.2

I've been playing a little bit with this and wanted to learn more how it selects it's value.

I noticed it uses 127.0.0.1 if there is no IP address configured.

What about when there is more than one IP address configured for a system? Does it only return the first value? Is there a way to have it pull another?

Thank you,

 

Labels (3)
Reply
0 Kudos
1 Reply
michieldhont_
Hot Shot
Hot Shot

Hi @JohnRocha,

Does it only return the first value? Is there a way to have it pull another?

It returns the first value it finds.

Regards,

Michiel

Reply
0 Kudos