Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.38 KB | None | 0 0
  1. heat_template_version: queens
  2.  
  3. parameters:
  4.   config_data:
  5.     type: json
  6.     default:
  7.       deploy_inventory:
  8.         bastion:
  9.          - vdi-bastion-0
  10.         node:
  11.          - vdi-a
  12.           - vdi-b
  13.           - vdb-c
  14.   node_bridge:
  15.     type: json
  16.     default:
  17.       NodeIndex: 0
  18.   that:
  19.     type: number
  20.     default: 1
  21.  
  22.  
  23. resources:
  24.   a:
  25.     type: OS::Heat::TestResource
  26.     properties:
  27.       value:
  28.         yaql:
  29.           expression: $.data.map.t3
  30.           data:
  31.             map:
  32.               map_merge:
  33.                 - t0: 1
  34.                   t1: 2
  35.                 - t2: 3
  36.                   t3: 4
  37.  
  38.   b:
  39.     type: OS::Heat::TestResource
  40.     properties:
  41.       value:
  42.         yaql:
  43.           expression: $.data.map.NodeIndex
  44.           data:
  45.             map:
  46.               map_merge:
  47.                 - { get_param: config_data }
  48.                 - { get_param: node_bridge }
  49.  
  50.   c:
  51.     type: OS::Heat::TestResource
  52.     properties:
  53.       value:
  54.         yaql:
  55.           expression: $.data.map.deploy_inventory.node[$.data.map.NodeIndex]
  56.           data:
  57.             map:
  58.               map_merge:
  59.                 - { get_param: config_data }
  60.                 - { get_param: node_bridge }
  61.  
  62. outputs:
  63.   a:
  64.     value:
  65.       get_attr: [ a, output ]
  66.   b:
  67.     value:
  68.       get_attr: [ b, output ]
  69.   c:
  70.     value:
  71.       get_attr: [ c, output ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement