| 1 |
Using Mistral to execute Workflows on an arbitrary cloud |
| 2 |
======================================================== |
| 3 |
|
| 4 |
It is possible to execute a workflow on any arbitrary cloud without additional |
| 5 |
configuration on the Mistral server side. It is possible to have Mistral use |
| 6 |
an external OpenStack cloud even when it isn't deployed in an OpenStack |
| 7 |
environment (i.e. no Keystone integration). |
| 8 |
|
| 9 |
This setup is particularly useful when Mistral is used in standalone mode, |
| 10 |
where the Mistral service is not part of the OpenStack cloud and runs |
| 11 |
separately. |
| 12 |
|
| 13 |
To enable this operation, the user can use ``--os-target-username``, |
| 14 |
``--os-target-password``, ``--os-target-tenant-id``, |
| 15 |
``--os-target-tenant-name``, ``--os-target-auth-token``, |
| 16 |
``--os-target-auth-url``, ``--os-target_cacert``, and |
| 17 |
``--os-target-region-name`` parameters. |
| 18 |
|
| 19 |
For example, the user can return the heat stack list with this setup as shown |
| 20 |
below: |
| 21 |
|
| 22 |
.. code-block:: shell |
| 23 |
|
| 24 |
$ mistral \ |
| 25 |
--os-target-auth-url=http://keystone2.example.com:5000/v3 \ |
| 26 |
--os-target-username=testuser \ |
| 27 |
--os-target-tenant=testtenant \ |
| 28 |
--os-target-password="MistralRuleZ" \ |
| 29 |
--os-mistral-url=http://mistral.example.com:8989/v2 \ |
| 30 |
run-action heat.stacks_list |
| 31 |
|
| 32 |
The OS-TARGET-* parameters can be set in environment variables as: |
| 33 |
|
| 34 |
.. code-block:: shell |
| 35 |
|
| 36 |
$ export OS_TARGET_AUTH_URL=http://keystone2.example.com:5000/v3 |
| 37 |
$ export OS_TARGET_USERNAME=admin |
| 38 |
$ export OS_TARGET_TENANT_NAME=tenant |
| 39 |
$ export OS_TARGET_PASSWORD=secret |
| 40 |
$ export OS_TARGET_REGION_NAME=region |
| 41 |
|
| 42 |
Note on the --os-target_cacert parameter |
| 43 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 44 |
|
| 45 |
The `--os-target_cacert` parameter can be used to set a CA certificate for |
| 46 |
SSL communication with the target cloud's Keystone service. The CA certificate |
| 47 |
file is **NOT** transferred to the Mistral server. It is the responsibility of |
| 48 |
the user to ensure that the SSL Certificate is accessible for the Mistral |
| 49 |
Executor and SSL communication is possible with the target cloud. For testing |
| 50 |
purposes it is suggested to use the `--target_insecure` parameter. |