Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to pass internal IP from SERVER to RESOURCEGROUP

I'm very new to programming openstack and have examples of codes from others which I'm using as a template. The thing I'm stuck on is how to capture the private IP of a OS::HEAT::SERVER instance and then pass that onto OS::HEAT::RESOURCEGROUP as a variable.

The right IP is shown in the outputs: section, but if I understand correctly, that's not set until the deployment finishes?

Does anyone have an example of capturing a variable and how to pass that to the ResourceGroup?

How to pass internal IP from SERVER to RESOURCEGROUP

I'm very new to programming openstack and have examples of codes from others which I'm using as a template. The thing I'm stuck on is how to capture the private IP of a OS::HEAT::SERVER instance and then pass that onto OS::HEAT::RESOURCEGROUP as a variable.

The right IP is shown in the outputs: section, but if I understand correctly, that's not set until the deployment finishes?

Does anyone have an example of capturing a variable and how to pass that to the ResourceGroup?

Just wanting to add a little more meat to this question. The scenario I have is I have a OS::HEAT::SERVER in my yaml that gets built. I want to capture the private IP address of that single server and provide it to the ResourceGroup as a variable so I can use it in the template: | section to edit a file. Essentially I need all my multiple servers in the resource group to know the IP of the first one.

I'm struggling in capturing that private IP and submitting it to the resourcegroup. I could do with an example of such.

Thanks.