[Openstack] heat: Using IP address of one VM with-in another VM

Chris Friesen chris.friesen at windriver.com
Wed May 6 13:46:40 UTC 2015


On 05/06/2015 06:20 AM, ashish.jain14 at wipro.com wrote:
> Hi,
>
>
> Is it possible to somehow pass IP of a VM to another VM during heat deployment.
> For example IP of  a DB server in a VM to a client in another VM.

Yes.  As an example take a look at 
"https://github.com/openstack/heat-templates/blob/master/hot/F20/WordPress_2_Instances.yaml".

The "WebServer" is configured with the IP address of the "DatabaseServer":

db_ipaddr: { get_attr: [DatabaseServer, networks, private, 0] }


Chris





More information about the Openstack mailing list