-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DTT1 - Iteration 3 - Provision module - Module documentation #4851
Comments
UpdateSAMPLE Provision moduleUser documentationThe Provision module installs libraries, dependencies and applications on the allocated infrastructure (From Allocation module) This module can be executed as follows: A. Installing and using Workflow engineThe execution of the workflow is done through the installation of its library. Initially, Python libraries must be installed. we recommended the use of virtual environments. Follow the technical documentation at https://docs.python.org/3/library/venv.html.
Run the module by doing the following steps:
B. Direct executionTo execute the Allocation module without installing the Workflow engine, you can use the launcher ('module/provision/main.py'):
While in wazuh-qa/deployability python3 module/provision/main.py --inventory-manager { inventory .yaml} --install "{'component': '{component}', 'type': '{type}', 'version': '{version}'}" Example: python3 module/provision/main.py --inventory-manager /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml --install "{'component': 'pyyaml', 'type': 'pip', 'version' : '6.0.1'}" Technical documentationThe It can receive instructions either through the command line or be mediated through the Workflow Engine. In both cases, the following information is required: - task: "provision-install-{agent}"
description: "Provision resources for the {agent} agent."
do:
this: process
with:
path: python3
args:
- modules/provision/main.py
- inventory: "{working-dir}/agent-{agent}/inventory.yaml"
- dependencies:
- agent: "{working-dir}/agent-{agent}/inventory.yaml"
- install:
- component: curl
- component: python
type: source
version: "{python-version}"
- component: virtualenv
type: pip
- component: deps/requirements.txt
type: pip
- component: pyyaml
type: pip
version: 6.0.1
depends-on:
- "allocate-{agent}"
foreach:
- variable: agents-os
as: agent The snippet obtained from a Workflow fixture highlights the parameters necessary for its operation. These include the inventory path, the dependency/library to install, and the installation type. It requires an infrastructure on which to perform its actions. The module is composed of:
LicenseWAZUH Copyright (C) 2015 Wazuh Inc. (License GPLv2) |
Being general is ok. However, I will mark some details:
|
UpdateConsidering the Review Notes:
PR added. |
We need to adapt the documentation with this recommendations:
|
UpdateSample of #4851 (comment) was changed following #4851 (comment) criteria |
LGTM |
Description
The objective of this issue is to generate the documentation of the Provision module.
Tasks
The text was updated successfully, but these errors were encountered: