Skip to content
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

Fix manager_agent environment #4808

Merged
merged 5 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/system/provisioning/manager_agent/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
agent_id: "{{ agent1_id }}"
agent_hostname: "{{ agent1_hostname }}"
agent_key: "{{ agent1_key }}"
agent_user: "{{agent_user}}"
agent_user: "{{agent1_user}}"
restart_command: "{{restart_command_415}}"
vars_files:
- ./vars/configurations.yml
Expand All @@ -86,7 +86,7 @@
agent_id: "{{ agent2_id }}"
agent_hostname: "{{ agent2_hostname }}"
agent_key: "{{ agent2_key }}"
agent_user: "{{agent_user}}"
agent_user: "{{agent1_user}}"
restart_command: "{{restart_command_4_2}}"
vars_files:
- ./vars/configurations.yml
Expand All @@ -100,7 +100,7 @@
agent_id: "{{ agent3_id }}"
agent_hostname: "{{ agent3_hostname }}"
agent_key: "{{ agent3_key }}"
agent_user: "{{agent_user}}"
agent_user: "{{agent3_user}}"
restart_command: "{{restart_command_4_2}}"
vars_files:
- ./vars/configurations.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ cluster_key: "00000000000000000000000000000000"
manager_hostname: "wazuh-manager"

log_file: "/var/log/secure" #Remember to change in agents ossec.conf if changed
agent_user: "ossec" #Only valid for agents verions<4.2.5

restart_command_415: /var/ossec/bin/ossec-control restart
restart_command_4_2: /var/ossec/bin/wazuh-control restart

agent1_id: "001"
agent1_hostname: "wazuh-agent1"
agent1_key: "1111111111111111111111111111111111111111111111111111111111111111"
agent1_package: "https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.1.5-1_amd64.deb"
agent1_user: "ossec" #Only valid for agents verions<4.2.5

agent2_id: "002"
agent2_hostname: "wazuh-agent2"
agent2_key: "2222222222222222222222222222222222222222222222222222222222222222"
agent2_package: "https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.2.2-1_amd64.deb"
agent_user_4_2: "wazuh"

agent3_id: "003"
agent3_hostname: "wazuh-agent3"
agent3_key: "3333333333333333333333333333333333333333333333333333333333333333"
agent3_package: "https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.2.5-1_amd64.deb"
agent3_package: "https://{{package_repository}}.wazuh.com/{{repository}}/apt/pool/main/w/wazuh-agent/wazuh-agent_{{package_version}}-{{package_revision}}_amd64.deb"
agent3_user: "root" #Only valid for agents verions=>4.2.5

docker_network: "cluster_net"

Expand Down
Loading