Ask Your Question
0

pass URL of nested yaml as parameter

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

Tori gravatar image

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

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
parameters:
  file_name:
    type: string
    default: http://localhost/testdef.yaml
  instances:
    type: string
    default: 2
resources:
  auto_scaling_group:
    type: OS::Heat::ResourceGroup
    properties:
      count: { get_param: instances }
      resource_def:
        type: {get_param: file_name}
        #type: http://localhost/testdef.yaml
        properties:
          index: '%index%'
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

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: http://10.10.0.211/testdef.yaml"

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: 2017-03-08 10:55:48 -0500

Seen: 164 times

Last updated: Mar 09 '17