Is nested get_param a valid syntax for heat template?

asked 2017-03-28 23:07:23 -0500

starnight gravatar image

Is nested get_param a valid syntax for heat template?

parameters:   env_data:
  type: json
  description: Env Data
  default: |
     { {"image":{ "rhel": {"rhel-guest-image-7.2-20160302.0"}}, {"Windows": {"Windows Image"}}},
       {"private_net_id": {"dev": {"191dc33a-ccc8-4624-82d5-78da86400390"}}},
       {"private_subnet_id": {"dev": {"3adbc77d-8962-4605-8e32-9fcbbc872e9e"}}},
       {"public_subnet_id": {"dev": {"191dc33a-ccc8-4624-82d5-78da86400390"}}} }      
resources: instance:
  type: OS::Nova::Server
     properties:
        name: { get_param: server_name }
        image: { get_param: [ env_data, image , get_param: [ env ] ] }   <--  using get_param inside get_param

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-30 11:08:09 -0500

zaneb gravatar image

Yes it is, although I would write it:

{get_param: [env_data, image, {get_param: env}]}
edit flag offensive delete link more

Comments

Hello Zane,

Thanks a lot.

Ashok

starnight gravatar imagestarnight ( 2017-03-31 07:05:55 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-03-28 23:07:23 -0500

Seen: 304 times

Last updated: Mar 30 '17