Ask Your Question
0

division operation in heat

asked 2014-08-25 02:19:57 -0500

Rohit Pande gravatar image

Hi All,

I want to take two input parameter (Number of User, capacity per instance) in heat. and based of the division of these two params value, I want to create these many Instances.

Example:

Number of Use : 6 capacity per instance : 2

Then I want to create instance based of the division of these params value

Instance to create = Number of Use / capacity per instance

So in this example : Instance to create = 6 / 2 = 3

Please suggest a sample heat template to achieve this.

Thanks in Advanced Rohit

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-21 18:42:02 -0500

Steve Baker gravatar image

There is currently no such feature in heat. This should be considered a feature request for the implementation of some math intrinsic functions.

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-08-25 02:19:57 -0500

Seen: 376 times

Last updated: Sep 21 '14