[openstack-dev] [heat] Heat API v2 - Removal of template_url?

Stephen Gran stephen.gran at theguardian.com
Thu Dec 5 16:28:08 UTC 2013


On 05/12/13 16:11, ELISHA, Moshe (Moshe) wrote:
> Hey,
>
> I really liked the v2 Heat API (as proposed in Create a new v2 Heat API
> <https://blueprints.launchpad.net/heat/+spec/v2api>) and I think it
> makes a lot of sense.
>
> One of the proposed changes is to “Remove template_url from the request
> POST”, so the template will be passed using the “template” parameter in
> the request body.
>
> Could someone please elaborate how exactly Heat Orchestration Templates
> written in YAML will be embedded in the body?
>
> As I understand the YAML template should be inserted as string otherwise
> JSON parsers will not be able to parse the JSON body.
>
> If indeed the template is inserted as string, as far as I know, JSON
> does not support multiline strings and the available workarounds are not
> so pretty and require escaping.
>
> The escaping issue gets more complicated when "UserData" is used in the
> YAML.
>
> Will the “template_url” be removed and if so how will the “template”
> contain the YAML template?

Oh, that would be sad indeed.  We're just looking at this pattern in AWS:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-stack.html

And using that in heat as well would be very welcome.

Cheers,
-- 
Stephen Gran
Senior Systems Integrator - theguardian.com
Please consider the environment before printing this email.
------------------------------------------------------------------
Visit theguardian.com   

On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad   
Save up to 33% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access.
Visit subscribe.theguardian.com

This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.
 
Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.
 
Guardian News & Media Limited
 
A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP
 
Registered in England Number 908396

--------------------------------------------------------------------------




More information about the OpenStack-dev mailing list