mirror of
https://github.com/BillyOutlast/ProxmoxVE.git
synced 2026-10-12 02:25:24 +00:00
Initial pegaprox
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: community-scripts
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://pegaprox.com | https://github.com/PegaProx/project-pegaprox
|
||||
|
||||
APP="PegaProx"
|
||||
var_tags="${var_tags:-proxmox;management;cluster}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-2048}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -f /etc/systemd/system/pegaprox.service ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if check_for_gh_release "pegaprox" "PegaProx/project-pegaprox"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop pegaprox
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing up Data"
|
||||
cp -r /opt/PegaProx/config /opt/pegaprox_config_backup
|
||||
cp -r /opt/PegaProx/logs /opt/pegaprox_logs_backup 2>/dev/null || true
|
||||
msg_ok "Backed up Data"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pegaprox" "PegaProx/project-pegaprox" "tarball" "latest" "/opt/PegaProx"
|
||||
|
||||
msg_info "Restoring Data"
|
||||
cp -r /opt/pegaprox_config_backup/. /opt/PegaProx/config
|
||||
cp -r /opt/pegaprox_logs_backup/. /opt/PegaProx/logs 2>/dev/null || true
|
||||
rm -rf /opt/pegaprox_config_backup /opt/pegaprox_logs_backup
|
||||
msg_ok "Restored Data"
|
||||
|
||||
msg_info "Updating Python Dependencies"
|
||||
cd /opt/PegaProx || exit
|
||||
$STD /opt/PegaProx/venv/bin/pip install -q -r requirements.txt
|
||||
msg_ok "Updated Python Dependencies"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start pegaprox
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
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}:5000${CL}"
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "PegaProx",
|
||||
"slug": "pegaprox",
|
||||
"categories": [
|
||||
1
|
||||
],
|
||||
"date_created": "2026-03-11",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": 5000,
|
||||
"documentation": "https://docs.pegaprox.com/",
|
||||
"website": "https://pegaprox.com/",
|
||||
"logo": "https://pegaprox.com/pictures/pegaprox-logo.png",
|
||||
"config_path": "/opt/PegaProx/config/pegaprox.db",
|
||||
"description": "PegaProx is a powerful web-based management interface for Proxmox VE and XCP-ng clusters. Manage multiple clusters from a single dashboard with live monitoring, VM management, cross-cluster migrations, load balancing, and more.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/pegaprox.sh",
|
||||
"resources": {
|
||||
"cpu": 2,
|
||||
"ram": 2048,
|
||||
"hdd": 8,
|
||||
"os": "Debian",
|
||||
"version": "13"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": "pegaprox",
|
||||
"password": "admin"
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "Access the web interface at https://<IP>:5000",
|
||||
"type": "info"
|
||||
},
|
||||
{
|
||||
"text": "Change the default password after first login!",
|
||||
"type": "warning"
|
||||
},
|
||||
{
|
||||
"text": "Supports Proxmox VE 8.0+ and XCP-ng 8.2+",
|
||||
"type": "info"
|
||||
},
|
||||
{
|
||||
"text": "Configuration and database are stored in /opt/PegaProx/config/",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: community-scripts
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://pegaprox.com | https://github.com/PegaProx/project-pegaprox
|
||||
|
||||
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 \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
curl \
|
||||
wget \
|
||||
git \
|
||||
openssl \
|
||||
sshpass \
|
||||
ca-certificates \
|
||||
sqlite3
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
fetch_and_deploy_gh_release "pegaprox" "PegaProx/project-pegaprox" "tarball" "latest" "/opt/PegaProx"
|
||||
|
||||
msg_info "Setting up Python Virtual Environment"
|
||||
cd /opt/PegaProx || exit
|
||||
python3 -m venv /opt/PegaProx/venv
|
||||
$STD /opt/PegaProx/venv/bin/pip install --upgrade pip
|
||||
$STD /opt/PegaProx/venv/bin/pip install -r requirements.txt
|
||||
msg_ok "Set up Python Virtual Environment"
|
||||
|
||||
msg_info "Creating Directories"
|
||||
mkdir -p /opt/PegaProx/{config,logs,ssl,static,web,images,backups}
|
||||
chmod 700 /opt/PegaProx/config
|
||||
chmod 700 /opt/PegaProx/ssl
|
||||
msg_ok "Created Directories"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/pegaprox.service
|
||||
[Unit]
|
||||
Description=PegaProx - Proxmox Cluster Management
|
||||
After=network.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/PegaProx
|
||||
Environment=PATH=/opt/PegaProx/venv/bin:/usr/local/bin:/usr/bin:/bin
|
||||
ExecStart=/opt/PegaProx/venv/bin/python /opt/PegaProx/pegaprox_multi_cluster.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
PrivateTmp=true
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=pegaprox
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now pegaprox
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in New Issue
Block a user