0

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

错误看起来像:

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]

任何帮助深表感谢。

4

1 回答 1

4

您缺少一个导入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 插件。

于 2015-03-20T23:21:27.337 回答