Ask Your Question
0

How to have custom name for the VMs created using HEAT templates

asked 2016-08-30 03:40:36 -0600

divinedragon gravatar image

I am new to openstack and trying to create stacks using HEAT templates. However, the VM, I create using the helloworld.yaml from the official documentation, has name like HellowWorld1-server-7qws2kvup5um. Is there a way I can modify or specify that in the HEAT templates?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2016-08-30 05:12:33 -0600

Yes, its really easy and straightforward. You can give any name in the name attribute of the properties section of the instance. For Example

instance1:
    type: OS::Nova::Server
    properties:
      name: heat-vm-1
      image: <UUID of the image> 
      flavor: m1.xsmall

Hope that helps!!

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: 2016-08-30 03:40:36 -0600

Seen: 74 times

Last updated: Aug 30 '16