How to use data from master VM on slave VM?

Hello

I would need to pass the IP address of a parent VM to a slave VM when they are created together in a service.

My goal is to modify the slave VM to have ETH0_GATEWAY set to the parent IP address. Is there something I could type under “Advanced role parameters” to make this work? Like ETH0_GATEWAY = $PARENT[ETH0_IP].

I could do this using OneGate but the network in which the slave VM is attached is not routable outside of the compute node and thus cant access the OneGate endpoint on front-end server.

I would also need to ensure that all the machines created from a single service template are put to same host. Are there any ways to achieve this or should I look into alternative solutions?

Thank you!