cloudify

Cloudify chef plugin relationship operation


As I know Cloudify's Chef Plugin allow to define operation in keyword:

runlists:

with default prefixs are:

cloudify.interfaces.lifecycle, cloudify.interfaces.relationship_lifecycle

So now I want to run relationship's operations such as

cloudify.interfaces.relationship_lifecycle.preconfigure

as below

runlists:
----preconfigure: scripts/pre.sh

then I don't know which interface will be run? Source interface or target? And if I want to specify to run target interface, how can i do that?


Solution

  • In the chef plugin all relationship operations use the source interface.

    If you want to specify to run on the target interface, you would need to add a new relationship type to the plugin with the target interface defined. However, that would only work if the target interface represents a node that is contained on a VM that has chef.