上传蓝图时厨师插件cloudify错误

chef plugin cloudify error while uploading blueprint

我在尝试验证和上传使用 chef-plugin for Cloudify 创建的蓝图时遇到错误。我正在导入 chef-plugin。

错误看起来像:

CloudifyCliError: Failed to validate blueprint my_blueprint.yaml: Missing definition for relationship cloudify.relationships.connected_to which is declared as derived by relationship cloudify.chef.connected_to

这是我的 blueprint.yaml 的样子:

tosca_definitions_version: cloudify_dsl_1_0

imports:
  - http://getcloudify.org/spec/chef-plugin/1.1/plugin.yaml

node_templates:

  testserver:
    type: cloudify.chef.nodes.WebServer
    properties:
      chef_config:
        version: 11.18.0
        chef_server_url: URL
        validation_client_name: chef-validator
        validation_key: ""
        node_name_prefix: chef-node-
        node_name_suffix: testserver.com
        environment: _default
        runlist: recipe[cookbook::recipe]

非常感谢任何帮助。

您缺少 types.yaml

的导入

类似于

imports:
  - http://www.getcloudify.org/spec/cloudify/3.1/types.yaml

请务必在 http://getcloudify.org/guide/3.1/plugin-chef.html

查看 Chef 插件文档

如果这是您第一次尝试使用 Cloudify,我建议您从这里开始 http://getcloudify.org/guide/3.1/quickstart.html 并且只有在您掌握了基础知识之后,才能继续使用 chef 插件。