-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(all): disambiguate components and actions
* Introduces the notion of operation --> triplet `service-name_component-name_action-name`. - An operation is the target of deployments. - Playbooks names are operation names. - Dag files define operations with their dependencies * A component is only a part of a service (such as `namenode` is a component of the service `hdfs`) * An action is the keywork defining what's being done i.e. `install`, `config`... fix #169
- Loading branch information
Showing
30 changed files
with
408 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
Runners | ||
======= | ||
|
||
Runners are used to run actions with the DAG ordering constraints. | ||
Runners are used to run operations with the DAG ordering constraints. | ||
|
||
To use a runner, an :py:class:`~tdp.core.runner.action_runner.ActionRunner` must be instanciated. | ||
To use a runner, an :py:class:`~tdp.core.runner.operation_runner.OperationRunner` must be instanciated. | ||
In order to work, it needs a :py:class:`~tdp.core.dag.Dag` instance to run | ||
actions with the DAG ordering constraints,an implementation of `Executor` to run each actions, | ||
operations with the DAG ordering constraints, an implementation of `Executor` to run each operation, | ||
a `ServiceManager` `dict` to know the service version | ||
to deploy needed to build a :ref:`deployment_log`. | ||
|
||
Executor | ||
-------- | ||
|
||
:py:class:`~tdp.core.runner.executor.Executor` define the interface to run an action. | ||
:py:class:`~tdp.core.runner.executor.Executor` define the interface to run an operation. | ||
|
||
AnsibleExecutor | ||
--------------- | ||
|
||
:py:class:`~tdp.core.runner.ansible_executor.AnsibleExecutor` is an implementation for :py:class:`~tdp.core.runner.executor.Executor` | ||
in order to run action with Ansible. The action name is the Ansible playbook to execute with `ansible-playbook` command. | ||
in order to run operations with Ansible. The operation name is the Ansible playbook to execute with `ansible-playbook` command. | ||
|
||
ActionRunner | ||
------------ | ||
|
||
:py:class:`~tdp.core.runner.action_runner.ActionRunner` uses :py:class:`~tdp.core.runner.executor.Executor` implementations to run one action | ||
or run multiple action with the DAG ordering constraints. | ||
OperationRunner | ||
--------------- | ||
|
||
If one action is run, only an :ref:`action_log` is returned, if multiple actions are run, a :ref:`deployment_log` is returned. | ||
:py:class:`~tdp.core.runner.operation_runner.OperationRunner` uses :py:class:`~tdp.core.runner.executor.Executor` implementations to run one operation | ||
or run multiple opertaions with the DAG ordering constraints. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.