version: 0.1 description: This workflow is used to test agents deployment for DDT variables: agent-os: - linux-redhat-9-amd64 - linux-redhat-9-arm64 - linux-centos-8-amd64 - linux-centos-8-arm64 - linux-debian-12-amd64 - linux-debian-12-arm64 - linux-ubuntu-24.04-amd64 - linux-ubuntu-24.04-arm64 - linux-oracle-9-amd64 - linux-amazon-2023-amd64 - linux-amazon-2023-arm64 macos-agent-os: - macos-ventura-13-amd64 - macos-sonoma-14-amd64 manager-os: linux-ubuntu-22.04-amd64 infra-provider: aws macos-infra-provider: vagrant working-dir: /tmp/dtt1-poc tasks: # Unique manager allocate task - task: "allocate-manager-{manager-os}" description: "Allocate resources for the manager." do: this: process with: path: python3 args: - modules/allocation/main.py - action: create - provider: "{infra-provider}" - size: large - composite-name: "{manager-os}" - inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml" - track-output: "{working-dir}/manager-{manager-os}/track.yaml" - label-termination-date: "1d" - label-team: "qa" - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5741" on-error: "abort-all" cleanup: this: process with: path: python3 args: - modules/allocation/main.py - action: delete - track-output: "{working-dir}/manager-{manager-os}/track.yaml" # Unique manager provision task - task: "provision-manager-{manager-os}" description: "Provision the manager." do: this: process with: path: python3 args: - modules/provision/main.py - inventory: "{working-dir}/manager-{manager-os}/inventory.yaml" - install: - component: wazuh-manager type: assistant version: 4.9.0 live: true depends-on: - "allocate-manager-{manager-os}" on-error: "abort-all" # Unique agent allocate task - task: "allocate-agent-{agent}" description: "Allocate resources for the agent." do: this: process with: path: python3 args: - modules/allocation/main.py - action: create - provider: "{infra-provider}" - size: small - composite-name: "{agent}" - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml" - track-output: "{working-dir}/agent-{agent}/track.yaml" - label-termination-date: "1d" - label-team: "qa" - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5741" on-error: "abort-all" foreach: - variable: agent-os as: agent depends-on: - "provision-manager-{manager-os}" cleanup: this: process with: path: python3 args: - modules/allocation/main.py - action: delete - track-output: "{working-dir}/agent-{agent}/track.yaml" # Generic agent test task - task: "run-agent-{agent}-tests" description: "Run tests install for the agent {agent}." do: this: process with: path: python3 args: - modules/testing/main.py - targets: - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml" - agent: "{working-dir}/agent-{agent}/inventory.yaml" - tests: "install,registration" - component: "agent" - wazuh-version: "4.9.0" - wazuh-revision: "40907" - live: true foreach: - variable: agent-os as: agent depends-on: - "allocate-agent-{agent}" # Unique agent allocate task - task: "allocate-macos-agent-{agent}" description: "Allocate resources for the agent." do: this: process with: path: python3 args: - modules/allocation/main.py - action: create - provider: "{macos-infra-provider}" - size: small - composite-name: "{agent}" - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml" - track-output: "{working-dir}/agent-{agent}/track.yaml" - label-termination-date: "1d" - label-team: "qa" - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5741" on-error: "abort-all" foreach: - variable: macos-agent-os as: agent depends-on: - "provision-manager-{manager-os}" cleanup: this: process with: path: python3 args: - modules/allocation/main.py - action: delete - track-output: "{working-dir}/agent-{agent}/track.yaml" # Generic agent test task - task: "run-macos-agent-{agent}-tests" description: "Run tests install for the agent {agent}." do: this: process with: path: python3 args: - modules/testing/main.py - targets: - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml" - agent: "{working-dir}/agent-{agent}/inventory.yaml" - tests: "install,registration" - component: "agent" - wazuh-version: "4.9.0" - wazuh-revision: "40907" - live: true foreach: - variable: macos-agent-os as: agent depends-on: - "allocate-macos-agent-{agent}"