Custom workflow Plugin
Get the latest docs.
You are looking at documentation for an older release. Not what you want? Use the version selector on the top banner or click here.
These features are part of the utilities plugin.
Cloudify Utilities: Custom-workflow
Description
The custom workflow utility allows you to run list of action as separate workflow.
The plugin supports:
Plugin supports cloudify_custom_workflow.cloudify_custom_workflow.tasks.customwf
workflow with such parameters:
* nodes_to_runon
: List of node names for run action on.
* operations_to_execute
: List action names for run.
Steps for writing custom workflow
define actions in the nodes
For example on this node we defined two actions “sync_config” and “backup_config” with implementations.
CPE_A:
type: cloudify.nodes.ApplicationModule
relationships:
- type: cloudify.relationships.contained_in
target: fake_node
interfaces:
custom:
sync_config:
implementation: cpe_sync_config.txt
backup_config:
implementation: cpe_backup_config.txt
define the workflow:
workflows:
BackupFlow:
mapping: cloudify_custom_workflow.cloudify_custom_workflow.tasks.customwf
parameters:
nodes_to_runon:
default:
- router
- CPE_A
operations_to_execute:
default:
- custom.sync_config
- custom.backup_config
Here, a BackupFlow workflow defined, when executing the workflow it will execute sync_config, backup_config actions on router, CPE_A nodes.
For examples, see custom workflow examples.