Resource Type: mistral_workflow

Defined in:
lib/puppet/type/mistral_workflow.rb
Providers:
openstack

Overview

This allows manifests to declare a workflow to be created or removed in Mistral.

mistral_workflow { “my_workflow”:

ensure => present,
definition_file => "/home/workflows/my_workflow.yaml",
is_public => yes,

}

Known problems / limitations:

* When creating a worflow, the name supplied is not used because mistral
  will name the workflow according to its definition.
* You MUST provide the definition_file if you want to change any property
  because that will cause the provider to run the 'workflow update'
  command.
* DO NOT put multiple workflows in the definition_file. Although the
  mistral client allows it, the provider does not support it.
* Ensure this is run on the same server as the mistral-api service.

Properties

  • ensure

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
    • latest
  • id

    The unique id of the workflow

    Supported values:
    • /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/

Parameters

  • definition_file

    The location of the file defining the workflow

    Supported values:
    • /.*/
  • is_public (defaults to: true)

    Whether the workflow is public or not. Default to ‘true`

    Supported values:
    • true
    • false
  • name (namevar)

    The name of the workflow

    Supported values:
    • /.*/
  • provider

    The specific backend to use for this ‘mistral_workflow` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.