Add Wazuh dashboard ad manager entrypoint configuration

This commit is contained in:
Victor Carlos Erenu
2025-11-11 00:13:46 +07:00
parent 9f12a03bfc
commit e104803267
12 changed files with 425 additions and 127 deletions
@@ -32,13 +32,19 @@ do
fi
done
cat << EOF >> $dashboard_config_file
hosts:
- 1513629884013:
url: $wazuh_url
port: $wazuh_port
username: $api_username
password: $api_password
run_as: $api_run_as
EOF
grep -q 1513629884013 $dashboard_config_file
_config_exists=$?
if [[ $_config_exists -ne 0 ]]; then
cat << EOF >> $dashboard_config_file
hosts:
- 1513629884013:
url: $wazuh_url
port: $wazuh_port
username: $api_username
password: $api_password
run_as: $api_run_as
EOF
else
echo "Wazuh APP already configured"
fi