Take a look at the example referenced from the docs.  You can see the links exposed in the spec file and how they're consumed in the various templates.

https://github.com/cppforlife/zookeeper-release/tree/master/jobs/zookeeper

Dan


On Wed, Sep 20, 2017 at 10:44 AM, Ushani Balasooriya <ushanib@gmail.com> wrote:
Hi Daniel,
I'm trying create a cluster setup which is configurable for n number of instances. So, How can I access the IP set for a particular IP dynamically?
Or is there a way where I can access them using a pre defined host which it can resolve the IP by itself?

Appreciate your help