Skip to content

How to use sub templates in 'stack.Create(c, opts)' function? #2219

@dayeguilaiye

Description

@dayeguilaiye

templates looks like:

/home/ubuntu/random-hash-code-path/heat.yaml:

......
type: subtemplate.yaml
......

And there is a subtemplate.yaml file in the same directory.

But the path is not the same as go program working directory, so I will get a error which tells me cannot find subtemplate.yaml.

So I tried to edit the stacks.Template.TE.Files (which is a map[string]string), like: {"subtemplate.yaml", "heat_template_version: "2013-05-23"..........."}

But I found it was overwrite to empty when executing stack.Create, so I got the same error.

Is there anyway to use sub template?

plus: the openstack HOT package is uploaded by our users, so the name of subtemplate.yaml is just a example, not certain file name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions