Skip to content

Commit

Permalink
fix(#4850): removing readme.md wf
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-akim committed Apr 1, 2024
1 parent af4b19f commit 8442103
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions deployability/modules/workflow_engine/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
3. Install requirements:

```bash
pip3 install -r /deployability/deps/requirements.txt
pip3 install -r deployability/deps/requirements.txt
```

4. Install the Workflow engine library and its launcher:
Expand Down Expand Up @@ -53,7 +53,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
manager-os: linux-ubuntu-22.04-amd64
infra-provider: vagrant
working-dir: /tmp/dtt1-poc

tasks:
# Generic agent test task
- task: "run-agent-tests-{agent}"
Expand All @@ -63,9 +63,9 @@ Initially, Python libraries must be installed. It is recommended to use virtual
with:
path: python3
args:
- testing/main.py
- modules/testing/main.py
- inventory: "{working-dir}/agent-{agent}/inventory.yaml"
- dependencies:
- dependencies:
- manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- agent: "{working-dir}/agent-{agent}/inventory.yaml"
- tests: "install,register,stop"
Expand All @@ -78,7 +78,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
foreach:
- variable: agents-os
as: agent

# Generic agent test task
- task: "run-agent-tests-uninstall-{agent}"
description: "Run tests uninstall for the {agent} agent."
Expand All @@ -87,7 +87,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
with:
path: python3
args:
- testing/main.py
- modules/testing/main.py
- inventory: "{working-dir}/agent-{agent}/inventory.yaml"
- dependencies:
- manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
Expand All @@ -101,7 +101,23 @@ Initially, Python libraries must be installed. It is recommended to use virtual
foreach:
- variable: agents-os
as: agent


# Unique manager provision task
- task: "provision-manager"
description: "Provision the manager."
do:
this: process
with:
path: python3
args:
- modules/provision/main.py
- inventory-manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- install:
- component: wazuh-manager
type: package
depends-on:
- "allocate-manager"

# Unique manager allocate task
- task: "allocate-manager"
description: "Allocate resources for the manager."
Expand All @@ -110,7 +126,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
with:
path: python3
args:
- allocation/main.py
- modules/allocation/main.py
- action: create
- provider: "{infra-provider}"
- size: large
Expand All @@ -122,10 +138,10 @@ Initially, Python libraries must be installed. It is recommended to use virtual
with:
path: python3
args:
- allocation/main.py
- modules/allocation/main.py
- action: delete
- track-output: "{working-dir}/manager-{manager-os}/track.yaml"

# Generic agent provision task
- task: "provision-install-{agent}"
description: "Provision resources for the {agent} agent."
Expand All @@ -134,7 +150,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
with:
path: python3
args:
- provision/main.py
- modules/provision/main.py
- inventory-agent: "{working-dir}/agent-{agent}/inventory.yaml"
- inventory-manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- install:
Expand All @@ -147,7 +163,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
foreach:
- variable: agents-os
as: agent

# Generic agent provision task
- task: "provision-uninstall-{agent}"
description: "Provision resources for the {agent} agent."
Expand All @@ -156,7 +172,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
with:
path: python3
args:
- provision/main.py
- modules/provision/main.py
- inventory-agent: "{working-dir}/agent-{agent}/inventory.yaml"
- inventory-manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- uninstall:
Expand All @@ -167,7 +183,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
foreach:
- variable: agents-os
as: agent

# Generic agent allocate task
- task: "allocate-{agent}"
description: "Allocate resources for the {agent} agent."
Expand All @@ -188,7 +204,7 @@ Initially, Python libraries must be installed. It is recommended to use virtual
with:
path: python3
args:
- allocation.py
- modules/allocation/main.py
- action: delete
- track-output: "{working-dir}/agent-{agent}/track.yaml"
foreach:
Expand Down Expand Up @@ -268,7 +284,7 @@ tasks:
with:
path: python3
args:
- testing/main.py
- modules/testing/main.py
- inventory: "{working-dir}/agent-{agent}/inventory.yaml"
- dependencies:
- manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
Expand Down

0 comments on commit 8442103

Please sign in to comment.