【发布时间】:2021-04-22 14:57:15
【问题描述】:
需要将 user_data 替换为 comma_delimited_list 中资源组中的动态值。
%index% 不起作用。
heat_template_version: 2015-10-15
test_parameter:
type: comma_delimited_list
label: test param list
description: test descr
default: 'test_param_1,test_param_2'
.......
......
type: OS::Heat::ResourceGroup
properties:
.........
.........
user_data:
str_replace:
template: |
get the local value of the instance : $val
params:
$val: { get_param: [ test_parameter, %index% ] }
如何将 json/list 值传递给 HEAT-user_data 中的模板
【问题讨论】: