Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- heat_template_version: newton
- parameters:
- one:
- type: string
- default: one
- two:
- type: string
- default: two
- version:
- type: string
- default: lbaasv2
- resources:
- debug:
- type: OS::Heat::Value
- properties:
- value:
- yaql:
- expression:
- str_replace:
- template: '$.data[%version%]'
- params:
- '%version%': {get_param: version}
- data:
- lbaasv1:{get_param: one} # { get_attr: [openshift_masters, host] }
- lbaasv2:{get_param: two} # { get_attr: [openshift_masters, ip_address] }
Advertisement
Add Comment
Please, Sign In to add comment