【问题标题】:how to use strings and parameters in openstack heat如何在 openstack heat 中使用字符串和参数
【发布时间】:2016-01-13 00:37:12
【问题描述】:

我已经定义了一个构建参数,我想将它与资源中的一个字符串一起使用,但我遇到了错误。

在此上下文中不允许解析模板文件:///update.yaml 映射值时出错 在“”中,第 14 行,第 46 列

heat_template_version: 2015-04-30
description: A base Server
parameters:
  build:
    type: string
    description: application build number
resources:
  server1:
    type: OS::Nova::Server
    properties:
      flavor: y6.tiny
      name: server1
      networks: [network: 45d06e78-3952-460e-bdba-1cf674621c3e]
      image: component-{ get_param: build }
      key_name: key
      security_groups:
        - DevOps-Sec

【问题讨论】:

    标签: openstack heat


    【解决方案1】:

    你真的在传递参数值吗?尝试将模板中“build”的默认值设置为最近的内部版本号。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-29
      • 1970-01-01
      • 1970-01-01
      • 2020-11-22
      • 2015-03-21
      • 1970-01-01
      相关资源
      最近更新 更多