pass URL of nested yaml as parameter

asked 2017-03-08 10:55:48 -0600

Tori gravatar image

updated 2017-03-08 10:56:40 -0600

I am using OS::Heat::ResourceGroup, I would like to use the same outer template with multiple different nested templates. To achieve this I would like to pass the location(URL) of the nested YAML as a parameter(see below). However I get the following error.

ERROR: Failed to validate: Could not fetch remote template "http://localhost/testdef.yaml": Failed to retrieve template: None: Max retries exceeded with url: /testdef.yaml (Caused by None)

When I hardcode the YAML location all works fine. Is it possible to do what I am trying to achieve.

description: test template
heat_template_version: 2015-04-30
    type: string
    default: http://localhost/testdef.yaml
    type: string
    default: 2
    type: OS::Heat::ResourceGroup
      count: { get_param: instances }
        type: {get_param: file_name}
        #type: http://localhost/testdef.yaml
          index: '%index%'
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-03-09 04:22:46 -0600

Tori gravatar image

when passing in with an alias/lookup such as localhost like this: default: http://localhost/testdef.yaml as a parameter this fails but if i switch to a predefined resolvable IP it works e.g. "default:"

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-08 10:55:48 -0600

Seen: 270 times

Last updated: Mar 09 '17