Skip to content

Commit

Permalink
Replace deprecated Fn::Select with yaql. redhat-openstack#350
Browse files Browse the repository at this point in the history
  • Loading branch information
ioggstream committed May 15, 2017
1 parent 4315856 commit bb7c318
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion openshift.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
heat_template_version: 2014-10-16
heat_template_version: newton

description: >
Deploy Atomic/OpenShift 3 on OpenStack.
Expand Down Expand Up @@ -1052,6 +1052,30 @@ outputs:
this URL; no body nor extra headers are needed.
value: {get_attr: [scale_down_policy, alarm_url]}

# Get data via yaql as get_attr with AutoScalingGroup outputs_list
# works per-element. Eg.
# get_attr: [ outputs_list, key1, key2, ..] yields
# [ item[key1][key2] for item in outputs_list ]
ca_cert:
description: Openshift CA certificate.
value:
yaql:
expression: $.data.items[0]
data:
items: {get_attr: [openshift_nodes, outputs_list, ca_cert]}

# Get data via yaql as get_attr with AutoScalingGroup outputs_list
# works per-element. Eg.
# get_attr: [ outputs_list, key1, key2, ..] yields
# [ item[key1][key2] for item in outputs_list ]
ca_key:
description: Openshift CA certificate key.
value:
yaql:
expression: $.data.items[0]
data:
items: {get_attr: [openshift_nodes, outputs_list, ca_key]}

ca_cert:
description: Openshift CA certificate.
value: {"Fn::Select": ["0", {get_attr: [openshift_nodes, outputs_list, ca_cert]}]}
Expand Down

0 comments on commit bb7c318

Please sign in to comment.