The heat.engine.template Module

class heat.engine.template.Template(template, template_id=None)[source]

Bases: _abcoll.Mapping

A stack template.

classmethod load(context, template_id)[source]

Retrieve a Template with the given ID from the database

static reduce_joins(s)[source]

Reduces contiguous strings in Fn::Join to a single joined string eg the following { “Fn::Join” : [ ” ”, [ “str1”, “str2”, {“f”: “b”}, “str3”, “str4”]} is reduced to { “Fn::Join” : [ ” ”, [ “str1 str2”, {“f”: “b”}, “str3 str4”]}

static resolve_attributes(s, resources)[source]

Resolve constructs of the form { “Fn::GetAtt” : [ “WebServer”, “PublicIp” ] }

static resolve_availability_zones(s)[source]

looking for { “Fn::GetAZs” : “str” }

static resolve_base64(s)[source]

Resolve constructs of the form { “Fn::Base64” : “string” }

resolve_find_in_map(s)[source]

Resolve constructs of the form { “Fn::FindInMap” : [ “mapping”, “key”, “value” ] }

static resolve_joins(s)[source]

Resolve constructs of the form { “Fn::Join” : [ “delim”, [ “str1”, “str2” ] }

static resolve_param_refs(s, parameters)[source]

Resolve constructs of the form { “Ref” : “string” }

static resolve_resource_refs(s, resources)[source]

Resolve constructs of the form { “Ref” : “resource” }

store(context=None)[source]

Store the Template in the database and return its ID

This Page