Skip to content

Instantly share code, notes, and snippets.

@mcouthon
Last active March 28, 2018 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcouthon/73705397d4d2235408b6f85046ae98ff to your computer and use it in GitHub Desktop.
Save mcouthon/73705397d4d2235408b6f85046ae98ff to your computer and use it in GitHub Desktop.
groups:
heal_group:
members: [{{ members }}]
policies:
host_failure_policy:
type: cloudify.policies.types.host_failure
properties:
service:
- .*host.*.cpu.total.system
interval_between_workflows: 600
triggers:
auto_heal_trigger:
type: cloudify.policies.triggers.execute_workflow
parameters:
workflow: heal
workflow_parameters:
node_instance_id: { 'get_property': [ SELF, node_id ] }
diagnose_value: { 'get_property': [ SELF, diagnose ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment