Ask Your Question
0

How to use heat template to create MySQL server and connect it to fronted ?

asked 2017-02-27 12:24:37 -0500

bishops gravatar image

Hi all,

I am new to OpenStack Heat and would like to use some sort of orchestration mechanism to spin up a MySQL stack and a fronted UI server in a scalable/easily configurable manner. I found about Heat templates and really interested to know how to achieve that using Heat Templates.

So far I was able to create 2 instances with my desired images, flavor and network but how can I get those 2 instances to talk to each other and how can I scale up both of them at the same time.

This is for a research project at my University and any help would be appreciated.

Thank You

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2017-03-01 09:50:15 -0500

shasha.tavil gravatar image

Hey,

A HOT template has a section called user_data where you can write your own script such as MySQL configuration, front-end UI framework config. This section also allows you to input any variables such as MySQL IP, Frontend IP which are generated dynamically.

For Scaling stuff, you can create Autoscaling groups of Heat.

The heat templates at https://github.com/shashank0791/diablo-project/tree/master/heat-templates repo will help you gain more understanding and is also an exact replica of the architecture that you want along with the autoscaling group.

edit flag offensive delete link more
0

answered 2017-03-01 10:27:17 -0500

You could also check out the Web Applications reference architecture document which has example heat templates. https://developer.openstack.org/

edit flag offensive delete link more
0

answered 2017-02-28 18:51:50 -0500

zaneb gravatar image

I would look at the example templates. For example, there is a CloudFormation template that does pretty much exactly what you want.

You're probably better off converting that to HOT format, native OpenStack resources and software deployments, but there's plenty of examples in there that should be able to help with that too.

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: 2017-02-27 12:24:37 -0500

Seen: 318 times

Last updated: Mar 01 '17