最近,我正在尝试使用Cloudify部署,并了解到执行vm配置所需的cloudify代理。我回顾了以下插件:https://github.com/cloudify-cosmo/cloudify-cloudstack-plugin/blob/master/plugin.yaml,我特别想在这里理解代理的安装方法。
到目前为止,据我所知,在蓝图或导入的.yaml文件中使用的任何插件都应该导入或定义。上述plugin.yaml文件包含以下节点:
cloudify.cloudstack.nodes.WindowsServer:
derived_from: cloudify.cloudstack.nodes.VirtualMachine
interfaces:
cloudify.interfaces.worker_installer:
install:
implementation: agent.windows_agent_installer.tasks.install
inputs: {}
start:
implementation: agent.windows_agent_installer.tasks.start
stop:
implementation: agent.windows_agent_installer.tasks.stop
inputs: {}
uninstall:
implementation: agent.windows_agent_installer.tasks.uninstall
inputs: {}
restart:
implementation: agent.windows_agent_installer.tasks.restart
inputs: {}
cloudify.interfaces.plugin_installer:
install:
implementation: agent.windows_plugin_installer.tasks.install
inputs: {}如果agent.windows_agent_installer.tasks.start文件中没有导入插件的痕迹,我想知道代理插件是如何在这里用作实现的: yaml。欢迎任何想法。谢谢
发布于 2019-07-24 17:57:08
我认为你混淆了这些术语。
插件- Cloudify Orchestrator的扩展。
代理-在Cloudify创建的VM上运行的服务,用于在VM上运行任务。如果您想要使用CloudStack插件,您应该在蓝图的开头导入它,如下所示:
imports:
- https://github.com/cloudify-cosmo/cloudify-cloudstack-plugin/blob/master/plugin.yaml您没有提到您正在使用的Cloudify版本,但如果您使用的是最新版本(4.6)或任何高于4.2的版本,您应该在使用之前将插件上传到管理器,然后通过以下方式导入:
imports:
- plugin:cloudify-cloudstack-plugin代理安装过程可以通过多种方式完成,您可以按照文档here进行操作,并选择最适合您的方法。默认方法是remote,它将通过SSH或WinRM完成。您可以查看此example,了解如何在Windows上安装代理。
https://stackoverflow.com/questions/57177353
复制相似问题