toloto redis rimesso mysql

This commit is contained in:
2025-11-01 16:58:21 +01:00
parent c850cc6e7e
commit c1de73ac73
9 changed files with 527 additions and 168 deletions

View File

@@ -27,9 +27,9 @@ NETMASK="24"
DNS="8.8.8.8"
VIP="192.168.1.210"
CORES=2
MEMORY=4096
DISK_SIZE="30G"
CORES=4
MEMORY=8192
DISK_SIZE="50G"
TEMPLATE_ID=9000
UBUNTU_IMAGE_URL="https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
@@ -143,7 +143,7 @@ EOF
# ==================== SCRIPT PRINCIPALE ====================
print_header "PROVISIONING HA CLUSTER SU PROXMOX v2 (Nativo FIX)"
print_header "PROVISIONING HA CLUSTER SU PROXMOX"
# Check prerequisites
print_info "Verifica prerequisiti..."
@@ -189,7 +189,7 @@ if ! qm status $TEMPLATE_ID &>/dev/null; then
# Importa il disco
qm importdisk $TEMPLATE_ID $UBUNTU_IMAGE_NAME $STORAGE &>/dev/null
qm set $TEMPLATE_ID --scsihw virtio-scsi-pci --scsi0 ${STORAGE}:vm-${TEMPLATE_ID}-disk-0
qm set $TEMPLATE_ID --scsihw virtio-scsi-single --scsi0 ${STORAGE}:vm-${TEMPLATE_ID}-disk-0
# Configurazione Cloud-Init:
qm set $TEMPLATE_ID --delete ide0 2>/dev/null || true
@@ -199,7 +199,8 @@ if ! qm status $TEMPLATE_ID &>/dev/null; then
qm set $TEMPLATE_ID --ide2 ${CLOUDINIT_VOL_STORAGE}:cloudinit,format=raw
# Imposta configurazioni essenziali
qm set $TEMPLATE_ID --serial0 socket --vga serial0
qm set $TEMPLATE_ID --cpu x86-64-v2-AES
#qm set $TEMPLATE_ID --serial0 socket --vga serial0
qm set $TEMPLATE_ID --agent enabled=1
qm set $TEMPLATE_ID --boot c --bootdisk scsi0