ioggstream

Untitled

May 18th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.62 KB | None | 0 0
  1. heat_template_version: newton
  2.  
  3. parameters:
  4.   one:
  5.     type: string
  6.     default: one
  7.   two:
  8.     type: string
  9.     default: two
  10.   version:
  11.     type: string
  12.     default: lbaasv2
  13.  
  14. resources:
  15.   debug:
  16.     type: OS::Heat::Value
  17.     properties:
  18.       value:
  19.         yaql:
  20.           expression:
  21.             str_replace:
  22.               template: '$.data[%version%]'
  23.               params:
  24.                '%version%': {get_param: version}
  25.           data:
  26.             lbaasv1:{get_param: one}  # { get_attr: [openshift_masters, host] }
  27.             lbaasv2:{get_param: two}  # { get_attr: [openshift_masters, ip_address] }
Advertisement
Add Comment
Please, Sign In to add comment