diff --git a/ct/wazuh.sh b/ct/wazuh.sh new file mode 100644 index 0000000..507217b --- /dev/null +++ b/ct/wazuh.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash +source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) +# Copyright (c) 2024 community-scripts ORG +# Author: Omar Minaya +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://wazuh.com/ + +APP="Wazuh" +var_tags="security;monitoring" +var_cpu="8" +var_ram="4096" +var_disk="24" +var_os="debian" +var_version="12" +var_unprivileged="1" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -d /var ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating ${APP} LXC" + $STD apt-get update + $STD apt-get -y upgrade + msg_ok "Updated ${APP} LXC" + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:443${CL}" diff --git a/install/wazuh-install.sh b/install/wazuh-install.sh new file mode 100644 index 0000000..56db6bb --- /dev/null +++ b/install/wazuh-install.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash + +# Copyright (c) 2024 community-scripts ORG +# Author: Omar Minaya +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://wazuh.com/ + +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y \ + sudo \ + curl +msg_ok "Installed Dependencies" + +msg_info "Downloading Wazuh Installation Files" +wget https://packages.wazuh.com/4.11/wazuh-install.sh +msg_ok "Downloaded Wazuh Files" + +msg_info "Installing Wazuh" +bash ./wazuh-install.sh -a +msg_ok "Installed Wazuh" + +motd_ssh +customize + +msg_info "Cleaning up" +rm -f wazuh-*.sh +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" diff --git a/json/wazuh.json b/json/wazuh.json new file mode 100644 index 0000000..40487e0 --- /dev/null +++ b/json/wazuh.json @@ -0,0 +1,31 @@ +{ + "name": "Wazuh", + "slug": "wazuh", + "categories": [1], + "date_created": "2024-03-25", + "type": "ct", + "updateable": false, + "privileged": false, + "interface_port": 443, + "documentation": "https://documentation.wazuh.com/", + "website": "https://wazuh.com/", + "logo": "https://avatars.githubusercontent.com/u/13752566?s=200&v=4", + "description": "Wazuh is an open-source security monitoring solution that provides endpoint protection, network monitoring, and log analysis capabilities.", + "install_methods": [ + { + "type": "default", + "script": "ct/wazuh.sh", + "resources": { + "cpu": 8, + "ram": 4096, + "hdd": 24, + "os": "debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": "root", + "password": null + } +}