Ask Your Question
0

How to modify hot template to allocate my own ip in the created instances.My Testbed lies on nimbus.

asked 2014-04-07 05:53:30 -0500

Santosh_HCL Technologies gravatar image

I have a heat template which creates instance automatically on nimbus(cisco cloud) with our given image.But it allocates the ip for the instances automatically.I want to give user defined ip to created instances.Please suggested me steps how to give my ip,so that it will create stack and allocate my defined ips.

edit retag flag offensive close merge delete

Comments

You'll need to provide enough template snippets to provide some suggestions here.

Steve Baker gravatar imageSteve Baker ( 2014-04-13 21:49:42 -0500 )edit

heat_template_version: 2013-05-23

description: Simple template to deploy a single compute instance

resources: my_instance: type: OS::Nova::Server properties: image: pam_sarsivas flavor: GP-Large networks: - uuid: 9b5e09f7-1be3-4d1a-a65b-4cca1433ca79 - port: { get_resource: server2_port }

This is my demo Template.Which takes image pam_sarsivas and flavor is GP-Large and create an instance on its own. The sample command to invoke would be as follows:- heat stack-create $stack-name --template-file="$template-file"

Santosh_HCL Technologies gravatar imageSantosh_HCL Technologies ( 2014-04-13 23:52:51 -0500 )edit

you are not providing a template that can be diagnosed. Where is 'server2_port' defined?

Qiming gravatar imageQiming ( 2014-04-26 11:39:13 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-02 13:45:01 -0500

Axiom gravatar image

Check out using the 'fixed_ips' parameter for OS::Neutron::Port, It may get you what you are looking for.

https://docs.openstack.org/heat/rocky/template_guide/openstack.html#OS::Neutron::Port (https://docs.openstack.org/heat/rocky...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-07 05:53:30 -0500

Seen: 144 times

Last updated: Apr 07 '14