问题
I am using Cloudify 2.7 with OpenStack Iceouse.
How could I do to retrieve IP of the Cloudify Manager from inside Cloudify Application VM?
回答1:
Good question. Unfortunately, there is no simple API to get this. As Cloudify 2 has reached End-of-Life, there are no plans for adding such an API.
Having said that, there is an environment variable that contains this information. The environment variable name is:
LOOKUPLOCATORS
The value of this variable is of the format:
<HOST1>:<PORT1>;<HOST2>:<PORT2>
Where each of the hosts is a cloudify 2 manager.
来源:https://stackoverflow.com/questions/31607837/retrieve-ip-of-the-cloudify-manager-from-inside-cloudify-application-vm