Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

heat attain IP of previous host

I have a heat template that creates two hosts:

One CoreOS "service" instance and one CoreOS "worker" instance.

I wish to grab the ip of the first created instance and use it for the config of following "worker" instances.

This might give a hint of what I'm trying to do:

etcd_servers: http://{ get_attr: [ coreos001, first_address ] }:4001

Where coreos001 is the "master" instance that gets created first.